Skip to main content
function getAllTokens(environment): TokenMetadata[];
Get all registered tokens for an environment

Parameters

ParameterTypeDescription
environment"sandbox" | "production"The environment (‘sandbox’ for devnet, ‘production’ for mainnet)

Returns

TokenMetadata[] Array of all token metadata entries

Example

const tokens = getAllTokens('production');
console.log(tokens.map(t => t.symbol));