Connection class

Connection

Creates a connection to invoke JSON RPC methods. HTTP method calls are sent to the httpCluster and Websocket method calls are sent to the websocketCluster.

The commitment level will be set as the default value for all methods that accept a commitment parameter. Use a method call's config parameter to override the default value.

final connection = Connection(Cluster.mainnet);

final accountInfo = await connection.getAccountInfo(
  Pubkey.fromBase58('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
  config: GetAccountInfoConfig(
    commitment: Commitment.finalized, // override default.
  ),
);

print('Account Info ${accountInfo?.toJson()}');
Mixed-in types

Constructors

Connection.new(Cluster httpCluster, {Cluster? websocketCluster, Commitment? commitment = Commitment.confirmed})
Creates a connection to invoke JSON RPC methods.

Properties

commitment Commitment?
The default commitment level applied to all methods that query bank state.
final
debugNotifiers Map<SubscriptionId, WebsocketNotifier>
Returns a copy of the notification dispatchers - debugging only.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient JsonRpcHttpClient
HTTP client (persistent connection).
latefinaloverride-getter
httpClientConfig JsonRpcClientConfig?
HTTP client request configurations.
no setterinherited
httpCluster Cluster
The HTTP cluster.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
websocketClient JsonRpcWebsocketClient
Websocket client.
latefinaloverride-getter
websocketClientConfig JsonRpcClientConfig?
Websocket client request configurations.
no setterinherited
websocketCluster Cluster
The Websocket cluster.
final

Methods

accountSubscribe(Pubkey pubkey, {WebsocketOnDataHandler<AccountInfo>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = false, Duration? timeLimit, AccountSubscribeConfig? config}) Future<WebsocketSubscription<AccountInfo>>
Subscribe to an account to receive notifications when the lamports or data for a given account pubkey changes.
inherited
accountUnsubscribe(WebsocketSubscription<AccountInfo> subscription) Future<bool>
Unsubscribes from account change notifications.
inherited
confirmSignatureStatus(TransactionSignature signature, {GetSignatureStatusesConfig? config, Commitment? commitment, int? minContext}) Future<SignatureNotification>
Confirms a transaction by fetching the status of signature and comparing its confirmationStatus to commitment.
confirmTransaction(TransactionSignature signature, {ConfirmTransactionConfig? config, BlockhashWithExpiryBlockHeight? blockhash, NonceWithMinContextSlot? nonce}) Future<SignatureNotification>
Confirms a transaction by subscribing to receive a signature notification when the transaction has been confirmed.
debugClose() → void
Closes all notification dispatchers - debugging only.
inherited
dispose() → void
Disposes of all the acquired resources.
getAccountInfo(Pubkey pubkey, {GetAccountInfoConfig? config}) Future<AccountInfo?>
Returns all information associated with the account of the provided pubkey.
inherited
getAccountInfoRaw(Pubkey pubkey, {GetAccountInfoConfig? config}) Future<JsonRpcContextResponse<AccountInfo?>>
Returns all information associated with the account of the provided pubkey.
inherited
getAddressLookupTable(Pubkey pubkey, {GetAddressLookupTableConfig? config}) Future<AddressLookupTableAccount?>
Returns the address lookup table of the provided pubkey.
getBalance(Pubkey pubkey, {GetBalanceConfig? config}) Future<u64>
Returns the balance of the account of provided pubkey
inherited
getBalanceRaw(Pubkey pubkey, {GetBalanceConfig? config}) Future<JsonRpcContextResponse<u64>>
Returns the balance of the account of provided pubkey
inherited
getBlock(u64 slot, {GetBlockConfig? config}) Future<Block?>
Returns identity and transaction information about a confirmed block at slot in the ledger.
inherited
getBlockCommitment(u64 slot) Future<BlockCommitment>
Returns the commitment for a particular block (slot).
inherited
getBlockCommitmentRaw(u64 slot) Future<JsonRpcSuccessResponse<BlockCommitment>>
Returns the commitment for a particular block (slot).
inherited
getBlockHeight({GetBlockHeightConfig? config}) Future<u64>
Returns the current block height of the node.
inherited
getBlockHeightRaw({GetBlockHeightConfig? config}) Future<JsonRpcSuccessResponse<u64>>
Returns the current block height of the node.
inherited
getBlockProduction({GetBlockProductionConfig? config}) Future<BlockProduction>
Returns the recent block production information from the current or previous epoch.
inherited
getBlockProductionRaw({GetBlockProductionConfig? config}) Future<JsonRpcContextResponse<BlockProduction>>
Returns the recent block production information from the current or previous epoch.
inherited
getBlockRaw(u64 slot, {GetBlockConfig? config}) Future<JsonRpcSuccessResponse<Block?>>
Returns identity and transaction information about a confirmed block at slot in the ledger.
inherited
getBlocks(u64 startSlot, {u64? endSlot, GetBlocksConfig? config}) Future<List<u64>>
Returns a list of confirmed blocks between two slots.
inherited
getBlocksRaw(u64 startSlot, {u64? endSlot, GetBlocksConfig? config}) Future<JsonRpcSuccessResponse<List<u64>>>
Returns a list of confirmed blocks between two slots.
inherited
getBlocksWithLimit(u64 slot, {required u64 limit, GetBlocksWithLimitConfig? config}) Future<List<u64>>
Returns a list of limit confirmed blocks starting at the given slot.
inherited
getBlocksWithLimitRaw(u64 slot, {required u64 limit, GetBlocksWithLimitConfig? config}) Future<JsonRpcSuccessResponse<List<u64>>>
Returns a list of limit confirmed blocks starting at the given slot.
inherited
getBlockTime(u64 slot) Future<i64?>
Returns the estimated production time of a block.
inherited
getBlockTimeRaw(u64 slot) Future<JsonRpcSuccessResponse<i64?>>
Returns the estimated production time of a block.
inherited
getClusterNodes() Future<List<ClusterNode>>
Returns information about all the nodes participating in the cluster.
inherited
getClusterNodesRaw() Future<JsonRpcSuccessResponse<List<ClusterNode>>>
Returns information about all the nodes participating in the cluster.
inherited
getEpochInfo({GetEpochInfoConfig? config}) Future<EpochInfo>
Returns information about the current epoch.
inherited
getEpochInfoRaw({GetEpochInfoConfig? config}) Future<JsonRpcSuccessResponse<EpochInfo>>
Returns information about the current epoch.
inherited
getEpochSchedule() Future<EpochSchedule>
Returns the epoch schedule information from the cluster's genesis config.
inherited
getEpochScheduleRaw() Future<JsonRpcSuccessResponse<EpochSchedule>>
Returns the epoch schedule information from the cluster's genesis config.
inherited
getFeeForEncodedMessage(String message, {GetFeeForMessageConfig? config}) Future<u64>
Returns the network fee that will be charged to send message.
inherited
getFeeForEncodedMessageRaw(String message, {GetFeeForMessageConfig? config}) Future<JsonRpcContextResponse<u64?>>
Returns the network fee that will be charged to send message.
inherited
getFeeForMessage(Message message, {GetFeeForMessageConfig? config}) Future<u64>
Returns the network fee that will be charged to send message.
inherited
getFeeForMessageRaw(Message message, {GetFeeForMessageConfig? config}) Future<JsonRpcContextResponse<u64?>>
Returns the network fee that will be charged to send message.
inherited
getFirstAvailableBlock() Future<u64>
Returns the slot of the lowest confirmed block that has not been purged from the ledger.
inherited
getFirstAvailableBlockRaw() Future<JsonRpcSuccessResponse<u64>>
Returns the slot of the lowest confirmed block that has not been purged from the ledger.
inherited
getGenesisHash() Future<String>
Returns the genesis hash.
inherited
getGenesisHashRaw() Future<JsonRpcSuccessResponse<String>>
Returns the genesis hash.
inherited
getHealth() Future<HealthStatus>
Returns the current health of the node.
inherited
getHealthRaw() Future<JsonRpcSuccessResponse<HealthStatus>>
Returns the current health of the node.
inherited
getHighestSnapshotSlot() Future<HighestSnapshotSlot>
Returns the highest slot information that the node has snapshots for.
inherited
getHighestSnapshotSlotRaw() Future<JsonRpcSuccessResponse<HighestSnapshotSlot>>
Returns the highest slot information that the node has snapshots for.
inherited
getIdentity() Future<Identity>
Returns the identity pubkey for the current node.
inherited
getIdentityRaw() Future<JsonRpcSuccessResponse<Identity>>
Returns the identity pubkey for the current node.
inherited
getInflationGovernor({GetInflationGovernorConfig? config}) Future<InflationGovernor>
Returns the current inflation governor.
inherited
getInflationGovernorRaw({GetInflationGovernorConfig? config}) Future<JsonRpcSuccessResponse<InflationGovernor>>
Returns the current inflation governor.
inherited
getInflationRate() Future<InflationRate>
Returns the specific inflation values for the current epoch.
inherited
getInflationRateRaw() Future<JsonRpcSuccessResponse<InflationRate>>
Returns the specific inflation values for the current epoch.
inherited
getInflationReward(Iterable<Pubkey> addresses, {GetInflationRewardConfig? config}) Future<List<InflationReward?>>
Returns the inflation / staking reward for a list of addresses for an epoch.
inherited
getInflationRewardRaw(Iterable<Pubkey> addresses, {GetInflationRewardConfig? config}) Future<JsonRpcSuccessResponse<List<InflationReward?>>>
Returns the inflation / staking reward for a list of addresses for an epoch.
inherited
getLargestAccounts({GetLargestAccountsConfig? config}) Future<List<LargeAccount>>
Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).
inherited
getLargestAccountsRaw({GetLargestAccountsConfig? config}) Future<JsonRpcContextResponse<List<LargeAccount>>>
Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).
inherited
getLatestBlockhash({GetLatestBlockhashConfig? config}) Future<BlockhashWithExpiryBlockHeight>
Returns the latest blockhash.
inherited
getLatestBlockhashRaw({GetLatestBlockhashConfig? config}) Future<JsonRpcContextResponse<BlockhashWithExpiryBlockHeight>>
Returns the latest blockhash.
inherited
getLeaderSchedule({u64? slot, GetLeaderScheduleConfig? config}) Future<LeaderSchedule>
Returns the leader schedule for an epoch.
inherited
getLeaderScheduleRaw({u64? slot, GetLeaderScheduleConfig? config}) Future<JsonRpcSuccessResponse<LeaderSchedule?>>
Returns the leader schedule for an epoch.
inherited
getMaxRetransmitSlot() Future<u64>
Returns the max slot seen from retransmit stage.
inherited
getMaxRetransmitSlotRaw() Future<JsonRpcSuccessResponse<u64>>
Returns the max slot seen from retransmit stage.
inherited
getMaxShredInsertSlot() Future<u64>
Returns the max slot seen from retransmit stage.
inherited
getMaxShredInsertSlotRaw() Future<JsonRpcSuccessResponse<u64>>
Returns the max slot seen from retransmit stage.
inherited
getMetaplexCollection(Pubkey collectionMint, {required int numberOfCreators, AccountEncoding encoding = AccountEncoding.base64, DataSlice? dataSlice, int? minContextSlot}) Future<List<ProgramAccount>>
Returns all token Metadata accounts in collectionMint.
getMinimumBalanceForRentExemption(usize length, {GetMinimumBalanceForRentExemptionConfig? config}) Future<u64>
Returns the minimum balance required to make an account of size length rent exempt.
inherited
getMinimumBalanceForRentExemptionRaw(usize length, {GetMinimumBalanceForRentExemptionConfig? config}) Future<JsonRpcSuccessResponse<u64>>
Returns the minimum balance required to make an account of size length rent exempt.
inherited
getMultipleAccounts(List<Pubkey> pubkeys, {GetMultipleAccountsConfig? config}) Future<List<AccountInfo?>>
Returns the account information for a list of Pubkeys.
inherited
getMultipleAccountsRaw(List<Pubkey> pubkeys, {GetMultipleAccountsConfig? config}) Future<JsonRpcContextResponse<List<AccountInfo?>>>
Returns the account information for a list of Pubkeys.
inherited
getNonceAccount(Pubkey nonceAccount, {GetNonceAccountConfig? config}) Future<NonceAccount?>
Returns the account information for a nonce account.
inherited
getNonceAccountRaw(Pubkey nonceAccount, {GetNonceAccountConfig? config}) Future<JsonRpcContextResponse<NonceAccount?>>
Returns the account information for a nonce account.
inherited
getParsedAccountInfo(Pubkey pubkey, {GetParsedAccountInfoConfig? config}) Future<AccountInfo?>
Returns all information associated with the account of the provided pubkey. with AccountEncoding.jsonParsed.
inherited
getProgramAccounts(Pubkey program, {GetProgramAccountsConfig? config}) Future<List<ProgramAccount>>
Returns all accounts owned by the provided program Pubkey.
inherited
getProgramAccountsRaw(Pubkey program, {GetProgramAccountsConfig? config}) Future<JsonRpcSuccessResponse<List<ProgramAccount>>>
Returns all accounts owned by the provided program Pubkey.
inherited
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.
inherited
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.
inherited
getRecentPrioritizationFees([List<Pubkey>? addresses]) Future<List<PrioritizationFee>>
Returns a list of prioritization fees from recent blocks.
inherited
getRecentPrioritizationFeesRaw([List<Pubkey>? addresses]) Future<JsonRpcSuccessResponse<List<PrioritizationFee>>>
Returns a list of prioritization fees from recent blocks.
inherited
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.
inherited
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.
inherited
getSignatureStatus(String signature, {GetSignatureStatusesConfig? config}) Future<SignatureStatus?>
Returns the status of signature.
inherited
getSignatureStatuses(List<String> signatures, {GetSignatureStatusesConfig? config}) Future<List<SignatureStatus?>>
Returns the statuses of signatures.
inherited
getSignatureStatusesRaw(List<String> signatures, {GetSignatureStatusesConfig? config}) Future<JsonRpcContextResponse<List<SignatureStatus?>>>
Returns the statuses of signatures.
inherited
getSlot({GetSlotConfig? config}) Future<u64>
Returns the slot that has reached the given or default GetSlotConfig.commitment level.
inherited
getSlotLeader({GetSlotLeaderConfig? config}) Future<String>
Returns the current slot leader.
inherited
getSlotLeaderRaw({GetSlotLeaderConfig? config}) Future<JsonRpcSuccessResponse<String>>
Returns the current slot leader.
inherited
getSlotLeaders(u64 start, {required u64 limit}) Future<List<String>>
Returns the slot leaders for a given slot range.
inherited
getSlotLeadersRaw(u64 start, {required u64 limit}) Future<JsonRpcSuccessResponse<List<String>>>
Returns the slot leaders for a given slot range.
inherited
getSlotRaw({GetSlotConfig? config}) Future<JsonRpcSuccessResponse<u64>>
Returns the slot that has reached the given or default GetSlotConfig.commitment level.
inherited
getStakeActivation(Pubkey account, {GetStakeActivationConfig? config}) Future<StakeActivation>
Returns epoch activation information for a stake account.
inherited
getStakeActivationRaw(Pubkey account, {GetStakeActivationConfig? config}) Future<JsonRpcSuccessResponse<StakeActivation>>
Returns epoch activation information for a stake account.
inherited
getStakeMinimumDelegation({GetStakeMinimumDelegationConfig? config}) Future<u64>
Returns the stake minimum delegation in lamports.
inherited
getStakeMinimumDelegationRaw({GetStakeMinimumDelegationConfig? config}) Future<JsonRpcContextResponse<u64>>
Returns the stake minimum delegation in lamports.
inherited
getSupply({GetSupplyConfig? config}) Future<Supply>
Returns information about the current supply.
inherited
getSupplyRaw({GetSupplyConfig? config}) Future<JsonRpcContextResponse<Supply>>
Returns information about the current supply.
inherited
getTokenAccountBalance(Pubkey account, {GetTokenAccountBalanceConfig? config}) Future<TokenAmount>
Returns the token balance of an SPL Token account.
inherited
getTokenAccountBalanceRaw(Pubkey account, {GetTokenAccountBalanceConfig? config}) Future<JsonRpcContextResponse<TokenAmount>>
Returns the token balance of an SPL Token account.
inherited
getTokenAccountsByDelegate(Pubkey delegate, {required TokenAccountsFilter filter, GetTokenAccountsByDelegateConfig? config}) Future<List<TokenAccount>>
Returns all SPL Token accounts approved by delegate.
inherited
getTokenAccountsByDelegateRaw(Pubkey delegate, {required TokenAccountsFilter filter, GetTokenAccountsByDelegateConfig? config}) Future<JsonRpcContextResponse<List<TokenAccount>>>
Returns all SPL Token accounts approved by delegate.
inherited
getTokenAccountsByOwner(Pubkey account, {required TokenAccountsFilter filter, GetTokenAccountsByOwnerConfig? config}) Future<List<TokenAccount>>
Returns the token owner of an SPL Token account.
inherited
getTokenAccountsByOwnerRaw(Pubkey account, {required TokenAccountsFilter filter, GetTokenAccountsByOwnerConfig? config}) Future<JsonRpcContextResponse<List<TokenAccount>>>
Returns the token owner of an SPL Token account.
inherited
getTokenLargestAccounts(Pubkey mint, {GetTokenLargestAccountsConfig? config}) Future<List<TokenAmount>>
Returns the 20 largest accounts of a particular SPL Token type.
inherited
getTokenLargestAccountsRaw(Pubkey mint, {GetTokenLargestAccountsConfig? config}) Future<JsonRpcContextResponse<List<TokenAmount>>>
Returns the 20 largest accounts of a particular SPL Token type.
inherited
getTokenSupply(Pubkey mint, {GetTokenSupplyConfig? config}) Future<TokenAmount>
Returns the total supply of an SPL Token type.
inherited
getTokenSupplyRaw(Pubkey mint, {GetTokenSupplyConfig? config}) Future<JsonRpcContextResponse<TokenAmount>>
Returns the total supply of an SPL Token type.
inherited
getTransaction(String signature, {GetTransactionConfig? config}) Future<TransactionInfo<Object>?>
Returns transaction details for a confirmed transaction signature (base-58).
inherited
getTransactionCount({GetTransactionCountConfig? config}) Future<u64>
Returns the current Transaction count from the ledger.
inherited
getTransactionCountRaw({GetTransactionCountConfig? config}) Future<JsonRpcSuccessResponse<u64>>
Returns the current Transaction count from the ledger.
inherited
getTransactionRaw(String signature, {GetTransactionConfig? config}) Future<JsonRpcSuccessResponse<TransactionInfo<Object>?>>
Returns transaction details for a confirmed transaction signature (base-58).
inherited
getVersion() Future<Version>
Returns the current solana versions running on the node.
inherited
getVersionRaw() Future<JsonRpcSuccessResponse<Version>>
Returns the current solana versions running on the node.
inherited
getVoteAccounts({GetVoteAccountsConfig? config}) Future<VoteAccountStatus>
Returns the account info and associated stake for all the voting accounts in the current bank.
inherited
getVoteAccountsRaw({GetVoteAccountsConfig? config}) Future<JsonRpcSuccessResponse<VoteAccountStatus>>
Returns the account info and associated stake for all the voting accounts in the current bank.
inherited
health() Future<HealthStatus>
Returns the health status of httpCluster.
isBlockhashValid(String blockhash, {IsBlockhashValidConfig? config}) Future<bool>
Returns whether a blockhash (base-58) is still valid or not.
inherited
isBlockhashValidRaw(String blockhash, {IsBlockhashValidConfig? config}) Future<JsonRpcContextResponse<bool>>
Returns whether a blockhash (base-58) is still valid or not.
inherited
logsSubscribe(LogsFilter<Object> filter, {WebsocketOnDataHandler<LogsNotification>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = false, Duration? timeLimit, LogsSubscribeConfig? config}) Future<WebsocketSubscription<LogsNotification>>
Subscribes to transaction logging.
inherited
logsUnsubscribe(WebsocketSubscription<LogsNotification> subscription) Future<bool>
Unsubscribes from transaction logging.
inherited
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.
inherited
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWebsocketConnect() → void
The websocket's connect handler.
inherited
onWebsocketData(dynamic data) → void
The websocket's data handler.
inherited
onWebsocketDisconnect() → void
The websocket's disconnect handler.
inherited
onWebsocketError(Object error, [StackTrace? stackTrace]) → void
The websocket's error handler.
inherited
programSubscribe(Pubkey programId, {WebsocketOnDataHandler<ProgramAccount>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = false, Duration? timeLimit, ProgramSubscribeConfig? config}) Future<WebsocketSubscription<ProgramAccount>>
Subscribes to a program to receive notifications when the lamports or data for an account owned by the given program changes.
inherited
programUnsubscribe(WebsocketSubscription<ProgramAccount> subscription) Future<bool>
Unsubscribes from program-owned account change notifications.
inherited
requestAirdrop(Pubkey pubkey, u64 lamports, {RequestAirdropConfig? config}) Future<String>
Requests an airdrop of lamports to pubkey.
inherited
requestAirdropRaw(Pubkey pubkey, u64 lamports, {RequestAirdropConfig? config}) Future<JsonRpcSuccessResponse<String>>
Requests an airdrop of lamports to pubkey.
inherited
requestAndConfirmAirdrop(Pubkey pubkey, u64 lamports, {CommitmentConfig? config}) Future<TransactionSignature>
Requests an airdrop of lamports to pubkey and wait for transaction confirmation.
send<S, T>(JsonRpcMethod<S, T> method) Future<JsonRpcSuccessResponse<T>>
Makes a JSON RPC HTTP method call.
inherited
sendAll<S, T>(JsonRpcMethodBuilder<S, T> builder, {bool? eagerError}) Future<List<JsonRpcResponse<T>>>
Makes a bulk JSON RPC HTTP method call.
inherited
sendAndConfirmTransaction(Transaction transaction, {SendAndConfirmTransactionConfig? config}) Future<TransactionSignature>
Sign, send and confirm a transaction.
sendSignedTransaction(String signedTransaction, {SendTransactionConfig? config}) Future<TransactionSignature>
Sends a signed Transaction to the cluster for processing.
inherited
sendSignedTransactionRaw(String signedTransaction, {SendTransactionConfig? config}) Future<JsonRpcSuccessResponse<TransactionSignature>>
Sends a signed Transaction to the cluster for processing.
inherited
sendSignedTransactions(List<String> signedTransactions, {SendTransactionConfig? config, bool? eagerError}) Future<List<TransactionSignature?>>
Sends the signed Transactions to the cluster for processing (default base-64 encoding).
inherited
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).
inherited
sendTransaction(Transaction transaction, {SendTransactionConfig? config}) Future<TransactionSignature>
Send a Transaction to the cluster for processing.
inherited
sendTransactionRaw(Transaction transaction, {SendTransactionConfig? config}) Future<JsonRpcSuccessResponse<TransactionSignature>>
Send a Transaction to the cluster for processing.
inherited
signatureSubscribe(String signature, {WebsocketOnDataHandler<SignatureNotification>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = true, Duration? timeLimit, SignatureSubscribeConfig? config}) Future<WebsocketSubscription<SignatureNotification>>
Subscribes to a transaction signature to receive a notification when the given transaction signature is committed.
inherited
signatureUnsubscribe(WebsocketSubscription<SignatureNotification> subscription) Future<bool>
Unsubscribes from signature confirmation notifications.
inherited
simulateTransaction(Transaction transaction, {bool includeAccounts = false, Commitment? commitment}) Future<TransactionStatus>
Simulates sending a Transaction.
inherited
simulateTransactionRaw(Transaction transaction, {bool includeAccounts = false, Commitment? commitment}) Future<JsonRpcContextResponse<TransactionStatus>>
Simulates sending a Transaction.
inherited
slotSubscribe(String signature, {WebsocketOnDataHandler<SlotNotification>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = false, Duration? timeLimit}) Future<WebsocketSubscription<SlotNotification>>
Subscribes to receive notification anytime a slot is processed by the validator.
inherited
slotUnsubscribe(WebsocketSubscription<SlotNotification> subscription) Future<bool>
Unsubscribes from slot notifications.
inherited
subscribe<T>(JsonRpcSubscribeMethod method, JsonRpcNotificationDecoder<T> decoder, {WebsocketOnDataHandler<T>? onData, WebsocketOnErrorHandler? onError, WebsocketOnDoneHandler? onDone, bool cancelOnError = false, bool autoUnsubscribes = false, Duration? timeLimit}) Future<WebsocketSubscription<T>>
Subscribes to the JSON RPC websocket notification of method.
inherited
toString() String
A string representation of this object.
inherited
unsubscribe(WebsocketSubscription subscription) Future<bool>
Cancels a websocket notification subscription and unsubscribes from the JSON RPC method if the subscription contains no more listeners.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited