Whether or not an account at a given address exists.
The public key of the account.
Optional
options: RpcBaseOptionsThe options to use when checking if an account exists.
true
if the account exists, false
otherwise.
Send and confirm an airdrop transaction to the given address.
The public key of the account to airdrop to.
The amount of SOL to airdrop.
Optional
options: Partial<RpcConfirmTransactionOptions>The options to use when airdropping SOL.
Send a custom RPC request to the node.
The method to call.
Optional
params: PThe parameters to pass to the method. Can be either: - An array for positional parameters - An object for named parameters
Optional
options: RpcCallOptionsThe options to use when sending a custom RPC request.
The generic result of the RPC call.
Confirm a sent transaction.
The signature of the transaction to confirm.
The options to use when confirming a transaction.
The RPC response of the transaction confirmation.
Fetch a raw account at the given address.
The public key of the account to fetch.
Optional
options: RpcGetAccountOptionsThe options to use when fetching the account.
A raw account that may or may not exist.
Fetch multiple raw accounts at the given addresses.
Optional
options: RpcGetAccountsOptionsThe options to use when fetching multiple accounts.
An array of raw accounts that may or may not exist.
Fetch the balance of an account.
The public key of the account.
Optional
options: RpcBaseOptionsThe options to use when fetching an account's balance.
An amount of SOL.
Fetch the estimated production time of a block.
The slot to get the estimated production time for.
Optional
options: RpcBaseOptionsThe options to use when getting the block time of a slot.
The estimated production time of the block in Unix time.
The Solana cluster of the RPC being used.
The RPC endpoint used by the client.
Get the genesis hash.
The genesis hash.
Fetch the latest blockhash.
Optional
options: RpcBaseOptionsThe options to use when fetching the latest blockhash.
The latest blockhash and its block height.
Fetch multiple raw accounts from a program.
The public key of the program to fetch accounts from.
Optional
options: RpcGetProgramAccountsOptionsThe options to use when fetching program accounts.
An array of raw accounts.
Get the amount of rent-exempt SOL required to create an account of the given size.
The size of the account in bytes.
Optional
options: RpcGetRentOptionsThe options to use when fetching the rent exempt amount.
An amount of SOL.
Fetch transaction commitments from an array of signatures.
The signatures of all transactions we want to fetch commitments for.
Optional
options: RpcGetSignatureStatusesOptionsThe options to use when fetching transaction commitments.
An array of transaction statuses in the same order as the signatures.
If a transaction was not found, null
will be returned instead.
Fetch the recent slot.
Optional
options: RpcBaseOptionsThe options to use when fetching the recent slot.
The recent slot.
Fetch a transaction by its signature.
The signature of the transaction to fetch.
Optional
options: RpcBaseOptionsThe options to use when fetching transactions.
A transaction with its metadata or null
if the transaction was not found.
Send a transaction to the blockchain.
The transaction to send.
Optional
options: RpcSendTransactionOptionsThe options to use when sending a transaction.
The signature of the sent transaction.
Simulate a transaction.
The transaction to simulate.
Optional
options: RpcSimulateTransactionOptionsThe options to use when simulating a transaction.
The signature of the sent transaction.
Defines the interface for an RPC client. It allows us to interact with the Solana blockchain.