Skip to main content
Version: 0.96.0

parse

Supported chain families:
EVM iconEVMSolana iconSolanaAptos iconAptos

Decode hex-encoded error bytes, revert reasons, function calls, or event data from CCIP contracts.

Synopsis

Bash
ccip-cli parse <data> [options]

Aliases: parseBytes, parseData, parse-bytes, parse-data

Description

The parse command decodes hex-encoded bytes into human-readable format. It supports custom errors from CCIP contracts, standard Solidity revert reasons, function call data, and event log data.

Arguments

ArgumentTypeRequiredDescription
<data>stringYesHex-encoded bytes to decode

Options

See Configuration for global options (--format, etc.).

Command Builder

Build your parse command interactively:

ccip-cli parse Builder

Decode hex-encoded error bytes, revert reasons, or call data from CCIP contracts

Required Arguments

These values are required to build the command

Data to parse (hex, base64, or chain-specific format)

Output Options

Control command output format

Format for command output

Enable debug logging

Fill in required fields to generate command
Generated Command
ccip-cli parse <data> --format pretty

Supported Data Types

TypeDescriptionExample Output
Custom errorsCCIP contract-specific errorsEVM2EVMOnRamp_1.2.0.UnsupportedToken(address)
Revert reasonsError(string) and Panic(uint256)Error: "Insufficient balance"
Function callsDecoded function parametersccipSend(destinationChainSelector, message)
Event dataDecoded event parametersCCIPSendRequested(message)

Use Cases

Use CaseDescription
Debug failed transactionsDecode revert reasons from failed CCIP operations
Analyze execution failuresUnderstand why manual execution failed
Inspect call dataDecode function parameters from transaction input

Examples

Decode an error

Bash
ccip-cli parse 0xbf16aab6000000000000000000000000779877a7b0d9e8603169ddbd7836e478b4624789

Output:

Error: EVM2EVMOnRamp_1.2.0.UnsupportedToken(address)
Args: { token: '0x779877A7B0D9E8603169DdbD7836e478b4624789' }

Output as JSON

Bash
ccip-cli parse 0xbf16aab6... --format json

Behavior

  1. Tries each supported chain's ABI decoders
  2. Returns the first successful decode
  3. Recursively decodes nested returnData and error arguments
  4. Returns "Unknown data" if no decoder matches

See Also

  • show - View full message details including any errors
  • manualExec - Retry failed executions

Exit Codes

CodeMeaning
0Success - data decoded (or "Unknown data" if no match)
1Error (invalid hex input, missing arguments)

Use in scripts:

Bash
DECODED=$(ccip-cli parse $ERROR_DATA --format json)