InterchainAccountRouter.dispatchendpoint. In contrast with the Messaging API, the Interchain Account API allows developers to send messages to any contract, not just
IMessageRecipients with the
handle()function, making it compatible with legacy contracts. To achieve this, message encoding must be constrained to ABI encoded function calls.
callsis an array of
Callstructs, each of which contains the address of the contract you're sending to, and the ABI encoded function call you're making. More on example usage below.
msg.sender, such as token balances or allowances.
getInterchainAccountfunction can be used to get the address of an Interchain Account given the controlling chain domain and address pair.