πŸͺ™Token Services

Token Data

Dequanto includes JSONs with >5000 popular tokens - names, addresses, chains, decimals.

import { TokensService } from '@dequanto/tokens/TokensService';

let service = new TokensService('eth');
let usdc = await service.getKnownToken('USDC');

console.log(usdc);

/* output
{
  symbol: 'USDC',
  name: 'USD Coin',
  platform: 'eth',
  address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
  decimals: 6
}
*/

        

ERC20 Contracts

Ready to use strongly-typed erc20 contract class.

Token Price

An article regarding token prices - get-token-price-at-a-specific-block-onchainarrow-up-rightπŸ”—

Token Swap

See TokenSwapServicearrow-up-rightπŸ”— for details.

Paraswap arrow-up-rightis implemented as the default exchange

Token Transfer

Transfer tokens by a specific amount, all or with the remainder.

See TokenTransferServicearrow-up-rightπŸ”— for details.

Last updated