execute_bridge
Bridge tokens across chains by submitting a cross-chain transaction using source chain ID, destination chain ID, and amount. Requires managed-custody authentication.
Instructions
Execute a cross-chain bridge transaction. Requires managed-custody auth.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromChainId": "<fromChainId>",
"toChainId": "<toChainId>",
"amount": "<amount>"
},
"name": "execute_bridge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in raw units | |
| apiKey | No | API key for AES encryption | |
| userId | No | Control wallet address | |
| toChainId | Yes | Destination chain ID | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| fromChainId | Yes | Source chain ID | |
| sessionPrivateKey | No | Session private key |