bridge_tokens
Get bridge quotes and routes for cross-chain token transfers between blockchains, including fees and estimated time.
Instructions
Get bridge quote and route for cross-chain token transfer.
Args: from_chain: Source blockchain to_chain: Destination blockchain token_address: Token to bridge amount: Amount to bridge recipient: Optional different recipient address
Returns: Bridge route, fees, and estimated time.
Price: $0.50
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_chain | Yes | ||
| to_chain | Yes | ||
| token_address | Yes | ||
| amount | Yes | ||
| recipient | No |
Implementation Reference
- coinrailz_mcp/__init__.py:566-598 (handler)The implementation of the `bridge_tokens` MCP tool, which calls the `seamless-chain-bridge` service.
@mcp.tool() async def bridge_tokens( from_chain: str, to_chain: str, token_address: str, amount: str, recipient: str = None ) -> str: """ Get bridge quote and route for cross-chain token transfer. Args: from_chain: Source blockchain to_chain: Destination blockchain token_address: Token to bridge amount: Amount to bridge recipient: Optional different recipient address Returns: Bridge route, fees, and estimated time. Price: $0.50 """ payload = { "fromChain": from_chain, "toChain": to_chain, "tokenAddress": token_address, "amount": amount } if recipient: payload["recipient"] = recipient result = await call_coinrailz_service("seamless-chain-bridge", payload) return json.dumps(result, indent=2)