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
| Name | Type | Default |
|---|---|---|
token | stringToken symbol (e.g., USDC, USDT). | |
network | "mainnet-beta" | "devnet"Network to use. Only these two networks are supported. | |
Response
| Name | Type | Default |
|---|---|---|
mintAddress | PublicKeyResolved mint address. | |
Last updated on