SDK Reference

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

connectNetwork

Connecting to the Solana network:

connectNetworkchevron-right

connectWallet

Connecting to the user's wallet:

connectWalletchevron-right

sendSolanaLamports

Sending Solana lamports (recommended):

sendSolanaLamportschevron-right

sendSolana

Sending Solana (not recommended):

sendSolanachevron-right

sendTokens

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

sendTokenschevron-right

sendTokensDecimal

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

sendTokensDecimalchevron-right

signTransaction

Signing a transaction with multiple instructions:

signTransactionchevron-right

broadcastSerializedTransaction

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

broadcastSerializedTransactionchevron-right

signMessage

Signing a message using the user's private key:

signMessagechevron-right

getBalance

Getting the Solana lamports balance of an account:

getBalancechevron-right

getTokenBalances

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

getTokenBalanceschevron-right

getAccountInfo

Getting the info for an account:

getAccountInfochevron-right

getAssociatedTokenAddress

Getting the associated token address of an account:

getAssociatedTokenAddresschevron-right

getTokenBalance

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

getTokenBalancechevron-right

tokens.getData

Getting the raw data of a token:

tokens.getDatachevron-right

tokens.getTags

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

tokens.getTagschevron-right

tokens.getToken

Getting the SPL token metadata from the SPL token registry:

tokens.getTokenchevron-right

tokens.search

Searching for an SPL token in the SPL token registry:

tokens.searchchevron-right

tokens.getRawUnvalidatedList

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

tokens.getRawUnvalidatedListchevron-right

adapters

Using adapters to connect to a wallet:

adapterschevron-right

Last updated