Skip to main content
Version: 1.2.0

Type Alias: APICCIPRequestMetadata

APICCIPRequestMetadata = { deliveryTime?: bigint; destNetworkInfo: NetworkInfo; offRamp?: string; readyForManualExecution: boolean; receiptTimestamp?: number; receiptTransactionHash?: string; sourceNetworkInfo: NetworkInfo; status: MessageStatus; }

Defined in: api/types.ts:285

API-specific metadata fields for CCIP requests.

Remarks

These fields are only available when fetching via the CCIP API. This type is the value of the metadata field on CCIPRequest.

Example

TypeScript
const request = await chain.getMessageById(messageId)
if (request.metadata) {
console.log(`Status: ${request.metadata.status}`)
if (request.metadata.receiptTransactionHash) {
console.log(`Executed in tx: ${request.metadata.receiptTransactionHash}`)
}
}

Properties

deliveryTime?

optional deliveryTime: bigint

Defined in: api/types.ts:295

End-to-end delivery time in milliseconds (if completed).


destNetworkInfo

destNetworkInfo: NetworkInfo

Defined in: api/types.ts:299

Destination network metadata.


offRamp?

optional offRamp: string

Defined in: api/types.ts:301

OffRamp address on dest


readyForManualExecution

readyForManualExecution: boolean

Defined in: api/types.ts:289

Whether message is ready for manual execution.


receiptTimestamp?

optional receiptTimestamp: number

Defined in: api/types.ts:293

Unix timestamp of execution receipt (if executed).


receiptTransactionHash?

optional receiptTransactionHash: string

Defined in: api/types.ts:291

Transaction hash of execution receipt (if executed).


sourceNetworkInfo

sourceNetworkInfo: NetworkInfo

Defined in: api/types.ts:297

Source network metadata.


status

status: MessageStatus

Defined in: api/types.ts:287

Message lifecycle status from API.