Skip to main content
Version: 1.14.0

Type Alias: ExecutionReceipt

ExecutionReceipt = { gasUsed?: bigint; messageHash?: string; messageId: string; returnData?: BytesLike | Record<string, unknown>; sequenceNumber: bigint; sourceChainSelector?: bigint; state: ExecutionState; }

Defined in: types.ts:323

Receipt of a CCIP message execution on the destination chain.

Example​

TypeScript
const receipt: ExecutionReceipt = {
messageId: '0xabc123...',
sequenceNumber: 42n,
state: ExecutionState.Success,
sourceChainSelector: 16015286601757825753n,
}

Properties​

gasUsed?​

optional gasUsed?: bigint

Defined in: types.ts:341

Gas consumed by execution (if available).


messageHash?​

optional messageHash?: string

Defined in: types.ts:333

Hash of the message (if available).


messageId​

messageId: string

Defined in: types.ts:325

Unique message identifier.


returnData?​

optional returnData?: BytesLike | Record<string, unknown>

Defined in: types.ts:339

Return data from the receiver contract (if any). A decoded record's values are not all strings: families that reconstruct a failure receipt off-chain (Aptos, Sui) surface numeric fields as bigints, like the rest of the SDK.


sequenceNumber​

sequenceNumber: bigint

Defined in: types.ts:327

Sequence number of the message.


sourceChainSelector?​

optional sourceChainSelector?: bigint

Defined in: types.ts:331

Source chain selector (if available).


state​

state: ExecutionState

Defined in: types.ts:329

Current execution state.