GET
/
quote
curl --request GET \
  --url https://api.mobula.io/api/1/quote
{
  "success": [
    {
      "amountOut": "<string>",
      "error": "Insufficient balance",
      "isAggregator": true,
      "protocol": "<string>",
      "tx": {
        "data": "<string>",
        "from": "<string>",
        "to": "<string>",
        "value": "<string>"
      },
      "will_fail": true
    }
  ]
}

Query Parameters

chain
string
required

Blockchain of the trade

receiver
string

Address that receives the trade (by default, the sender)

fromToken
string
required

Source token for the swap

toToken
string
required

Destination token for the swap

fromAddress
string
required

Address that triggers the trade

amount
integer
required

Amount (x decimals) for the swap in

slippage
number
required

Slippage (%) accepted

type
enum<string>
default: best

Aggregation type (fast or best)

Available options:
fast,
best

Response

200 - application/json
success
object[]