get_swap_quote
Request a strictly Robinhood LI.FI route estimate for a raw token amount. Validates returned asset/chain/amount metadata; omits transaction calldata.
Route estimate
Request a strictly Robinhood LI.FI route estimate for a raw token amount. Validates returned asset/chain/amount metadata; omits transaction calldata.
Permission and calling convention
Required scope: chain:read. This tool reads data or account-owned state.
This tool does not sign or broadcast a transaction. Check errors, source timestamps and explicit unavailable fields before using the result.
POST /api/tools/get_swap_quote
Authorization: Bearer <ULTRON_ACCESS_KEY>
Content-Type: application/jsonInput schema
Inputs are validated against this current schema. Use exact values from live source results rather than substituting a ticker for a contract or a different chain.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"fromToken": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"toToken": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"amountRaw": {
"type": "string",
"pattern": "^\\d{1,50}$"
},
"fromAddress": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"required": [
"fromToken",
"toToken",
"amountRaw",
"fromAddress"
],
"additionalProperties": false
}