Skip to main content
Version: v2

TokenAmount

sourceTokenAddressstringrequired

Address of the token contract on the source chain. Format depends on source chain family.

Example: 0xA0b86a33E6ba76E6F7c4AB4C3F05C7E0d3D7E2F6B
destTokenAddressstringrequired

Address of the token contract on the destination chain. Format depends on destination chain family.

Example: 0xA0b86a33E6ba76E6F7c4AB4C3F05C7E0d3D7E2F6B
sourcePoolAddressstringrequired

Address of the pool contract on the source chain. Format depends on source chain family.

Example: 0xA0b86a33E6ba76E6F7c4AB4C3F05C7E0d3D7E2F6B
amountstringrequired

Amount of tokens to transfer in the token's smallest unit (wei, lamports, etc.). Must be positive and within token's transfer limits.

Example: 1000000
extraDatastringnullable

Additional arbitrary data that can be used to handle the token transfer.

Example: 0x1234567890abcdef
destGasAmountstringnullable

Amount of gas for the token transfer.

Example: 1000000
JSON
TokenAmount
{
"sourceTokenAddress": "0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b",
"destTokenAddress": "AvZZF1YaZDziPY2RCK4oJrRVrbN3mTD9NL24hPeaZeUj",
"sourcePoolAddress": "0x20b79d39bd44deee4f89b1e9d0e3b945fde06491",
"amount": "1000000"
}