Whether or not an account at a given address exists.
The public key of the account.
Optionaloptions: 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.
Optionaloptions: Partial<RpcConfirmTransactionOptions>The options to use when airdropping SOL.
Send a custom RPC request to the node.
The method to call.
Optionalparams: PThe parameters to pass to the method. Can be either: - An array for positional parameters - An object for named parameters
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: 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.
Optionaloptions: RpcSendTransactionOptionsThe options to use when sending a transaction.
The signature of the sent transaction.
Simulate a transaction.
The transaction to simulate.
Optionaloptions: 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.