Owlto Finance
  • Introduction
    • Worldview
    • Scenarios
    • Advantages
    • Technical Architecture
    • Conclusion
  • White Paper
  • Quick Start
  • Fee
  • Points
  • Integration Guides
    • Overview
    • Re-Direct URL
    • SDK
      • Install
      • Usage
    • API
      • Overview
      • get_all_pair_infos
      • get_build_tx
      • get_receipt
      • Q&A
  • Smart Contracts & EOA
  • Security
  • FAQ
  • Brand kit
  • Find us
  • Feedback
Powered by GitBook
On this page

Was this helpful?

  1. Integration Guides
  2. API

get_all_pair_infos

PreviousOverviewNextget_build_tx

Last updated 1 year ago

Was this helpful?

Get all pair info

post

Retrieves information about all pairs based on the provided category (Mainnet, Testnet or empty).

Body
categorystringOptional

"Mainnet", "Testnet" or empty for both.

Example: Mainnet
value_include_gas_feebooleanOptional

Will gas fee be taken within the user input value or not, this flag determine whether the min, max value should include gas fee or not

Responses
0
Successful response
application/json
Responseall of
post
POST /get_all_pair_infos HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "category": "Mainnet",
  "value_include_gas_fee": false
}
0

Successful response

{
  "data": {
    "pair_infos": [
      {
        "contract_address": "0x321123979adec",
        "from_chain_id": "8453",
        "from_chain_name": "BaseMainnet",
        "from_token_address": "0x7123979adec",
        "from_token_decimals": 18,
        "max_value": {
          "decimals": 18,
          "raw_value": "1000000",
          "ui_value": "1.2"
        },
        "min_value": {
          "decimals": 18,
          "raw_value": "1000000",
          "ui_value": "1.2"
        },
        "to_chain_id": "42161",
        "to_chain_name": "ScrollMainnet",
        "to_token_address": "0x7123979adec",
        "to_token_decimals": 18,
        "token_name": "USDC"
      }
    ]
  },
  "status": {
    "code": 1,
    "message": "text"
  }
}