Saseul Gold Docs
  • Saseul Gold Docs
  • Network CLI
    • Using Saseulgold Network CLI
    • Wallet Interface
      • Representative Wallet Settings
      • Check your wallet balance
      • Remittance
    • Dex Interface
      • Get Token Detail
      • Mint Token
      • Transfer Token
      • Swap
      • ProvideLiquidity
    • Swap Process
      • Example
  • Dex API
    • Using Dex API
    • Token Info API
    • Token Mint API
    • Token Pair Info API
    • Provide Liquidity API
    • Faucet API
    • Swap
    • Liquidity Withdraw
    • Balance Of
    • Transfer
  • Backend API
    • Using Backend API
    • Token Detail API
    • Token List API
    • Pair List API
    • Pair Detail API
    • Pair Transaction Candle API
    • Block List API
Powered by GitBook
On this page
  1. Dex API

Token Pair Info API

Inquires information about two token pairs.

At this time, the order of a and b is adjusted by itself inside the contract.

For example, both a,b → (db6ea1ed, 85e8342) and a,b → (85e8342, db6ea1ed) refer to the same liquidity pool and return the same value.

Token pairs are separated by pair_address.

  • Raw Request Payload

{
    "type": "GetPairInfo",
    "token_address_a": "db6ea1edf4ed76bc9395100aa50bdaf43c428d77f5a3c4790d564
    "token_address_b": "85e8342145958a5a242773694ef5d4f3618ebce8a246b939c02
}
  • Signed Request Payload

{
    "request": {
        "type": "GetPairInfo",
        "token_address_a": "db6ea1edf4ed76bc9395100aa50bdaf43c428d77f5a3c4790d564
        "token_address_b": "85e8342145958a5a242773694ef5d4f3618ebce8a246b939c02
        "from": "910727363ee63f4cf2b8206bda68b4284928f0b41788",
        "timestamp": 1735360020891000
    },
    "public_key": "06b4b269b65a62740132177ff0283594b510effdcb8cb4153e7bee25089b",
    "signature": "17b13609f971ab1e59d6db7bc211d3c829cb1598768e78a2e71cfafb86d899"
}
  • Response

{
    "accumulated_reward_per_unit": "30000418896",
    "address_a": "450a8c9a1a72c285d919ef86c673542b5396ee79dffb6b58fc829490712a",
    "address_b": "dc2d6ab6d6a6000fb82931cc6ea3989629d051612701158df1214e62ac25",
    "pair_address": "861e97ffae8548adb896c0651b6c12a41db0ef9594e62a293b78f11d775",
    "rate_a_to_b": "996904290447128058",
    "rate_b_to_a": "996896329519330848",
    "reserve_a": "9999980664821156668416",
    "reserve_b": "10000020595224656198656",
    "total_liquidity": "10000000000000000000000"
}
PreviousToken Mint APINextProvide Liquidity API

Last updated 3 months ago