bridgeTokens · Bridge Tokens
may change things: you confirm before it runsBridge or cross-chain swap tokens along with gas (native token) from source chain to destination chain. User pays for destination gas with source native token
Input schema
{
"type": "object",
"properties": {
"srcUserAddress": {
"type": "string",
"description": "The wallet address of the user on the source chain"
},
"dstUserAddress": {
"type": "string",
"description": "The wallet address of the user on the destination chain"
},
"srcChain": {
"type": "string",
"enum": [
"ethereum",
"optimism",
"bsc",
"gnosis",
"polygon",
"sonic",
"zksync",
"base",
"avalanche",
"arbitrum",
"scroll",
"solana",
"ton",
"hyperevm",
"plasma",
"monad",
"robinhood"
],
"description": "The source chain of the token to bridge"
},
"srcChainToken": {
"type": "string",
"description": "The address of the token to bridge"
},
"srcChainTokenAmount": {
"type": "string",
"description": "The amount of token to bridge in human-readable decimal format (e.g. '1.5'). Use \"-1\" when user requests to bridge their entire balance."
},
"dstChain": {
"type": "string",
"enum": [
"ethereum",
"optimism",
"bsc",
"gnosis",
"polygon",
"sonic",
"zksync",
"base",
"avalanche",
"arbitrum",
"scroll",
"solana",
"ton",
"hyperevm",
"plasma",
"monad",
"robinhood"
],
"description": "The destination chain to bridge the token to"
},
"dstChainToken": {
"type": "string",
"description": "The address of the token on the destination chain"
},
"gasOnDestination": {
"type": "string",
"description": "The amount of native (gas) token to get on the destination chain in human-readable decimal format (e.g. '0.01'). Use empty string when user does not request destination gas."
},
"gasOnDestinationInUsd": {
"type": "boolean",
"description": "Set to true if gasOnDestination is specified in USD"
}
},
"required": [
"srcUserAddress",
"dstUserAddress",
"srcChain",
"srcChainToken",
"srcChainTokenAmount",
"dstChain",
"dstChainToken",
"gasOnDestination",
"gasOnDestinationInUsd"
],
"additionalProperties": false
}