Page cover

PNG and DEX Values on Avalanche

PNG & APIs

Development

Wranglerarrow-up-right 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 USDarrow-up-right

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 USDarrow-up-right

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 weiarrow-up-right (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 PNGarrow-up-right (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 weiarrow-up-right (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 PNGarrow-up-right (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 weiarrow-up-right (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 PNGarrow-up-right (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 USDarrow-up-right

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 addressarrow-up-right. (Refer to Snowtracearrow-up-right to find pIDs [pool ids])

Endpoint: /pangolin/apr2/:pID

Path Parameters

Name
Type
Description

pID*

string[]

Pool ID string from 1 - poolLenghtarrow-up-right (eg. 1, ...10,... 100, etc.)

https://api.pangolin.exchange/pangolin/apr2/1

Last updated