HttpConnection mixin
HTTP Connection
The HTTP JSON RPC method calls.
- Mixin applications
Properties
- commitment → Commitment?
-
The default commitment level applied to all methods that query bank state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → JsonRpcHttpClient
-
HTTP client (persistent connection).
no setter
- httpClientConfig → JsonRpcClientConfig?
-
HTTP client request configurations.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAccountInfo(
Pubkey pubkey, {GetAccountInfoConfig? config}) → Future< AccountInfo?> -
Returns all information associated with the account of the provided
pubkey
. -
getAccountInfoRaw(
Pubkey pubkey, {GetAccountInfoConfig? config}) → Future< JsonRpcContextResponse< AccountInfo?> > -
Returns all information associated with the account of the provided
pubkey
. -
getBalance(
Pubkey pubkey, {GetBalanceConfig? config}) → Future< u64> -
Returns the balance of the account of provided
pubkey
-
getBalanceRaw(
Pubkey pubkey, {GetBalanceConfig? config}) → Future< JsonRpcContextResponse< u64> > -
Returns the balance of the account of provided
pubkey
-
getBlock(
u64 slot, {GetBlockConfig? config}) → Future< Block?> -
Returns identity and transaction information about a confirmed block at
slot
in the ledger. -
getBlockCommitment(
u64 slot) → Future< BlockCommitment> - Returns the commitment for a particular block (slot).
-
getBlockCommitmentRaw(
u64 slot) → Future< JsonRpcSuccessResponse< BlockCommitment> > - Returns the commitment for a particular block (slot).
-
getBlockHeight(
{GetBlockHeightConfig? config}) → Future< u64> - Returns the current block height of the node.
-
getBlockHeightRaw(
{GetBlockHeightConfig? config}) → Future< JsonRpcSuccessResponse< u64> > - Returns the current block height of the node.
-
getBlockProduction(
{GetBlockProductionConfig? config}) → Future< BlockProduction> - Returns the recent block production information from the current or previous epoch.
-
getBlockProductionRaw(
{GetBlockProductionConfig? config}) → Future< JsonRpcContextResponse< BlockProduction> > - Returns the recent block production information from the current or previous epoch.
-
getBlockRaw(
u64 slot, {GetBlockConfig? config}) → Future< JsonRpcSuccessResponse< Block?> > -
Returns identity and transaction information about a confirmed block at
slot
in the ledger. -
getBlocks(
u64 startSlot, {u64? endSlot, GetBlocksConfig? config}) → Future< List< u64> > - Returns a list of confirmed blocks between two slots.
-
getBlocksRaw(
u64 startSlot, {u64? endSlot, GetBlocksConfig? config}) → Future< JsonRpcSuccessResponse< List< >u64> > - Returns a list of confirmed blocks between two slots.
-
getBlocksWithLimit(
u64 slot, {required u64 limit, GetBlocksWithLimitConfig? config}) → Future< List< u64> > -
Returns a list of
limit
confirmed blocks starting at the givenslot
. -
getBlocksWithLimitRaw(
u64 slot, {required u64 limit, GetBlocksWithLimitConfig? config}) → Future< JsonRpcSuccessResponse< List< >u64> > -
Returns a list of
limit
confirmed blocks starting at the givenslot
. -
getBlockTime(
u64 slot) → Future< i64?> - Returns the estimated production time of a block.
-
getBlockTimeRaw(
u64 slot) → Future< JsonRpcSuccessResponse< i64?> > - Returns the estimated production time of a block.
-
getClusterNodes(
) → Future< List< ClusterNode> > - Returns information about all the nodes participating in the cluster.
-
getClusterNodesRaw(
) → Future< JsonRpcSuccessResponse< List< >ClusterNode> > - Returns information about all the nodes participating in the cluster.
-
getEpochInfo(
{GetEpochInfoConfig? config}) → Future< EpochInfo> - Returns information about the current epoch.
-
getEpochInfoRaw(
{GetEpochInfoConfig? config}) → Future< JsonRpcSuccessResponse< EpochInfo> > - Returns information about the current epoch.
-
getEpochSchedule(
) → Future< EpochSchedule> - Returns the epoch schedule information from the cluster's genesis config.
-
getEpochScheduleRaw(
) → Future< JsonRpcSuccessResponse< EpochSchedule> > - Returns the epoch schedule information from the cluster's genesis config.
-
getFeeForEncodedMessage(
String message, {GetFeeForMessageConfig? config}) → Future< u64> -
Returns the network fee that will be charged to send
message
. -
getFeeForEncodedMessageRaw(
String message, {GetFeeForMessageConfig? config}) → Future< JsonRpcContextResponse< u64?> > -
Returns the network fee that will be charged to send
message
. -
getFeeForMessage(
Message message, {GetFeeForMessageConfig? config}) → Future< u64> -
Returns the network fee that will be charged to send
message
. -
getFeeForMessageRaw(
Message message, {GetFeeForMessageConfig? config}) → Future< JsonRpcContextResponse< u64?> > -
Returns the network fee that will be charged to send
message
. -
getFirstAvailableBlock(
) → Future< u64> - Returns the slot of the lowest confirmed block that has not been purged from the ledger.
-
getFirstAvailableBlockRaw(
) → Future< JsonRpcSuccessResponse< u64> > - Returns the slot of the lowest confirmed block that has not been purged from the ledger.
-
getGenesisHash(
) → Future< String> - Returns the genesis hash.
-
getGenesisHashRaw(
) → Future< JsonRpcSuccessResponse< String> > - Returns the genesis hash.
-
getHealth(
) → Future< HealthStatus> - Returns the current health of the node.
-
getHealthRaw(
) → Future< JsonRpcSuccessResponse< HealthStatus> > - Returns the current health of the node.
-
getHighestSnapshotSlot(
) → Future< HighestSnapshotSlot> - Returns the highest slot information that the node has snapshots for.
-
getHighestSnapshotSlotRaw(
) → Future< JsonRpcSuccessResponse< HighestSnapshotSlot> > - Returns the highest slot information that the node has snapshots for.
-
getIdentity(
) → Future< Identity> - Returns the identity pubkey for the current node.
-
getIdentityRaw(
) → Future< JsonRpcSuccessResponse< Identity> > - Returns the identity pubkey for the current node.
-
getInflationGovernor(
{GetInflationGovernorConfig? config}) → Future< InflationGovernor> - Returns the current inflation governor.
-
getInflationGovernorRaw(
{GetInflationGovernorConfig? config}) → Future< JsonRpcSuccessResponse< InflationGovernor> > - Returns the current inflation governor.
-
getInflationRate(
) → Future< InflationRate> - Returns the specific inflation values for the current epoch.
-
getInflationRateRaw(
) → Future< JsonRpcSuccessResponse< InflationRate> > - Returns the specific inflation values for the current epoch.
-
getInflationReward(
Iterable< Pubkey> addresses, {GetInflationRewardConfig? config}) → Future<List< InflationReward?> > -
Returns the inflation / staking reward for a list of
addresses
for an epoch. -
getInflationRewardRaw(
Iterable< Pubkey> addresses, {GetInflationRewardConfig? config}) → Future<JsonRpcSuccessResponse< List< >InflationReward?> > -
Returns the inflation / staking reward for a list of
addresses
for an epoch. -
getLargestAccounts(
{GetLargestAccountsConfig? config}) → Future< List< LargeAccount> > - Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).
-
getLargestAccountsRaw(
{GetLargestAccountsConfig? config}) → Future< JsonRpcContextResponse< List< >LargeAccount> > - Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).
-
getLatestBlockhash(
{GetLatestBlockhashConfig? config}) → Future< BlockhashWithExpiryBlockHeight> - Returns the latest blockhash.
-
getLatestBlockhashRaw(
{GetLatestBlockhashConfig? config}) → Future< JsonRpcContextResponse< BlockhashWithExpiryBlockHeight> > - Returns the latest blockhash.
-
getLeaderSchedule(
{u64? slot, GetLeaderScheduleConfig? config}) → Future< LeaderSchedule> - Returns the leader schedule for an epoch.
-
getLeaderScheduleRaw(
{u64? slot, GetLeaderScheduleConfig? config}) → Future< JsonRpcSuccessResponse< LeaderSchedule?> > - Returns the leader schedule for an epoch.
-
getMaxRetransmitSlot(
) → Future< u64> - Returns the max slot seen from retransmit stage.
-
getMaxRetransmitSlotRaw(
) → Future< JsonRpcSuccessResponse< u64> > - Returns the max slot seen from retransmit stage.
-
getMaxShredInsertSlot(
) → Future< u64> - Returns the max slot seen from retransmit stage.
-
getMaxShredInsertSlotRaw(
) → Future< JsonRpcSuccessResponse< u64> > - Returns the max slot seen from retransmit stage.
-
getMinimumBalanceForRentExemption(
usize length, {GetMinimumBalanceForRentExemptionConfig? config}) → Future< u64> -
Returns the minimum balance required to make an account of size
length
rent exempt. -
getMinimumBalanceForRentExemptionRaw(
usize length, {GetMinimumBalanceForRentExemptionConfig? config}) → Future< JsonRpcSuccessResponse< u64> > -
Returns the minimum balance required to make an account of size
length
rent exempt. -
getMultipleAccounts(
List< Pubkey> pubkeys, {GetMultipleAccountsConfig? config}) → Future<List< AccountInfo?> > - Returns the account information for a list of Pubkeys.
-
getMultipleAccountsRaw(
List< Pubkey> pubkeys, {GetMultipleAccountsConfig? config}) → Future<JsonRpcContextResponse< List< >AccountInfo?> > - Returns the account information for a list of Pubkeys.
-
getNonceAccount(
Pubkey nonceAccount, {GetNonceAccountConfig? config}) → Future< NonceAccount?> - Returns the account information for a nonce account.
-
getNonceAccountRaw(
Pubkey nonceAccount, {GetNonceAccountConfig? config}) → Future< JsonRpcContextResponse< NonceAccount?> > - Returns the account information for a nonce account.
-
getParsedAccountInfo(
Pubkey pubkey, {GetParsedAccountInfoConfig? config}) → Future< AccountInfo?> -
Returns all information associated with the account of the provided
pubkey
. with AccountEncoding.jsonParsed. -
getProgramAccounts(
Pubkey program, {GetProgramAccountsConfig? config}) → Future< List< ProgramAccount> > - Returns all accounts owned by the provided program Pubkey.
-
getProgramAccountsRaw(
Pubkey program, {GetProgramAccountsConfig? config}) → Future< JsonRpcSuccessResponse< List< >ProgramAccount> > - Returns all accounts owned by the provided program Pubkey.
-
getRecentPerformanceSamples(
{usize? limit}) → Future< List< PerformanceSample> > - Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.
-
getRecentPerformanceSamplesRaw(
{usize? limit}) → Future< JsonRpcSuccessResponse< List< >PerformanceSample> > - Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.
-
getRecentPrioritizationFees(
[List< Pubkey> ? addresses]) → Future<List< PrioritizationFee> > - Returns a list of prioritization fees from recent blocks.
-
getRecentPrioritizationFeesRaw(
[List< Pubkey> ? addresses]) → Future<JsonRpcSuccessResponse< List< >PrioritizationFee> > - Returns a list of prioritization fees from recent blocks.
-
getSignaturesForAddress(
Pubkey address, {GetSignaturesForAddressConfig? config}) → Future< List< ConfirmedSignatureInfo> > -
Returns signatures for confirmed transactions that include the given
address
in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block. -
getSignaturesForAddressRaw(
Pubkey address, {GetSignaturesForAddressConfig? config}) → Future< JsonRpcSuccessResponse< List< >ConfirmedSignatureInfo> > -
Returns signatures for confirmed transactions that include the given
address
in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block. -
getSignatureStatus(
String signature, {GetSignatureStatusesConfig? config}) → Future< SignatureStatus?> -
Returns the status of
signature
. -
getSignatureStatuses(
List< String> signatures, {GetSignatureStatusesConfig? config}) → Future<List< SignatureStatus?> > -
Returns the statuses of
signatures
. -
getSignatureStatusesRaw(
List< String> signatures, {GetSignatureStatusesConfig? config}) → Future<JsonRpcContextResponse< List< >SignatureStatus?> > -
Returns the statuses of
signatures
. -
getSlot(
{GetSlotConfig? config}) → Future< u64> - Returns the slot that has reached the given or default GetSlotConfig.commitment level.
-
getSlotLeader(
{GetSlotLeaderConfig? config}) → Future< String> - Returns the current slot leader.
-
getSlotLeaderRaw(
{GetSlotLeaderConfig? config}) → Future< JsonRpcSuccessResponse< String> > - Returns the current slot leader.
-
getSlotLeaders(
u64 start, {required u64 limit}) → Future< List< String> > - Returns the slot leaders for a given slot range.
-
getSlotLeadersRaw(
u64 start, {required u64 limit}) → Future< JsonRpcSuccessResponse< List< >String> > - Returns the slot leaders for a given slot range.
-
getSlotRaw(
{GetSlotConfig? config}) → Future< JsonRpcSuccessResponse< u64> > - Returns the slot that has reached the given or default GetSlotConfig.commitment level.
-
getStakeActivation(
Pubkey account, {GetStakeActivationConfig? config}) → Future< StakeActivation> - Returns epoch activation information for a stake account.
-
getStakeActivationRaw(
Pubkey account, {GetStakeActivationConfig? config}) → Future< JsonRpcSuccessResponse< StakeActivation> > - Returns epoch activation information for a stake account.
-
getStakeMinimumDelegation(
{GetStakeMinimumDelegationConfig? config}) → Future< u64> - Returns the stake minimum delegation in lamports.
-
getStakeMinimumDelegationRaw(
{GetStakeMinimumDelegationConfig? config}) → Future< JsonRpcContextResponse< u64> > - Returns the stake minimum delegation in lamports.
-
getSupply(
{GetSupplyConfig? config}) → Future< Supply> - Returns information about the current supply.
-
getSupplyRaw(
{GetSupplyConfig? config}) → Future< JsonRpcContextResponse< Supply> > - Returns information about the current supply.
-
getTokenAccountBalance(
Pubkey account, {GetTokenAccountBalanceConfig? config}) → Future< TokenAmount> -
Returns the token balance of an SPL Token
account
. -
getTokenAccountBalanceRaw(
Pubkey account, {GetTokenAccountBalanceConfig? config}) → Future< JsonRpcContextResponse< TokenAmount> > -
Returns the token balance of an SPL Token
account
. -
getTokenAccountsByDelegate(
Pubkey delegate, {required TokenAccountsFilter filter, GetTokenAccountsByDelegateConfig? config}) → Future< List< TokenAccount> > -
Returns all SPL Token accounts approved by
delegate
. -
getTokenAccountsByDelegateRaw(
Pubkey delegate, {required TokenAccountsFilter filter, GetTokenAccountsByDelegateConfig? config}) → Future< JsonRpcContextResponse< List< >TokenAccount> > -
Returns all SPL Token accounts approved by
delegate
. -
getTokenAccountsByOwner(
Pubkey account, {required TokenAccountsFilter filter, GetTokenAccountsByOwnerConfig? config}) → Future< List< TokenAccount> > -
Returns the token owner of an SPL Token
account
. -
getTokenAccountsByOwnerRaw(
Pubkey account, {required TokenAccountsFilter filter, GetTokenAccountsByOwnerConfig? config}) → Future< JsonRpcContextResponse< List< >TokenAccount> > -
Returns the token owner of an SPL Token
account
. -
getTokenLargestAccounts(
Pubkey mint, {GetTokenLargestAccountsConfig? config}) → Future< List< TokenAmount> > - Returns the 20 largest accounts of a particular SPL Token type.
-
getTokenLargestAccountsRaw(
Pubkey mint, {GetTokenLargestAccountsConfig? config}) → Future< JsonRpcContextResponse< List< >TokenAmount> > - Returns the 20 largest accounts of a particular SPL Token type.
-
getTokenSupply(
Pubkey mint, {GetTokenSupplyConfig? config}) → Future< TokenAmount> - Returns the total supply of an SPL Token type.
-
getTokenSupplyRaw(
Pubkey mint, {GetTokenSupplyConfig? config}) → Future< JsonRpcContextResponse< TokenAmount> > - Returns the total supply of an SPL Token type.
-
getTransaction(
String signature, {GetTransactionConfig? config}) → Future< TransactionInfo< Object> ?> - Returns transaction details for a confirmed transaction signature (base-58).
-
getTransactionCount(
{GetTransactionCountConfig? config}) → Future< u64> - Returns the current Transaction count from the ledger.
-
getTransactionCountRaw(
{GetTransactionCountConfig? config}) → Future< JsonRpcSuccessResponse< u64> > - Returns the current Transaction count from the ledger.
-
getTransactionRaw(
String signature, {GetTransactionConfig? config}) → Future< JsonRpcSuccessResponse< TransactionInfo< >Object> ?> - Returns transaction details for a confirmed transaction signature (base-58).
-
getVersion(
) → Future< Version> - Returns the current solana versions running on the node.
-
getVersionRaw(
) → Future< JsonRpcSuccessResponse< Version> > - Returns the current solana versions running on the node.
-
getVoteAccounts(
{GetVoteAccountsConfig? config}) → Future< VoteAccountStatus> - Returns the account info and associated stake for all the voting accounts in the current bank.
-
getVoteAccountsRaw(
{GetVoteAccountsConfig? config}) → Future< JsonRpcSuccessResponse< VoteAccountStatus> > - Returns the account info and associated stake for all the voting accounts in the current bank.
-
isBlockhashValid(
String blockhash, {IsBlockhashValidConfig? config}) → Future< bool> -
Returns whether a
blockhash
(base-58) is still valid or not. -
isBlockhashValidRaw(
String blockhash, {IsBlockhashValidConfig? config}) → Future< JsonRpcContextResponse< bool> > -
Returns whether a
blockhash
(base-58) is still valid or not. -
minimumLedgerSlot(
) → Future< u64> - Returns the lowest slot that the node has information about in its ledger. This value may increase over time if the node is configured to purge older ledger data.
-
minimumLedgerSlotRaw(
) → Future< JsonRpcSuccessResponse< u64> > - Returns the lowest slot that the node has information about in its ledger. This value may increase over time if the node is configured to purge older ledger data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAirdrop(
Pubkey pubkey, u64 lamports, {RequestAirdropConfig? config}) → Future< String> -
Requests an airdrop of
lamports
topubkey
. -
requestAirdropRaw(
Pubkey pubkey, u64 lamports, {RequestAirdropConfig? config}) → Future< JsonRpcSuccessResponse< String> > -
Requests an airdrop of
lamports
topubkey
. -
send<
S, T> (JsonRpcMethod< S, T> method) → Future<JsonRpcSuccessResponse< T> > -
Makes a JSON RPC HTTP
method
call. -
sendAll<
S, T> (JsonRpcMethodBuilder< S, T> builder, {bool? eagerError}) → Future<List< JsonRpcResponse< >T> > - Makes a bulk JSON RPC HTTP method call.
-
sendSignedTransaction(
String signedTransaction, {SendTransactionConfig? config}) → Future< TransactionSignature> - Sends a signed Transaction to the cluster for processing.
-
sendSignedTransactionRaw(
String signedTransaction, {SendTransactionConfig? config}) → Future< JsonRpcSuccessResponse< TransactionSignature> > - Sends a signed Transaction to the cluster for processing.
-
sendSignedTransactions(
List< String> signedTransactions, {SendTransactionConfig? config, bool? eagerError}) → Future<List< TransactionSignature?> > -
Sends the signed Transactions to the cluster for processing (default
base-64
encoding). -
sendSignedTransactionsRaw(
List< String> signedTransactions, {SendTransactionConfig? config, bool? eagerError}) → Future<List< JsonRpcResponse< >TransactionSignature?> > -
Sends the signed Transactions to the cluster for processing (default
base-64
encoding). -
sendTransaction(
Transaction transaction, {SendTransactionConfig? config}) → Future< TransactionSignature> - Send a Transaction to the cluster for processing.
-
sendTransactionRaw(
Transaction transaction, {SendTransactionConfig? config}) → Future< JsonRpcSuccessResponse< TransactionSignature> > - Send a Transaction to the cluster for processing.
-
simulateTransaction(
Transaction transaction, {bool includeAccounts = false, Commitment? commitment}) → Future< TransactionStatus> - Simulates sending a Transaction.
-
simulateTransactionRaw(
Transaction transaction, {bool includeAccounts = false, Commitment? commitment}) → Future< JsonRpcContextResponse< TransactionStatus> > - Simulates sending a Transaction.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited