tokens.getToken
Gets the metadata for an SPL token from the SPL token registry
Last updated
Gets the metadata for an SPL token from the SPL token registry
Last updated
address: string - the mint address of the token with which to get the info from the SPL token registry
skip_validation (optional, default: false
): boolean - whether to skip validation on if a token in the SPL token registry is a valid SPL token (true for skipping validation, false for not skipping validation)
object ({...}
) - the token information (see for format)
SOL Pay SDK Fatal Error: Invalid address ${address}.
- an invalid address was used
SOL Pay SDK Fatal Error: No connection found. Use SOLPay.connectNetwork() to connect to the Solana network.
- could not find a connection to the Solana network
SOL Pay SDK Fatal Error: Connection did not respond. Use SOLPay.connectNetwork() to connect to the Solana network.
- did not receive response from Solana network