API Version: v1.6.0

CCIP v1.6.0 SVM Events API Reference

Events

Router

ccip_send

When the ccip_send instruction completes successfully, the Router emits a single event, CCIPMessageSent.

#[event]
pub struct CCIPMessageSent {
    /// The chain selector identifying the destination chain.
    pub dest_chain_selector: u64,
    /// The sequence number for this message, specific to the destination chain.
    pub sequence_number: u64,
    /// The full SVM2AnyRampMessage describing the cross-chain payload and tokens being sent.
    pub message: SVM2AnyRampMessage,
}
FieldTypeDescription
dest_chain_selectoru64The chain selector for the destination chain. Think of it as the chain's unique ID in the CCIP ecosystem (e.g., 1 for Ethereum Mainnet, 10 for Optimism, etc.).
sequence_numberu64Monotonically increments each time you successfully call ccip_send for a particular destination chain. It is unique per chain in the sense that each chain has its own separate sequence.
messageSVM2AnyRampMessageThe cross-chain message payload itself. It includes:
• The sender's address
• Arbitrary data payload
• Token transfer details
• Fees and more

Get the latest Chainlink content straight to your inbox.