ICTT Hooks
Hooks for Inter-Chain Token Transfer functionality.
ICTT Hooks
BuilderKit provides hooks for handling Inter-Chain Token Transfer (ICTT) operations between Avalanche chains.
useICTT
The useICTT hook provides functions for transferring tokens between different Avalanche chains.
Available Functions
getInterchainMessenger(chain_id: number): Get messenger contract addresssend(transferer: string, destination_L1_hex: string, destination_transferer: string, receiver: string, fee_token_addr: string, amount: BigNumber, decimals: number, is_multi_hop: boolean): Generate ERC20 transfer transactionsendNative(transferer: string, destination_L1_hex: string, destination_transferer: string, receiver: string, fee_token_addr: string, amount: BigNumber, decimals: number, is_multi_hop: boolean): Generate native token transfer transactiongetMessageId(log: any): Extract message ID from transaction loggetReceiveTransaction(chain_id: number, message_id: string): Generate receive transactiongetHomeHopMessageId(chain_id: number, hash: string): Get message ID for home hop
Integration Example
Is this guide helpful?