Skip to main content

GoldRush Solana JSON-RPC Methods

Endpoint: https://rpc.goldrushdata.com/v1/solana-mainnet (HTTP); wss://rpc.goldrushdata.com/v1/solana-mainnet (subscriptions). Auth: Authorization: Bearer <GOLDRUSH_API_KEY> header. Commitment levels: processed, confirmed, finalized. Balances in lamports (1 SOL = 1e9 lamports).

Blocks info

MethodTransportCreditsSummary
getBlockHTTP0.05Returns identity and transaction information for a confirmed block.
getBlocksHTTP0.05Returns a list of confirmed blocks between two slots.
getBlocksWithLimitHTTP0.05Returns a list of confirmed blocks starting at a slot, up to a limit.
getBlockHeightHTTP0.01Returns the current block height of the node.
getBlockTimeHTTP0.01Returns the estimated production time of a block.
getBlockProductionHTTP0.05Returns recent block production information for the current or a previous epoch.
getBlockCommitmentHTTP0.01Returns the commitment (stake-weighted votes) for a block.
getLatestBlockhashHTTP0.01Returns the latest blockhash and its last valid block height.
isBlockhashValidHTTP0.01Returns whether a blockhash is still valid.
getRecentBlockhash (deprecated)HTTP0.01Returns a recent blockhash and fee schedule (deprecated).
getConfirmedBlock (deprecated)HTTP0.05Returns the contents of a confirmed block (deprecated).
getConfirmedBlocks (deprecated)HTTP0.05Returns a list of confirmed blocks between two slots (deprecated).

Transactions info

MethodTransportCreditsSummary
getTransactionHTTP0.01Returns details for a confirmed transaction by signature.
sendTransactionHTTP0.01Submits a signed transaction to the cluster.
simulateTransactionHTTP0.01Simulates sending a transaction without submitting it.
getSignaturesForAddressHTTP0.05Returns confirmed transaction signatures involving an address.
getSignatureStatusesHTTP0.01Returns the status of a list of transaction signatures.
getTransactionCountHTTP0.01Returns the total number of transactions processed by the cluster.
getConfirmedTransaction (deprecated)HTTP0.01Returns details for a confirmed transaction (deprecated).
getConfirmedSignaturesForAddress2 (deprecated)HTTP0.05Returns confirmed signatures for an address (deprecated).

Node info

MethodTransportCreditsSummary
getHealthHTTP0.01Returns the health status of the node.
getVersionHTTP0.01Returns the Solana software version running on the node.
getIdentityHTTP0.01Returns the identity pubkey of the node.
getClusterNodesHTTP0.01Returns information about all nodes participating in the cluster.

Account info

MethodTransportCreditsSummary
getAccountInfoHTTP0.01Returns all information associated with an account.
getBalanceHTTP0.01Returns the lamport balance of an account.
getMultipleAccountsHTTP0.05Returns account information for a list of addresses.
getProgramAccountsHTTP0.05Returns all accounts owned by a program.
getLargestAccountsHTTP0.05Returns the 20 largest accounts by lamport balance.
getVoteAccountsHTTP0.05Returns the current and delinquent vote accounts.
getStakeActivation (deprecated)HTTP0.01Returns epoch activation information for a stake account (deprecated).

Network info

MethodTransportCreditsSummary
getEpochInfoHTTP0.01Returns information about the current epoch.
getEpochScheduleHTTP0.01Returns the epoch schedule from the cluster genesis config.
getFeeForMessageHTTP0.01Returns the fee the cluster will charge for a message.
getRecentPrioritizationFeesHTTP0.01Returns recent per-compute-unit prioritization fees.
getMinimumBalanceForRentExemptionHTTP0.01Returns the minimum lamport balance for rent exemption.
getGenesisHashHTTP0.01Returns the genesis hash of the cluster.
getFirstAvailableBlockHTTP0.01Returns the slot of the lowest confirmed block still available.
getHighestSnapshotSlotHTTP0.01Returns the highest slot for which the node has snapshots.
getRecentPerformanceSamplesHTTP0.05Returns recent network performance samples.
getFees (deprecated)HTTP0.01Returns a recent blockhash and fee schedule (deprecated).
getFeeCalculatorForBlockhash (deprecated)HTTP0.01Returns the fee calculator for a blockhash (deprecated).

Slot info

MethodTransportCreditsSummary
getSlotHTTP0.01Returns the slot that has reached the given commitment level.
getSlotLeaderHTTP0.01Returns the current slot leader.
getSlotLeadersHTTP0.01Returns the slot leaders for a slot range.
getLeaderScheduleHTTP0.05Returns the leader schedule for an epoch.
getMaxRetransmitSlotHTTP0.01Returns the highest slot seen by the retransmit stage.
getMaxShredInsertSlotHTTP0.01Returns the highest slot for which shreds have been inserted.
minimumLedgerSlotHTTP0.01Returns the lowest slot the node has information about in its ledger.

Token info

MethodTransportCreditsSummary
getTokenAccountsByOwnerHTTP0.05Returns all SPL token accounts owned by an address.
getTokenAccountBalanceHTTP0.01Returns the token balance of an SPL token account.
getTokenSupplyHTTP0.01Returns the total supply of an SPL token.
getTokenLargestAccountsHTTP0.05Returns the 20 largest accounts for an SPL token mint.
getTokenAccountsByDelegateHTTP0.05Returns all SPL token accounts delegated to an address.
requestAirdropHTTP0.01Requests an airdrop of lamports to an account (devnet/testnet).

Subscriptions

MethodTransportCreditsSummary
accountSubscribeWebSocket0.01Subscribes to changes to an account.
accountUnsubscribeWebSocket0.01Cancels an account subscription.
logsSubscribeWebSocket0.01Subscribes to transaction logging.
logsUnsubscribeWebSocket0.01Cancels a logs subscription.
programSubscribeWebSocket0.01Subscribes to changes to all accounts owned by a program.
programUnsubscribeWebSocket0.01Cancels a program subscription.
signatureSubscribeWebSocket0.01Subscribes to receive a notification when a transaction is confirmed.
signatureUnsubscribeWebSocket0.01Cancels a signature subscription.
slotSubscribeWebSocket0.01Subscribes to receive notification when a slot is processed.
slotUnsubscribeWebSocket0.01Cancels a slot subscription.
blockSubscribeWebSocket0.01Subscribes to receive notification when a new block is confirmed.
blockUnsubscribeWebSocket0.01Cancels a block subscription.

Network inflation info

MethodTransportCreditsSummary
getInflationGovernorHTTP0.01Returns the current inflation governor parameters.
getInflationRateHTTP0.01Returns the inflation rates for the current epoch.
getInflationRewardHTTP0.05Returns the inflation/staking reward for a list of addresses.
getSupplyHTTP0.05Returns information about the current supply of SOL.

Per-method details

getBlock

Summary: Returns identity and transaction information for a confirmed block. Parameters:
NameTypeRequiredDescription
slotu64yesSlot number to fetch, as a u64 integer.
configobjectno{commitment?, encoding?, transactionDetails?, maxSupportedTransactionVersion?, rewards?}. encoding is one of json, jsonParsed, base58, base64.
Returns: object | null. Block object with blockhash, previousBlockhash, parentSlot, transactions, rewards, blockTime, blockHeight; null if the block is not confirmed.

getBlocks

Summary: Returns a list of confirmed blocks between two slots. Parameters:
NameTypeRequiredDescription
startSlotu64yesFirst slot to include (inclusive).
endSlotu64noLast slot to include (inclusive). Must be no more than 500,000 slots after startSlot.
configobjectno{commitment?}. processed is not supported.
Returns: array<u64>. Array of confirmed block slots in ascending order.

getBlocksWithLimit

Summary: Returns a list of confirmed blocks starting at a slot, up to a limit. Parameters:
NameTypeRequiredDescription
startSlotu64yesFirst slot to include (inclusive).
limitu64yesMaximum number of blocks to return (must be no greater than 500,000).
configobjectno{commitment?}. processed is not supported.
Returns: array<u64>. Array of confirmed block slots in ascending order.

getBlockHeight

Summary: Returns the current block height of the node. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: u64. Current block height.

getBlockTime

Summary: Returns the estimated production time of a block. Parameters:
NameTypeRequiredDescription
slotu64yesSlot to look up.
Returns: i64 | null. Unix timestamp in seconds, or null if unavailable.

getBlockProduction

Summary: Returns recent block production information for the current or a previous epoch. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, identity?, range?: {firstSlot, lastSlot?}}. identity filters to a single validator (base-58 pubkey).
Returns: object. {context, value: {byIdentity, range}} where byIdentity maps validator pubkey to [leaderSlots, blocksProduced].

getBlockCommitment

Summary: Returns the commitment (stake-weighted votes) for a block. Parameters:
NameTypeRequiredDescription
slotu64yesSlot to query.
Returns: object. {commitment: array<u64> | null, totalStake: u64}.

getLatestBlockhash

Summary: Returns the latest blockhash and its last valid block height. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: object. {context, value: {blockhash, lastValidBlockHeight}}.

isBlockhashValid

Summary: Returns whether a blockhash is still valid. Parameters:
NameTypeRequiredDescription
blockhashstringyesBase-58 encoded blockhash to check.
configobjectno{commitment?, minContextSlot?}.
Returns: object. {context, value: boolean}: true if the blockhash is still valid.

getRecentBlockhash

Deprecated. Use getLatestBlockhash instead. Summary: Returns a recent blockhash and fee schedule (deprecated). Parameters:
NameTypeRequiredDescription
configobjectno{commitment?}.
Returns: object. {context, value: {blockhash, feeCalculator: {lamportsPerSignature}}}.

getConfirmedBlock

Deprecated. Use getBlock instead. Summary: Returns the contents of a confirmed block (deprecated). Parameters:
NameTypeRequiredDescription
slotu64yesSlot number to fetch.
configobjectno{encoding?, transactionDetails?, rewards?, commitment?}.
Returns: object | null. Block object, or null if not confirmed.

getConfirmedBlocks

Deprecated. Use getBlocks instead. Summary: Returns a list of confirmed blocks between two slots (deprecated). Parameters:
NameTypeRequiredDescription
startSlotu64yesFirst slot to include.
endSlotu64noLast slot to include.
Returns: array<u64>. Array of confirmed block slots.

getTransaction

Summary: Returns details for a confirmed transaction by signature. Parameters:
NameTypeRequiredDescription
signaturestringyesBase-58 encoded transaction signature.
configobjectno{commitment?, encoding?, maxSupportedTransactionVersion?}. encoding is one of json, jsonParsed, base58, base64.
Returns: object | null. Transaction object with slot, blockTime, transaction, meta; null if not found.

sendTransaction

Summary: Submits a signed transaction to the cluster. Parameters:
NameTypeRequiredDescription
transactionstringyesFully-signed transaction, encoded as a base64 (recommended) or base58 string.
configobjectno{encoding?, skipPreflight?, preflightCommitment?, maxRetries?, minContextSlot?}. Set encoding: "base64" to match the transaction encoding.
Returns: string. Base-58 encoded transaction signature (the first signature in the transaction).

simulateTransaction

Summary: Simulates sending a transaction without submitting it. Parameters:
NameTypeRequiredDescription
transactionstringyesTransaction to simulate, base64 or base58 encoded. May be unsigned when sigVerify is false.
configobjectno{encoding?, sigVerify?, replaceRecentBlockhash?, commitment?, accounts?, minContextSlot?}. accounts requests post-simulation account state.
Returns: object. {context, value: {err, logs, accounts, unitsConsumed, returnData}}.

getSignaturesForAddress

Summary: Returns confirmed transaction signatures involving an address. Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded account address.
configobjectno{limit?, before?, until?, commitment?, minContextSlot?}. limit defaults to 1000 (max 1000).
Returns: array<object>. Array of {signature, slot, err, memo, blockTime, confirmationStatus} newest first.

getSignatureStatuses

Summary: Returns the status of a list of transaction signatures. Parameters:
NameTypeRequiredDescription
signaturesarray<string>yesArray of base-58 encoded transaction signatures (max 256).
configobjectno{searchTransactionHistory?}.
Returns: object. {context, value: array<{slot, confirmations, err, confirmationStatus} | null>}.

getTransactionCount

Summary: Returns the total number of transactions processed by the cluster. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: u64. Cumulative transaction count.

getConfirmedTransaction

Deprecated. Use getTransaction instead. Summary: Returns details for a confirmed transaction (deprecated). Parameters:
NameTypeRequiredDescription
signaturestringyesBase-58 encoded transaction signature.
encodingstringnojson, jsonParsed, base58, or base64.
Returns: object | null. Transaction object, or null if not found.

getConfirmedSignaturesForAddress2

Deprecated. Use getSignaturesForAddress instead. Summary: Returns confirmed signatures for an address (deprecated). Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded account address.
configobjectno{limit?, before?, until?, commitment?}.
Returns: array<object>. Array of {signature, slot, err, memo, blockTime}.

getHealth

Summary: Returns the health status of the node. Parameters: none Returns: string. "ok" when healthy.

getVersion

Summary: Returns the Solana software version running on the node. Parameters: none Returns: object. {"solana-core": string, "feature-set": u32}.

getIdentity

Summary: Returns the identity pubkey of the node. Parameters: none Returns: object. {identity: string}: base-58 encoded validator identity pubkey.

getClusterNodes

Summary: Returns information about all nodes participating in the cluster. Parameters: none Returns: array<object>. Array of {pubkey, gossip, tpu, rpc, version, featureSet, shredVersion}.

getAccountInfo

Summary: Returns all information associated with an account. Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded account address (pubkey).
configobjectno{commitment?, encoding?, dataSlice?: {offset, length}, minContextSlot?}. encoding is one of base58, base64, base64+zstd, jsonParsed.
Returns: object | null. {context, value: {lamports, owner, data, executable, rentEpoch, space} | null}. value is null if the account does not exist.

getBalance

Summary: Returns the lamport balance of an account. Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded account address.
configobjectno{commitment?, minContextSlot?}.
Returns: object. {context, value: u64}: balance in lamports.

getMultipleAccounts

Summary: Returns account information for a list of addresses. Parameters:
NameTypeRequiredDescription
addressesarray<string>yesArray of base-58 encoded account addresses (max 100).
configobjectno{commitment?, encoding?, dataSlice?, minContextSlot?}.
Returns: object. {context, value: array<accountInfo | null>}.

getProgramAccounts

Summary: Returns all accounts owned by a program. Parameters:
NameTypeRequiredDescription
programIdstringyesBase-58 encoded program pubkey.
configobjectno{commitment?, encoding?, dataSlice?, filters?: array, withContext?, minContextSlot?}. filters accepts {dataSize} and {memcmp: {offset, bytes}}.
Returns: array<object> | object. Array of {pubkey, account} objects (or a {context, value} envelope when withContext is set).

getLargestAccounts

Summary: Returns the 20 largest accounts by lamport balance. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, filter?: "circulating" | "nonCirculating"}.
Returns: object. {context, value: array<{address, lamports}>}.

getVoteAccounts

Summary: Returns the current and delinquent vote accounts. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, votePubkey?, keepUnstakedDelinquents?, delinquentSlotDistance?}. votePubkey filters to a single validator.
Returns: object. {current: array<voteAccount>, delinquent: array<voteAccount>} with votePubkey, nodePubkey, activatedStake, commission, epochCredits, lastVote.

getStakeActivation

Deprecated. Use getAccountInfo instead. Summary: Returns epoch activation information for a stake account (deprecated). Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded stake account address.
configobjectno{commitment?, epoch?, minContextSlot?}.
Returns: object. {state, active, inactive}.

getEpochInfo

Summary: Returns information about the current epoch. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: object. {epoch, absoluteSlot, slotIndex, slotsInEpoch, blockHeight, transactionCount}.

getEpochSchedule

Summary: Returns the epoch schedule from the cluster genesis config. Parameters: none Returns: object. {slotsPerEpoch, leaderScheduleSlotOffset, warmup, firstNormalEpoch, firstNormalSlot}.

getFeeForMessage

Summary: Returns the fee the cluster will charge for a message. Parameters:
NameTypeRequiredDescription
messagestringyesBase-64 encoded serialized transaction message.
configobjectno{commitment?, minContextSlot?}.
Returns: object. {context, value: u64 | null}: fee in lamports, or null if the blockhash has expired.

getRecentPrioritizationFees

Summary: Returns recent per-compute-unit prioritization fees. Parameters:
NameTypeRequiredDescription
addressesarray<string>noUp to 128 base-58 account addresses; fees are scoped to slots where these accounts were written.
Returns: array<object>. Array of {slot, prioritizationFee} for recent slots.

getMinimumBalanceForRentExemption

Summary: Returns the minimum lamport balance for rent exemption. Parameters:
NameTypeRequiredDescription
dataLengthusizeyesAccount data length in bytes.
configobjectno{commitment?}.
Returns: u64. Minimum rent-exempt balance in lamports.

getGenesisHash

Summary: Returns the genesis hash of the cluster. Parameters: none Returns: string. Base-58 encoded genesis hash.

getFirstAvailableBlock

Summary: Returns the slot of the lowest confirmed block still available. Parameters: none Returns: u64. Slot of the first available block.

getHighestSnapshotSlot

Summary: Returns the highest slot for which the node has snapshots. Parameters: none Returns: object. {full: u64, incremental: u64 | null}.

getRecentPerformanceSamples

Summary: Returns recent network performance samples. Parameters:
NameTypeRequiredDescription
limitusizenoNumber of samples to return (max 720).
Returns: array<object>. Array of {slot, numTransactions, numSlots, samplePeriodSecs, numNonVoteTransactions}.

getFees

Deprecated. Use getFeeForMessage instead. Summary: Returns a recent blockhash and fee schedule (deprecated). Parameters:
NameTypeRequiredDescription
configobjectno{commitment?}.
Returns: object. {context, value: {blockhash, feeCalculator, lastValidSlot, lastValidBlockHeight}}.

getFeeCalculatorForBlockhash

Deprecated. Use getFeeForMessage instead. Summary: Returns the fee calculator for a blockhash (deprecated). Parameters:
NameTypeRequiredDescription
blockhashstringyesBase-58 encoded blockhash.
configobjectno{commitment?}.
Returns: object. {context, value: {feeCalculator: {lamportsPerSignature}} | null}.

getSlot

Summary: Returns the slot that has reached the given commitment level. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: u64. Current slot.

getSlotLeader

Summary: Returns the current slot leader. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, minContextSlot?}.
Returns: string. Base-58 encoded slot leader identity pubkey.

getSlotLeaders

Summary: Returns the slot leaders for a slot range. Parameters:
NameTypeRequiredDescription
startSlotu64yesFirst slot of the range.
limitu64yesNumber of leaders to return (1–5000).
Returns: array<string>. Array of base-58 leader identity pubkeys, one per slot.

getLeaderSchedule

Summary: Returns the leader schedule for an epoch. Parameters:
NameTypeRequiredDescription
slotu64noSlot whose epoch’s schedule to fetch; defaults to the current epoch.
configobjectno{commitment?, identity?}. identity filters to a single validator.
Returns: object | null. Map of leader pubkey → array of slot indices, or null if the epoch has no schedule.

getMaxRetransmitSlot

Summary: Returns the highest slot seen by the retransmit stage. Parameters: none Returns: u64. Highest retransmit slot.

getMaxShredInsertSlot

Summary: Returns the highest slot for which shreds have been inserted. Parameters: none Returns: u64. Highest shred-insert slot.

minimumLedgerSlot

Summary: Returns the lowest slot the node has information about in its ledger. Parameters: none Returns: u64. Lowest retained ledger slot.

getTokenAccountsByOwner

Summary: Returns all SPL token accounts owned by an address. Parameters:
NameTypeRequiredDescription
ownerstringyesBase-58 encoded owner wallet address.
filterobjectyesEither {mint} (base-58 token mint) or {programId} (base-58 token program). Exactly one is required.
configobjectno{commitment?, encoding?, dataSlice?, minContextSlot?}.
Returns: object. {context, value: array<{pubkey, account}>}: token accounts with parsed tokenAmount when jsonParsed.

getTokenAccountBalance

Summary: Returns the token balance of an SPL token account. Parameters:
NameTypeRequiredDescription
accountstringyesBase-58 encoded SPL token account address.
configobjectno{commitment?}.
Returns: object. {context, value: {amount, decimals, uiAmount, uiAmountString}}.

getTokenSupply

Summary: Returns the total supply of an SPL token. Parameters:
NameTypeRequiredDescription
mintstringyesBase-58 encoded SPL token mint address.
configobjectno{commitment?}.
Returns: object. {context, value: {amount, decimals, uiAmount, uiAmountString}}.

getTokenLargestAccounts

Summary: Returns the 20 largest accounts for an SPL token mint. Parameters:
NameTypeRequiredDescription
mintstringyesBase-58 encoded SPL token mint address.
configobjectno{commitment?}.
Returns: object. {context, value: array<{address, amount, decimals, uiAmount, uiAmountString}>}.

getTokenAccountsByDelegate

Summary: Returns all SPL token accounts delegated to an address. Parameters:
NameTypeRequiredDescription
delegatestringyesBase-58 encoded delegate address.
filterobjectyesEither {mint} or {programId}. Exactly one is required.
configobjectno{commitment?, encoding?, dataSlice?, minContextSlot?}.
Returns: object. {context, value: array<{pubkey, account}>}.

requestAirdrop

Summary: Requests an airdrop of lamports to an account (devnet/testnet). Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded recipient address.
lamportsu64yesNumber of lamports to airdrop.
configobjectno{commitment?}.
Returns: string. Base-58 encoded airdrop transaction signature.

getInflationGovernor

Summary: Returns the current inflation governor parameters. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?}.
Returns: object. {initial, terminal, taper, foundation, foundationTerm}.

getInflationRate

Summary: Returns the inflation rates for the current epoch. Parameters: none Returns: object. {total, validator, foundation, epoch}.

getInflationReward

Summary: Returns the inflation/staking reward for a list of addresses. Parameters:
NameTypeRequiredDescription
addressesarray<string>yesArray of base-58 account addresses to query.
configobjectno{commitment?, epoch?, minContextSlot?}.
Returns: array<object>. Array of {epoch, effectiveSlot, amount, postBalance, commission} | null, one per address.

getSupply

Summary: Returns information about the current supply of SOL. Parameters:
NameTypeRequiredDescription
configobjectno{commitment?, excludeNonCirculatingAccountsList?}.
Returns: object. {context, value: {total, circulating, nonCirculating, nonCirculatingAccounts}}: values in lamports.

accountSubscribe

Summary: Subscribes to changes to an account. Parameters:
NameTypeRequiredDescription
addressstringyesBase-58 encoded account address to watch.
configobjectno{commitment?, encoding?}.
Returns: number. Subscription id (used with accountUnsubscribe). Notifications arrive as accountNotification messages.

accountUnsubscribe

Summary: Cancels an account subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by accountSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.

logsSubscribe

Summary: Subscribes to transaction logging. Parameters:
NameTypeRequiredDescription
filterstring | objectyes"all", "allWithVotes", or {mentions: [<base-58 address>]}.
configobjectno{commitment?}.
Returns: number. Subscription id (used with logsUnsubscribe). Notifications arrive as logsNotification messages.

logsUnsubscribe

Summary: Cancels a logs subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by logsSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.

programSubscribe

Summary: Subscribes to changes to all accounts owned by a program. Parameters:
NameTypeRequiredDescription
programIdstringyesBase-58 encoded program pubkey to watch.
configobjectno{commitment?, encoding?, filters?}.
Returns: number. Subscription id (used with programUnsubscribe). Notifications arrive as programNotification messages.

programUnsubscribe

Summary: Cancels a program subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by programSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.

signatureSubscribe

Summary: Subscribes to receive a notification when a transaction is confirmed. Parameters:
NameTypeRequiredDescription
signaturestringyesBase-58 encoded transaction signature to watch.
configobjectno{commitment?, enableReceivedNotification?}.
Returns: number. Subscription id (used with signatureUnsubscribe). Notifications arrive as signatureNotification messages.

signatureUnsubscribe

Summary: Cancels a signature subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by signatureSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.

slotSubscribe

Summary: Subscribes to receive notification when a slot is processed. Parameters: none Returns: number. Subscription id (used with slotUnsubscribe). Notifications arrive as slotNotification messages with {parent, root, slot}.

slotUnsubscribe

Summary: Cancels a slot subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by slotSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.

blockSubscribe

Summary: Subscribes to receive notification when a new block is confirmed. Parameters:
NameTypeRequiredDescription
filterstring | objectyes"all" or {mentionsAccountOrProgram: <base-58 address>}.
configobjectno{commitment?, encoding?, transactionDetails?, showRewards?, maxSupportedTransactionVersion?}.
Returns: number. Subscription id (used with blockUnsubscribe). Notifications arrive as blockNotification messages.

blockUnsubscribe

Summary: Cancels a block subscription. Parameters:
NameTypeRequiredDescription
subscriptionIdnumberyesSubscription id returned by blockSubscribe.
Returns: boolean. true if the subscription was successfully cancelled.