YAD
SiteDocs
SiteDocs
  1. Schemas
  • Introduction
  • Blockchains
    GET
  • List tokens
    POST
  • Liquidity sources
    GET
  • Gas prices
    GET
  • Get price for pair
    GET
  • Transaction allowance
    GET
  • Transaction approve
    GET
  • Get quote for pair
    GET
  • Get Bridge Price
    GET
  • Get Bridge Quote
    GET
  • Get Bridge Tokens
    POST
  • Schemas
    • Schemas
      • types.Protocols
      • sources.Source
      • api.BridgedToken
      • BridgeRoutes
      • api.TokensResponse
      • api.TokenFilter
      • api.Token
      • api.SourcesAPIWrapped
      • api.SourceFilter
      • api.PlatformsAPIWrapped
      • api.PlatformsAPI
      • api.OnChainQuoteResponseAPI
      • api.OnChainPriceResponseAPI
      • api.ListTokenRequest
      • api.GasPriceInfoAPIWrapped
      • api.GasPriceAPIWrapped
      • api.FeeResp
      • api.ApproveResponse
      • api.AllowanceResponse
      • BridgePrice
      • BridgeQuote
      • QuoteDto
SiteDocs
SiteDocs
  1. Schemas

api.OnChainQuoteResponseAPI

{
    "amount_out_total": "1497761574710071333259",
    "estimate_gas_total": "127000",
    "token_in": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "token_out": "0x6b175474e89094c44da98b954eedeac495271d0f",
    "gas_price": "127000",
    "fee_recipient_amount": "string",
    "routes": [
        {
            "type": "dex",
            "protocol_name": "Uniswap_V3",
            "amount_in": "1500000000",
            "amount_out": "1497761574710071333259",
            "percent": 100,
            "pools": {
                "protocol_name": "string",
                "pool_address": "string",
                "amount_in": "string",
                "amount_out": "string",
                "zero_for_one": true,
                "token0": "string",
                "token1": "string"
            }
        }
    ],
    "calldata": "0x318ced5d000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000005061c2da8cfb40f01700000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000059682f000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000018000000000000000000000006f48eca74b38d2936b02ab603ff4e36a6c0e3a77",
    "expiry": 0,
    "to": "0x0000000000000000000000000000000000"
}