Skip to main content
Version: 0.96.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:328

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

Gas consumed by execution (if available).


messageHash?

optional messageHash: string

Defined in: types.ts:338

Hash of the message (if available).


messageId

messageId: string

Defined in: types.ts:330

Unique message identifier.


returnData?

optional returnData: BytesLike | Record<string, string>

Defined in: types.ts:340

Return data from the receiver contract (if any).


sequenceNumber

sequenceNumber: bigint

Defined in: types.ts:332

Sequence number of the message.


sourceChainSelector?

optional sourceChainSelector: bigint

Defined in: types.ts:336

Source chain selector (if available).


state

state: ExecutionState

Defined in: types.ts:334

Current execution state.