SDK Reference

Dive into the specifics of each SDK method by checking out our complete documentation.

connectNetwork

Connecting to the Solana network:

connectNetwork

connectWallet

Connecting to the user's wallet:

connectWallet

sendSolanaLamports

Sending Solana lamports (recommended):

sendSolanaLamports

sendSolana

Sending Solana (not recommended):

sendSolana

sendTokens

Sending an SPL token in terms of it's lowest denomination (recommended):

sendTokens

sendTokensDecimal

Sending an SPL token in a decimal amount (not recommended):

sendTokensDecimal

signTransaction

Signing a transaction with multiple instructions:

signTransaction

broadcastSerializedTransaction

Broadcasting the serialized transaction from signTransaction to be confirmed on the Solana network:

broadcastSerializedTransaction

signMessage

Signing a message using the user's private key:

signMessage

getBalance

Getting the Solana lamports balance of an account:

getBalance

getTokenBalances

Getting all of the token balances held by a Solana account:

getTokenBalances

getAccountInfo

Getting the info for an account:

getAccountInfo

getAssociatedTokenAddress

Getting the associated token address of an account:

getAssociatedTokenAddress

getTokenBalance

Getting the balance for a token held by a Solana account:

getTokenBalance

tokens.getData

Getting the raw data of a token:

tokens.getData

tokens.getTags

Getting a list of SPL token registry tags and their descriptions:

tokens.getTags

tokens.getToken

Getting the SPL token metadata from the SPL token registry:

tokens.getToken

tokens.search

Searching for an SPL token in the SPL token registry:

tokens.search

tokens.getRawUnvalidatedList

Getting the raw, unvalidated list of tokens in the SPL token registry:

tokens.getRawUnvalidatedList

adapters

Using adapters to connect to a wallet:

adapters

Last updated