Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 5.74 KB

solana-api.mdx

File metadata and controls

118 lines (90 loc) · 5.74 KB

Solana API endpoints

These methods are retrieving information about blocks, accounts, or transactions, these methods provide a comprehensive way to understand the state and functioning of the network.

Accounts info

Offers detailed information regarding the on-chain state of accounts.

getAccountInfo
getBalance
getVoteAccounts
getLargestAccounts
getMultipleAccounts
getProgramAccounts
getStakeActivation

Blocks info

Provides detailed insights about blocks on the blockchain.

getBlockCommitment
getBlockProduction
getBlocks
getBlock
getBlocksWithLimit
getBlockHeight
getBlockTime
getConfirmedBlocks
getConfirmedBlock
isBlockhashValid
getLatestBlockhash

Network info

Offers aggregate data related to the overall network status and operational metrics.

getEpochInfo
getEpochSchedule
getFeeForMessage
getHighestSnapshotSlot
getGenesisHash
getRecentPerformanceSamples
getFirstAvailableBlock
getMinimumBalanceForRentExemption
getFees
getFeeCalculatorForBlockhash
getRecentPrioritizationFees

Subscriptions

Allows clients to receive real-time updates and notifications about various on-chain events.

accountSubscribe
accountUnsubscribe
blockSubscribe
blockUnsubscribe
logsSubscribe
logUnsubscribe
programSubscribe
programUnsubscribe
signatureSubscribe
signatureUnsubscribe
slotSubscribe
slotUnsubscribe

Node info

Provides data related to the configuration and health of the Solana nodes, which form the backbone of the network.

getClusterNodes
getHealth
getVersion
getIdentity

Slot info

Slots represent periods of time during which a leader is responsible for processing transactions. These methods provide data related to slot timing and leadership.

getMaxRetransmitSlot
getMaxShredInsertSlot
getSlot
getSlotLeader
getSlotLeaders
minimumLedgerSlot
getLeaderSchedule

Network inflation info

Solana implements a staking and inflation model to incentivize validators and participants. These methods help retrieve inflation-related data.

getInflationGovernor
getInflationRate
getInflationReward
getSupply

Token info

Focuses on accounts and balances associated with specific tokens

getTokenSupply
getTokenAccountBalance
getTokenAccountsByDelegate
getTokenAccountsByOwner
getTokenLargestAccounts
requestAirdrop

Transactions info

Allows to interact with and retrieve data about specific transactions, from signatures to transaction status.

getTransactionCount
getConfirmedTransaction
getTransaction
sendTransaction
simulateTransaction
getSignaturesForAddress
getSignatureStatuses
getConfirmedSignaturesForAddress2