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 address
- send(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 transaction
- sendNative(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 transaction
- getMessageId(log: any): Extract message ID from transaction log
- getReceiveTransaction(chain_id: number, message_id: string): Generate receive transaction
- getHomeHopMessageId(chain_id: number, hash: string): Get message ID for home hop
Integration Example
Is this guide helpful?