Skip to main content

Adding custom Cosmos messages to route execution

The executeRoute method accepts an appendCosmosMsgs parameter for custom Cosmos messages, keyed by chain ID (Record<chainId, CosmosMsg[]>). Despite its name, it inserts these messages before the existing messages in the first Cosmos transaction matching each chain ID. Custom messages execute before that transaction’s route messages, so they cannot depend on their output.

Use the Go Fast Transfer system

The route function accepts a goFast parameter to enable the Go Fast Transfers. Then pass this route to the executeRoute method to execute.

Add a fee payer in solana transaction

The executeRoute method accepts a svmFeePayer parameter to specify a fee payer for Solana transactions. This is useful when you want to have a different account pay the transaction fees.