{"name":"bridge-rates","description":"Compares cross-chain bridge quotes to find the cheapest route between chains, powered by LiFi. Aggregates Across, Stargate, Hop, deBridge, Synapse, and Circle CCTP via LiFi's public quote API: pass source chain, dest chain, source token, dest token, and amount, and get ranked routes with bridge tool, est_amount_out, gas + fee in USD, est_duration_seconds, and per-step transaction objects ready to sign. Covers Ethereum to Base, Arbitrum, Optimism, and Polygon with USDC and ETH quotes, plus pre-bridge cost, slippage, and ETA estimates. Commercial-OK with LiFi attribution. Use it as a bridge rate aggregator, bridge quote API, or cheapest L1-to-L2 route finder.","price":"$0.03","method":"POST","input_schema":{"properties":{"from_chain":{"type":"number","description":"Source chain id. EVM chain id (1=Ethereum, 8453=Base, 42161=Arbitrum One, 10=Optimism, 137=Polygon, 56=BNB Chain)."},"to_chain":{"type":"number","description":"Destination chain id (same id space as from_chain)."},"from_token":{"type":"string","description":"Source token contract address. Use '0x0000000000000000000000000000000000000000' for the chain's native gas token (ETH, MATIC, BNB)."},"to_token":{"type":"string","description":"Destination token contract address. Same '0x000...' convention for native."},"amount":{"type":"string","description":"Source amount in the token's smallest unit (e.g. wei for ETH, '1000000000000000000' = 1 ETH; '1000000' = 1 USDC at 6 decimals)."},"from_address":{"type":"string","description":"Optional EVM address of the sender. Required for slippage-checked + ready-to-sign quotes."},"to_address":{"type":"string","description":"Optional EVM destination address. Defaults to from_address."},"slippage":{"type":"number","description":"Max slippage as decimal fraction (0.01 = 1%). Default 0.005."},"limit":{"type":"number","description":"Max routes to return. 1-10. Default 5."}},"required":["from_chain","to_chain","from_token","to_token","amount"]},"input_example":{"from_chain":1,"to_chain":8453,"from_token":"0x0000000000000000000000000000000000000000","to_token":"0x0000000000000000000000000000000000000000","amount":"1000000000000000000"},"output_example":{"route_count":3,"routes":[{"tool":"across","tool_name":"Across","from_amount":"1000000000000000000","to_amount":"999000000000000000","to_amount_min":"994000000000000000","gas_cost_usd":1.4,"fee_cost_usd":1.1,"execution_duration_s":60,"steps":1}],"source":"LiFi (https://li.fi)"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}