PNG API
Querying key values for the PNG token on Avalanche
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
Total 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
Total 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
Total 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
Circulating 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
Circulating 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
Treasury 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
Treasury 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
Average 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
Average 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
https://api.pangolin.exchange/pangolin/apr2/1
Last updated