Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.41 KB

File metadata and controls

34 lines (18 loc) · 1.41 KB

BalanceRequest

Properties

Name Type Description Notes
publicKey String The public key address of the wallet
unit UnitEnum If you are retrieving the SOL balance, you can select whether to retrieve this in SOL or Lamport units (1 SOL = 1e9 Lamports). [optional]
network NetworkEnum [optional]
mintAddress String The mint address of the SPL token or NFT. If not provided, the balance returned is in SOL. Make sure to use the correct network. You can see the mint addresses of popular SPL tokens <a href=&quot;https://raw.githubusercontent.com/solana-labs/token-list/main/src/tokens/solana.tokenlist.json\" target=&quot;_blank&quot;>here</a>. Some example mint addresses of SPL tokens: - USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v - Mango: MangoCzJ36AjZyKwVj3VnYU4GTonjfVEnJmvvWaxLac - Serum: SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt - Raydium: 4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R - wSOL: So11111111111111111111111111111111111111112 - ATLAS: ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx [optional]

Enum: UnitEnum

Name Value
LAMPORT "lamport"
SOL "sol"

Enum: NetworkEnum

Name Value
DEVNET "devnet"
MAINNET_BETA "mainnet-beta"