Decode ERC-8021 dataSuffix hex
decodecommandsetup L1★0
celo-org/builder-codes ↗What it does
Decode ERC-8021 dataSuffix from hex calldata
Best for
Debugging ERC-8021 builder codes in calldata without an RPC roundtrip
Inputs
- · hex string with or without 0x prefix
Outputs
- · decoded codes list
- · schema ID
- · byte breakdown
- · total suffix size
Requires
- · @celo/builder-codes npm package
Preconditions
- · hex string is valid
- · marker 0x80218021... present at end of calldata
Failure modes
- · input not valid hex
- · marker not found
- · marker present but not at end
- · input shorter than 18 bytes
Trust signals
- · validates hex format first
- · distinguishes marker not found from marker in wrong position
- · shows byte-level breakdown for verification