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.OnChainPriceResponseAPI

{
    "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"
            }
        }
    ]
}