dexscreener-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

dexscreener-api

dexscreener-api is a typescript wrapper around the DEX screener API. dex screener api this API is currently in beta and the wrapper may stop working at any time.

Installation

npm install dexscreener-api

Usage

Get pair information by chain
const pairsResponse = await getPairInformationByChain("bsc", "0x7213a321F1855CF1779f42c0CD85d3D95291D34C");

Get pairs matching base token address
const tokensResponse = await getPairsMatchingBaseTokenAddress("0x2170Ed0880ac9A755fd29B2688956BD959F933F8");

Search for pairs matching query
const searchResponse = await searchPairsMatchingQuery("WBNB USDC");

Contributing

Pull requests are welcome.

Please make sure to update tests as appropriate.

Readme

Keywords

none

Package Sidebar

Install

npm i dexscreener-api

Weekly Downloads

7

Version

0.0.7

License

ISC

Unpacked Size

22.4 kB

Total Files

24

Last publish

Collaborators

  • hedgey-finance