Get Uniswap V2 pool information by pool address.
GET/:network/uniswap/pool-info-v2
Get Uniswap V2 pool information by pool address.
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
The address of the Uniswap pool contract.
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
- 404
Pool information retrieved successfully.
- application/json
- Schema
- Example (from schema)
Schema
The network name.
The chain ID of the network.
The pool address.
The token pair addresses.
The token pair symbols.
The exchange rate between the tokens.
token0
object
required
The token address.
The name of the token.
The symbol of the token.
The number of decimals of the token.
The reserve amount of the token in the pool.
The reserve amount of the token (denominated in ETH) in the pool.
token1
object
required
The token address.
The name of the token.
The symbol of the token.
The number of decimals of the token.
The reserve amount of the token in the pool.
The reserve amount of the token (denominated in ETH) in the pool.
{
"network_name": "eth-mainnet",
"chain_id": 1,
"pool_address": "0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8",
"pair_addresses": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/0x6b175474e89094c44da98b954eedeac495271d0f",
"pair_symbols": "USDC/DAI",
"rate": "1.002345",
"token0": {
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"reserve": "10000000000000000000",
"reserve_eth": "10"
},
"token1": {
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"reserve": "10000000000000000000",
"reserve_eth": "10"
}
}
Invalid request or pool address.
Pool not found or invalid contract.