The client instance to use for the operation.
Optional
withApprove?: booleanIncludes the approve() step in the transaction.
Returns the attestation of the transaction hash.
Transfer tokens from one account to another using CCTP.
const [ account_1 ] = await client.getAccounts({ address: '0x123', chain: ETH_SEPOLIA })
const [ account_2 ] = await client.getAccounts({ address: '0x321', chain: MATIC_AMOY })
await client.transferViaCCTP({
from: account_1,
to: account_2,
amount: 1n,
token: ETH_SEPOLIA.contracts.USDC,
})
Transfers tokens via CCTP.