tokens.getData
Gets the raw on-chain data for a token
Parameters:
address: string - the mint address of the token with which to get the data
Returns:
object ({...}
) - the raw token data
data: Uint8Array (
Uint8Array [...]
) - the raw data from the blockchainexecutable: boolean (
false
) - whether the token's account is executablelamports: number (
10000
) - the number of lamports in the token's accountowner: string (
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
) - the owner of the token's accountrentEpoch: number (
250
) - the rent epoch
Throws:
SOL Pay SDK Fatal Error: Invalid address ${address}.
- an invalid address was usedSOL Pay SDK Fatal Error: No connection found. Use SOLPay.connectNetwork() to connect to the Solana network.
- could not find a connection to the Solana networkSOL Pay SDK Fatal Error: Connection did not respond. Use SOLPay.connectNetwork() to connect to the Solana network.
- did not receive response from Solana network
Last updated