Solana
Solana API is available on Web3 API platform.
Solana is a decentralized blockchain built to enable scalable, user-friendly apps for the world.
In order for your Web3 application to interact with the Solana blockchain — either by reading blockchain data or sending transactions to the network — it must connect to a Solana node. Developers interact with the blockchain using the methods provided by the API.
The API interaction follows the JSON-RPC which is a stateless, lightweight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. It is transport agnostic in that the concepts can be used within the same process, over sockets, over HTTP, or in many various message-passing environments. It uses JSON (RFC 4627) as data format.
Transaction history window. Ankr Solana RPC nodes are configured with a ledger size of ~100M, which retains approximately the last 16 hours of transaction history. Requests via getTransaction, getBlock, getSignaturesForAddress, etc. for slots older than this window will return null or an error. For deeper historical lookups, use a Solana archive provider or a block explorer API.
Methods
getAccountInfo— returns all information associated with the account of provided Pubkey.getBalance— returns the balance of the account of provided Pubkey.getBlock— returns identity and transaction information about a confirmed block in the ledger.getBlockHeight— returns the current block height of the node.getBlockProduction— returns recent block production information from the current or previous epoch.getBlockCommitment— returns the commitment for particular block.getBlocks— returns a list of confirmed blocks between two slots.getBlocksWithLimit— returns a list of confirmed blocks starting at the given slot.getBlockTime— returns the estimated production time of a block.getClusterNodes— returns information about all the nodes participating in the cluster.getEpochInfo— returns information about the current epoch.getEpochSchedule— returns epoch schedule information from this cluster's genesis config.getFeeForMessage— returns the fee the network will charge for a particular message.getFirstAvailableBlock— returns the slot of the lowest confirmed block that has not been purged from the ledger.getGenesisHash— returns the genesis hash.getHealth— returns the current health of the node.getHighestSnapshotSlot— returns the highest slot information that the node has snapshots for.getIdentity— returns the identity pubkey for the current node.getInflationGovernor— returns the current inflation governor.getInflationRate— returns the specific inflation values for the current epoch.getInflationReward— returns the inflation / staking reward for a list of addresses for an epoch.getLargestAccounts— returns the 20 largest accounts, by lamport balance.getLatestBlockhash— returns the latest blockhash.getLeaderSchedule— returns the leader schedule for an epoch.getMaxRetransmitSlot— returns the max slot seen from retransmit stage.getMaxShredInsertSlot— returns the max slot seen from after shred insert.getMinimumBalanceForRentExemption— returns minimum balance required to make account rent exempt.getMultipleAccounts— returns the account information for a list of Pubkeys.getProgramAccounts— returns all accounts owned by the provided program Pubkey.getRecentPerformanceSamples— returns the list of recent performance samples.getSignaturesForAddress— returns signatures for confirmed transactions that include the given address in theiraccountKeyslist.getSignatureStatuses— returns the statuses of a list of signatures.getSlot— returns the slot that has reached the given or default commitment level.getSlotLeader— returns the current slot leader.getSlotLeaders— returns the slot leaders for a given slot range.getSupply— returns information about the current supply.getTokenAccountBalance— returns the token balance of an SPL Token account.getTokenAccountsByDelegate— returns all SPL Token accounts by approved delegate.getTokenAccountsByOwner— returns all SPL Token accounts by token owner.getTokenLargestAccounts— returns the 20 largest accounts of a particular SPL Token type.getTokenSupply— returns the total supply of an SPL Token type.getTransaction— returns transaction details for a confirmed transaction.getTransactionCount— returns the current Transaction count from the ledger.getVersion— returns the current solana versions running on the node.getVoteAccounts— returns the account info and associated stake for all the voting accounts in the current bank.isBlockhashValid— returns whether a blockhash is still valid or not.minimumLedgerSlot— returns the lowest slot that the node has information about in its ledger.requestAirdrop— requests an airdrop of lamports to a Pubkey.sendTransaction— submits a signed transaction to the cluster for processing.simulateTransaction— simulates sending a transaction.
Methods
Methods
getAccountInfogetBalancegetBlockgetBlockHeightgetBlockProductiongetBlockCommitmentgetBlocksgetBlocksWithLimitgetBlockTimegetClusterNodesgetEpochInfogetEpochSchedulegetFeeForMessagegetFirstAvailableBlockgetGenesisHashgetHealthgetHighestSnapshotSlotgetIdentitygetInflationGovernorgetInflationRategetInflationRewardgetLargestAccountsgetLatestBlockhashgetLeaderSchedulegetMaxRetransmitSlotgetMaxShredInsertSlotgetMinimumBalanceForRentExemption
Methods
getMultipleAccountsgetProgramAccountsgetRecentPerformanceSamplesgetSignaturesForAddressgetSignatureStatusesgetSlotgetSlotLeadergetSlotLeadersgetSupplygetTokenAccountBalancegetTokenAccountsByDelegategetTokenAccountsByOwnergetTokenLargestAccountsgetTokenSupplygetTransactiongetTransactionCountgetVersion