Skip to Content
MiscgetMintAddress

getMintAddress

Resolves a token symbol to its mint address for a given network.

Usage

page.tsx
const mintAddress = getMintAddress("USDC",'mainnet-beta')

Note: This function currently only supports USDC and USDT tokens. More tokens will be added soon.

Parameters

NameTypeDefault
token
string
Token symbol (e.g., USDC, USDT).
network
"mainnet-beta" | "devnet"
Network to use. Only these two networks are supported.
"mainnet-beta"

Response

NameTypeDefault
mintAddress
PublicKey
Resolved mint address.
Last updated on