Quote

get
Authorizations
Query parameters
sellAssetstringRequired
buyAssetstringRequired
sellAmountnumber · doubleRequired
senderAddressstringRequired
recipientAddressstringRequired
chainIdstringRequired
slippagenumber · doubleOptional
limitnumber · doubleOptional
providersstring[]Optional
preferredProviderstringOptional
affiliateAddressstringOptional
affiliateBasisPointsnumber · doubleOptional
allowSmartContractRecipientbooleanOptional
Header parameters
AuthorizationstringRequired
Responses
200
Ok
application/json
get
GET //thorswap/quote HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Accept: */*
200

Ok

{
  "success": true,
  "message": "text",
  "data": {
    "id": "text",
    "type": "text",
    "tool": "text",
    "action": {
      "fromChainId": 1,
      "fromAmount": "text",
      "fromToken": {
        "address": "text",
        "chainId": 1,
        "symbol": "text",
        "decimals": 1,
        "name": "text",
        "coinKey": "text",
        "logoURI": "text",
        "priceUSD": "text"
      },
      "fromAddress": "text",
      "toChainId": 1,
      "toToken": {
        "address": "text",
        "chainId": 1,
        "symbol": "text",
        "decimals": 1,
        "name": "text",
        "coinKey": "text",
        "logoURI": "text",
        "priceUSD": "text"
      },
      "toAddress": "text",
      "slippage": 1
    },
    "estimate": {
      "fromAmount": "text",
      "toAmount": "text",
      "toAmountMin": "text",
      "approvalAddress": "text",
      "gasCosts": [
        {
          "type": "text",
          "price": "text",
          "estimate": "text",
          "limit": "text",
          "amount": "text",
          "amountUSD": "text",
          "token": {
            "address": "text",
            "symbol": "text",
            "name": "text",
            "decimals": 1,
            "logoURI": "text"
          }
        }
      ],
      "executionDuration": 1,
      "feeCosts": [
        {
          "name": "text",
          "percentage": 1,
          "token": {
            "name": "text",
            "address": "text",
            "symbol": "text",
            "decimals": 1,
            "logoURI": "text",
            "chainId": 1
          },
          "amount": 1
        }
      ],
      "fromAmountUSD": "text",
      "toAmountUSD": "text"
    },
    "includedSteps": [
      {
        "id": "text",
        "type": "text",
        "tool": "text",
        "action": {
          "fromChainId": 1,
          "fromAmount": "text",
          "fromToken": {
            "address": "text",
            "chainId": 1,
            "symbol": "text",
            "decimals": 1,
            "name": "text",
            "coinKey": "text",
            "logoURI": "text",
            "priceUSD": "text"
          },
          "fromAddress": "text",
          "toChainId": 1,
          "toToken": {
            "address": "text",
            "chainId": 1,
            "symbol": "text",
            "decimals": 1,
            "name": "text",
            "coinKey": "text",
            "logoURI": "text",
            "priceUSD": "text"
          },
          "toAddress": "text",
          "slippage": 1
        },
        "estimate": {
          "fromAmount": "text",
          "toAmount": "text",
          "toAmountMin": "text",
          "approvalAddress": "text",
          "gasCosts": [
            {
              "type": "text",
              "price": "text",
              "estimate": "text",
              "limit": "text",
              "amount": "text",
              "amountUSD": "text",
              "token": {
                "address": "text",
                "symbol": "text",
                "name": "text",
                "decimals": 1,
                "logoURI": "text"
              }
            }
          ],
          "executionDuration": 1,
          "feeCosts": [
            {
              "name": "text",
              "percentage": 1,
              "token": {
                "name": "text",
                "address": "text",
                "symbol": "text",
                "decimals": 1,
                "logoURI": "text",
                "chainId": 1
              },
              "amount": 1
            }
          ],
          "fromAmountUSD": "text",
          "toAmountUSD": "text"
        }
      }
    ],
    "transactionRequest": {
      "nonce": "text",
      "data": "text",
      "value": "text",
      "to": "text",
      "from": "text",
      "maxFeePerGas": "text",
      "maxPriorityFeePerGas": "text"
    }
  }
}