PNG and DEX Values on Avalanche
PNG & APIs
Development
Wrangler is used for a local development server. This is effectively a proxy-service that (nearly) replicates the Cloudflare Worker runtime.
Anyone can develop this repository locally. Fill in account_id in the wrangler.toml file. This value may (and should) be your own personal account_id.
Location
The API is available at https://api.pangolin.exchange
Methods
All methods accept a GET request.
TVL
GET https://api.pangolin.exchange/png/tvl
Try API: Get the total value locked in USD
Endpoint: /png/tvl
https://api.pangolin.exchange/png/tvl
25371043.31Total Volume
GET https://api.pangolin.exchange/png/total-volume
Try API: Get the total lifetime volume of swaps in USD
Endpoint: /png/total-volume
https://api.pangolin.exchange/png/total-volume
16386987632.01Total Supply (wei)
GET https://api.pangolin.exchange/png/total-supply
Try API: Query the total lifetime supply of PNG denominated in wei
(A result of 1 PNG would return the value 1000000000000000000 [18 decimals])
Endpoint: /png/total-supply
https://api.pangolin.exchange/png/total-supply
230000000000000000000000000Total Supply
GET https://api.pangolin.exchange/png/total-supply-whole
Test API: Get the total lifetime supply of PNG denominated in PNG
(A result of 1 PNG would return the value 1)
Endpoint: /png/total-supply-whole
https://api.pangolin.exchange/png/total-supply-whole
230000000Circulating Supply (wei)
GET https://api.pangolin.exchange/png/circulating-supply
Try API: Query the circulating supply of PNG denominated in wei
(A result of 1 PNG would return the value 1000000000000000000 [18 decimals])
Endpoint: /png/circulating-supply
https://api.pangolin.exchange/png/circulating-supply
138148573463211998848931700Circulating Supply
GET https://api.pangolin.exchange/png/circulating-supply-whole
Try API: Query the circulating supply of PNG denominated in PNG
(A result of 1 PNG would return the value 1)
Endpoint: /png/circulating-supply-whole
https://api.pangolin.exchange/png/circulating-supply-whole
138148573Treasury Supply (wei)
GET https://api.pangolin.exchange/png/community-treasury
Try API: Query the balance of PNG denominated in wei
(A result of 1 PNG would return the value 1000000000000000000 [18 decimals])
Endpoint: /png/community-treasury
https://api.pangolin.exchange/png/community-treasury
1999371251788001151068300Treasury Supply
GET https://api.pangolin.exchange/png/community-treasury-whole
Try API: Query the balance of PNG denominated in PNG
(A result of 1 PNG would return the value 1)
Endpoint: /png/community-treasury-whole
https://api.pangolin.exchange/png/community-treasury-whole
1999371Average Swap Size
GET https://api.pangolin.exchange/pangolin/transaction-average
Try API: Get the average size of each swap in USD
Endpoint: /pangolin/transaction-average
https://api.pangolin.exchange/pangolin/transaction-average
1566.68Average Percentage Reward Rate
GET https://api.pangolin.exchange/pangolin/apr2/:pID
Try API: Get the PNG Reward Rate of the inputted StakingRewards contract address. (Refer to Snowtrace to find pIDs [pool ids])
Endpoint: /pangolin/apr2/:pID
Path Parameters
{"swapFeeApr":X,"stakingApr":X,"combinedApr":X}https://api.pangolin.exchange/pangolin/apr2/1
{"swapFeeApr":4,"stakingApr":0,"combinedApr":4}{"swapFeeApr":0,"stakingApr":0,"combinedApr":0}Last updated
