bridge
Bridge tokens across chains using LI.FI. Sign the route transaction with your private key for non-custodial transfers.
Instructions
Move value across chains via LI.FI; signs the route tx with the owner's key.
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": {
"private_key": "<private_key>",
"from_chain": "<from_chain>",
"to_chain": "<to_chain>",
"from_token": "<from_token>",
"to_token": "<to_token>",
"amount": "<amount>",
"nonce": "<nonce>",
"max_fee_per_gas": "<max_fee_per_gas>",
"max_priority_fee_per_gas": "<max_priority_fee_per_gas>"
},
"name": "bridge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Gas limit. | |
| nonce | Yes | Account nonce for this transaction. | |
| amount | Yes | Amount to bridge (base units). | |
| chain_id | No | EVM chain id (137 = Polygon). | |
| to_chain | Yes | Destination chain. | |
| to_token | Yes | Token address on the destination chain. | |
| from_chain | Yes | Source chain. | |
| from_token | Yes | Token address on the source chain. | |
| integrator | No | chain-signer | |
| private_key | Yes | The caller's own private key. Used transiently to sign; never stored (non-custodial). | |
| max_fee_per_gas | Yes | EIP-1559 max fee per gas (wei). | |
| max_priority_fee_per_gas | Yes | EIP-1559 priority fee per gas (wei). |