Skip to main content
Version: 1.0.0

Type Alias: ExecutionReceipt

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

Defined in: types.ts:355

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:369

Gas consumed by execution (if available).


messageHash?

optional messageHash: string

Defined in: types.ts:365

Hash of the message (if available).


messageId

messageId: string

Defined in: types.ts:357

Unique message identifier.


returnData?

optional returnData: BytesLike | Record<string, string>

Defined in: types.ts:367

Return data from the receiver contract (if any).


sequenceNumber

sequenceNumber: bigint

Defined in: types.ts:359

Sequence number of the message.


sourceChainSelector?

optional sourceChainSelector: bigint

Defined in: types.ts:363

Source chain selector (if available).


state

state: ExecutionState

Defined in: types.ts:361

Current execution state.