0.0.7 • Published 2 years ago
@deliquid/token-list v0.0.7
@deliquid/token-list (beta)
A multi-chain collection of crypto tokens, including metadata, logos, and more.
Installation
npm install @deliquid/asset-registry
Basic Usage
Get all tokens from all supported chains
import { TokenList } from "@deliquid/token-list";
const fetchTokens = async () => {
const tokenList = new TokenList();
const tokens = await tokenList.getAllTokens();
return tokens
}
Get tokens from specific chains
import { TokenList } from "@deliquid/token-list";
const chains = ["ethereum", "solana"]
const fetchTokens = async () => {
const tokenList = new TokenList();
const tokens = await tokenList.getTokensByChains(chains);
return tokens
}
Contributing
Add a new token to the registry
Coming Soon