🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

dexscreener-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dexscreener-api

A typescript wrapper around the dexscreener API

0.0.7
latest
Source
npm
Version published
Weekly downloads
9
-25%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 27 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts