Price a swap without building a transaction
Price a swap without building a transaction. Returns expected input, output, and gas without constructing an executable transaction. Quotes are informational and can change with liquidity and chain state. Supports exact-output amounts and historical state. Historical state is available for approximately 35 days. The first request for a block may take 1-7 seconds; subsequent requests use cached state.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://3route.agents.bakingbad.dev/v1/pro/:chainId/quote
| Category | Market data |
|---|---|
| Provider host | 3route.agents.bakingbad.dev |
| Networks | eip155:42793, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | batch-settlement, exact |
| Self-reported calls, 30 days | 13 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"pathParams": {
"chainId": "4663"
},
"queryParams": {
"amount": "1000000000000000000",
"dst": "0x2222222222222222222222222222222222222222",
"fee": 0,
"gasPrice": "1000000000",
"includeBlockNumber": false,
"includeProtocols": false,
"includeTokensInfo": false,
"isExactOutput": false,
"src": "0x0000000000000000000000000000000000000000"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"additionalProperties": false,
"properties": {
"chainId": {
"enum": [
"4663"
],
"example": "4663",
"pattern": "^[0-9]+$",
"type": "string"
}
},
"required": [
"chainId"
],
"type": "object"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"amount": {
"example": "1000000000000000000",
"pattern": "^[0-9]+$",
"type": "string"
},
"blockNumber": {
"minimum": 0,
"type": "integer"
},
"dst": {
"example": "0x2222222222222222222222222222222222222222",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"excludedProtocols": {
"type": "string"
},
"fee": {
"default": 0,
"maximum": 3,
"minimum": 0,
"type": "number"
},
"gasPrice": {
"example": "1000000000",
"pattern": "^[0-9]+$",
"type": "string"
},
"includeBlockNumber": {
"default": false,
"type": "boolean"
},
"includeProtocols": {
"default": false,
"type": "boolean"
},
"includeTokensInfo": {
"default": false,
"type": "boolean"
},
"isExactOutput": {
"default": false,
"type": "boolean"
},
"protocols": {
"type": "string"
},
"src": {
"example": "0x0000000000000000000000000000000000000000",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"timestamp": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"src",
"dst",
"amount"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}