Skip to main content

Solana

RPC HTTP methods for reading accounts, SOL and SPL token balances, token accounts and supplies, transactions and signature statuses, blocks, slots, epochs, validators, inflation and supply, estimating fees, and simulating and sending signed transactions. Integers above 2^53 - 1, such as large lamport amounts, come back as decimal strings.

Solana Logo

Authentication​

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use​

Using the Smart Chat​

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor​

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions​

This connector provides 52 actions:

ActionPurposeParameters
get_account_infoReturns the account state and metadata for a single address. Returns null if the account does not exist at the requested commitment.pubkey (string) required
config: {
. commitment (string)
. encoding (string)
. dataSlice (object)
. minContextSlot (integer)
} (object)
get_balanceReturns the lamport balance for a single account address at the requested commitment. Amounts are in lamports 1 SOL = 1,000,000,000 lamports.pubkey (string) required
config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_largest_accountsReturns the 20 largest accounts by lamport balance. Some RPC nodes may serve cached results for up to two hours.config: {
. commitment (string)
. filter (string)
. sortResults (boolean)
} (object)
get_minimum_balance_for_rent_exemptionReturns the lamports required to make an account of a given data size rent exempt.length (integer) required
config: {
. commitment (string)
} (object)
get_multiple_accountsReturns account state and metadata for multiple addresses, in request order.pubkeys (array) required
config: {
. commitment (string)
. minContextSlot (integer)
. dataSlice (object)
. encoding (string)
} (object)
get_program_accountsReturns accounts owned by the specified program, optionally filtered by data content or size.pubkey (string) required
config: {
. commitment (string)
. minContextSlot (integer)
. withContext (boolean)
. encoding (string)
. dataSlice (object)
. filters (array)
. sortResults (boolean)
} (object)
get_token_account_balanceReturns the token balance for an SPL Token account.pubkey (string) required
config: {
. commitment (string)
} (object)
get_token_accounts_by_delegateReturns SPL Token accounts whose approved delegate matches the supplied address.pubkey (string) required
tokenAccountFilter: {
. mint (string)
. programId (string)
} (object) required
config: {
. commitment (string)
. minContextSlot (integer)
. dataSlice (object)
. encoding (string)
} (object)
get_token_accounts_by_ownerReturns SPL Token accounts whose owner matches the supplied address.pubkey (string) required
tokenAccountFilter: {
. mint (string)
. programId (string)
} (object) required
config: {
. commitment (string)
. minContextSlot (integer)
. dataSlice (object)
. encoding (string)
} (object)
get_token_largest_accountsReturns the 20 largest token accounts for an SPL Token mint.pubkey (string) required
config: {
. commitment (string)
} (object)
get_token_supplyReturns the current supply for an SPL Token mint.pubkey (string) required
config: {
. commitment (string)
} (object)
get_fee_for_messageReturns the lamports the cluster would charge to process a serialized message at the requested commitment.message (string) required
config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_latest_blockhashReturns the latest recent blockhash and its last valid block height.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_recent_prioritization_feesReturns recent prioritization-fee samples, optionally filtered to transactions that lock a set of writable accounts.addresses (array)
get_signatures_for_addressReturns confirmed transaction signatures for transactions that reference the supplied address in accountKeys, newest first.address (string) required
config: {
. commitment (string)
. minContextSlot (integer)
. limit (integer)
. before (string)
. until (string)
} (object)
get_signature_statusesReturns the current status for each supplied transaction signature. Each signature must be a txid, the first signature of a transaction.signatures (array) required
config: {
. searchTransactionHistory (boolean)
} (object)
get_transactionReturns a confirmed transaction by signature, or null if it is not found at the requested commitment.signature (string) required
config: {
. commitment (string)
. maxSupportedTransactionVersion (integer)
. encoding (string)
} (object)
get_transaction_countReturns the total number of transactions processed at the requested commitment.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
is_blockhash_validReturns whether a blockhash is still valid at the requested commitment.blockhash (string) required
config: {
. commitment (string)
. minContextSlot (integer)
} (object)
request_airdropRequests a faucet transaction that transfers lamports to the supplied Pubkey. Only works on Devnet and Testnet; Mainnet rejects it.pubkey (string) required
lamports (integer) required
config: {
. commitment (string)
. recentBlockhash (string)
} (object)
send_transactionSubmits a signed transaction to the cluster and returns its first signature if the RPC accepts it. The transaction must be signed before it is sent; this connector never handles private keys.transaction (string) required
config: {
. encoding (string)
. skipPreflight (boolean)
. preflightCommitment (string)
. maxRetries (integer)
. minContextSlot (integer)
} (object)
simulate_transactionSimulates a signed transaction using the chain data available at the requested commitment, without broadcasting it.transaction (string) required
config: {
. commitment (string)
. encoding (string)
. replaceRecentBlockhash (boolean)
. sigVerify (boolean)
. minContextSlot (integer)
. innerInstructions (boolean)
. accounts (object)
} (object)
get_blockReturns a confirmed block for a slot, including block metadata and transaction data in the requested encoding.slotNumber (integer) required
config: {
. commitment (string)
. encoding (string)
. transactionDetails (string)
. maxSupportedTransactionVersion (integer)
. rewards (boolean)
} (object)
get_block_commitmentReturns the stake-weighted commitment information recorded for a slot.slotNumber (integer) required
get_block_heightReturns the block height the node sees at the requested commitment.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_block_productionReturns block-production counts for validator identities in the requested slot range. If no range is provided, the RPC node returns counts for the current epoch.config: {
. commitment (string)
. identity (string)
. range (object)
} (object)
get_blocksReturns confirmed block slots in the inclusive range starting at startSlot and ending at endSlot, if provided.startSlot (integer) required
endSlot (integer)
config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_blocks_with_limitReturns up to limit confirmed block slots, starting at startSlot.startSlot (integer) required
limit (integer) required
config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_block_timeReturns the estimated production time for a block.slotNumber (integer) required
get_first_available_blockReturns the lowest confirmed block slot still available in this node's ledger.No parameters
get_recent_performance_samplesReturns recent 60-second performance samples in reverse slot order. Each sample includes the number of transactions and slots recorded in that time window.numberOfSamples (integer)
minimum_ledger_slotReturns the lowest slot still present in this node's local ledger.No parameters
get_cluster_nodesReturns network endpoints, shred version, feature set, and software version for known cluster nodes.No parameters
get_epoch_infoReturns the current epoch position and counters the node sees at the requested commitment.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_epoch_scheduleReturns the cluster's epoch schedule parameters.No parameters
get_genesis_hashReturns the genesis hash for the connected cluster.No parameters
get_healthReturns whether this RPC node is healthy. The node reports healthy when it is within the configured slot distance of the cluster tip.No parameters
get_highest_snapshot_slotReturns the highest full snapshot slot and, if available, the highest incremental snapshot slot built on it.No parameters
get_identityReturns this RPC node's identity Pubkey.No parameters
get_leader_scheduleReturns the leader schedule for the epoch that contains the supplied slot, or for the current epoch if no slot is supplied.slot (integer)
config: {
. commitment (string)
. identity (string)
} (object)
get_max_retransmit_slotReturns the highest slot this node has observed in retransmit.No parameters
get_max_shred_insert_slotReturns the highest slot for which this node has inserted shreds into blockstore.No parameters
get_slotReturns the highest slot reached at the requested commitment.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_slot_leaderReturns the validator identity scheduled to produce the slot at the requested commitment.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_slot_leadersReturns the validator identity for each slot in a contiguous slot range.startSlot (integer) required
limit (integer) required
get_versionReturns the node's software version string and optional feature set identifier.No parameters
get_vote_accountsReturns vote accounts visible at the requested commitment, partitioned into current and delinquent.config: {
. commitment (string)
. votePubkey (string)
. keepUnstakedDelinquents (boolean)
. delinquentSlotDistance (integer)
} (object)
get_inflation_governorReturns the inflation governor parameters active at the requested commitment.config: {
. commitment (string)
} (object)
get_inflation_rateReturns the current epoch's effective inflation rates.No parameters
get_inflation_rewardReturns the inflation reward credited to each supplied address for an epoch. Depending on the supplied address, this may be a staking reward or a voting reward.addresses (array) required
config: {
. commitment (string)
. epoch (integer)
. minContextSlot (integer)
} (object)
get_stake_minimum_delegationReturns the cluster's current minimum stake delegation, in lamports.config: {
. commitment (string)
. minContextSlot (integer)
} (object)
get_supplyReturns total, circulating, and non-circulating supply data.config: {
. commitment (string)
. excludeNonCirculatingAccountsList (boolean)
} (object)