Skip to content

Tokens

Pre-configured Token instances for major tokens on every chain PancakeSwap supports. Use these instead of constructing tokens manually to avoid address typos and ensure consistency.

Installation

npm install @pancakeswap/tokens

Quick start

import { bscTokens, ethTokens, arbitrumTokens, baseTokens } from '@pancakeswap/tokens'
import { CurrencyAmount } from '@pancakeswap/swap-sdk-core'
 
// Access tokens directly
const cake  = bscTokens.cake   // CAKE on BSC
const usdt  = bscTokens.usdt   // USDT on BSC
const weth  = ethTokens.weth   // WETH on Ethereum
const usdc  = baseTokens.usdc  // USDC on Base
 
// Build an amount
const amount = CurrencyAmount.fromRawAmount(cake, 10n ** 18n) // 1 CAKE

Available token lists

ExportChain
bscTokensBNB Smart Chain
ethTokensEthereum
arbitrumTokensArbitrum One
baseTokensBase
zkSyncTokenszkSync Era
lineaTokensLinea
opBnbTokensopBNB
solanaTokensSolana

Testnet equivalents are also exported (e.g. bscTestnetTokens, sepoliaTestnetTokens).