DefaultStellarQuickClient class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
horizonProvider
→ IProvider<IServiceProvider<BaseServiceRequestParams, BaseGRPCServiceRequestParams>, StellarRequestDetails>
-
Horizon provider: accounts, assets, ledgers, transactions, fee stats,
submission (sync).
final
-
rpcProvider
→ IProvider<IServiceProvider<BaseServiceRequestParams, BaseGRPCServiceRequestParams>, StellarRequestDetails>
-
Stellar RPC provider: network, simulation, submission (async), ledger
entries, events, transaction polling.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
assembleTransaction({required String unsignedEnvelopeBase64, StellarRpcSimulateTransactionResult? simulation, })
→ Future<StellarAssembledTransaction>
-
Applies simulation output to an unsigned V1
unsignedEnvelopeBase64:
recorded auths, Soroban footprint and the resource fee.
inherited
-
buildClassicTransaction({required StellarAddress source, required List<Operation<OperationBody>> operations, StellarMemo? memo, String? networkPassphrase, int feePerOperation = baseFeePerOperation})
→ Future<StellarClassicTransaction>
-
Builds an unsigned classic transaction for
source (sequence + 1,
feePerOperation * operations.length). Resolves the network id from
networkPassphrase or RPC getNetwork.
inherited
-
buildRestoreTransaction({required StellarAddress source, required StellarRpcSimulateTransactionResultRestorePreamble preamble, BigInt? seqNum, int? fee})
→ Future<String>
-
Builds an unsigned restore-footprint transaction from a simulation
preamble. Sign, submit and confirm it before the assembled call.
inherited
-
feeStats()
→ Future<HorizonFeeStats>
-
Horizon fee stats (wallet
feeState parity).
inherited
-
getAccount(StellarAddress address)
→ Future<HorizonAccountEmbeddedRecordsItem?>
-
Account record of
address, or null when Horizon answers 404
(wallet parity).
inherited
-
getAccountBalances(StellarAddress address)
→ Future<List<HorizonAccountEmbeddedRecordsItemBalancesItem>>
-
Base-native balances of
address (empty when the account is missing).
inherited
-
getAssetBalance({required StellarAddress account, required String assetCode, required StellarAddress issuer})
→ Future<BigInt>
-
Balance of the
assetCode/issuer trustline in stroops (zero when
the account or line is missing).
inherited
-
getAssets({String? assetCode, String? assetIssuer, int? cursor, HorizonOrder? order, int? limit})
→ Future<HorizonResponseListAllAssets>
-
Asset directory lookup (metadata discovery for the wallet token flow).
inherited
-
getBaseReserve()
→ Future<int>
-
Base reserve in stroops from the latest ledger (wallet parity).
inherited
-
getLatestLedger()
→ Future<StellarRpcGetLatestLedgerResult>
-
Latest ledger known to RPC.
inherited
-
getLedgerEntries(List<String> keys)
→ Future<StellarRpcGetLedgerEntriesResult>
-
Live ledger entries by key (accounts, trustlines, offers, contract
state/code).
inherited
-
getNativeBalance(StellarAddress address)
→ Future<BigInt>
-
Native (XLM) balance of
address in stroops (zero when missing).
inherited
-
getNetwork()
→ Future<StellarRpcGetNetworkResult>
-
RPC network descriptor (passphrase, protocol version, faucet URL).
inherited
-
latestLedgerSequence()
→ Future<int>
-
Sequence of the latest ledger known to RPC.
inherited
-
ledgerKeyForAccount(StellarAddress address)
→ String
-
Base64
LedgerKey for an account entry.
inherited
-
ledgerKeyForClaimableBalance(ClaimableBalanceId balanceId)
→ String
-
Base64
LedgerKey for a claimable balance entry.
inherited
-
ledgerKeyForContractCode(List<int> wasmHash)
→ String
-
Base64
LedgerKey for a contract code entry.
inherited
-
ledgerKeyForContractData({required ScAddress contract, required ScVal key, ContractDataDurability durability = ContractDataDurability.persistent})
→ String
-
Base64
LedgerKey for a contract data entry.
inherited
-
ledgerKeyForData({required StellarAddress account, required String dataName})
→ String
-
Base64
LedgerKey for an account data entry.
inherited
-
ledgerKeyForLiquidityPool(List<int> liquidityPoolId)
→ String
-
Base64
LedgerKey for a liquidity pool entry.
inherited
-
ledgerKeyForOffer({required StellarAddress seller, required BigInt offerId})
→ String
-
Base64
LedgerKey for an offer entry.
inherited
-
ledgerKeyForTrustline({required StellarAddress account, required StellarAsset asset})
→ String
-
Base64
LedgerKey for a trustline entry.
inherited
-
nextSequence(StellarAddress address)
→ Future<BigInt>
-
Next sequence number for
address (sequence + 1).
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
passphrase()
→ Future<String>
-
Network passphrase from RPC (wallet
passphrase parity).
inherited
-
pollTransaction(String hash, {Duration timeout = const Duration(seconds: 60), Duration interval = const Duration(seconds: 2)})
→ Future<StellarRpcGetTransactionResult>
-
Polls
getTransaction until hash reaches SUCCESS or FAILED.
inherited
-
rpcTransaction(String hash)
→ Future<StellarRpcGetTransactionResult>
-
Polls an RPC-submitted transaction by hash.
inherited
-
sendTransaction(String envelopeXdr)
→ Future<StellarRpcSendTransactionResult>
-
Submits
envelopeXdr via RPC (async: validate + enqueue, then poll
rpcTransaction).
inherited
-
signEnvelope({required String envelopeBase64, required StellarPrivateKey signer, String? networkPassphrase})
→ Future<String>
-
Signs an unsigned
envelopeBase64 with signer, returning the
signed envelope (base64). Resolves the network id from getNetwork
unless networkPassphrase is given.
inherited
-
simulateTransaction({required String envelopeXdr, StellarRpcSimulateTransactionParamsResourceConfig? resourceConfig, StellarRpcSimulateTransactionParamsAuthMode? authMode})
→ Future<StellarRpcSimulateTransactionResult>
-
Simulates
envelopeXdr without submitting (Soroban footprint, auth,
resource fee).
inherited
-
submitChecked(String envelopeXdr)
→ Future<String>
-
Submits
envelopeXdr via Horizon, returning the hash. Throws when
Horizon reports failure or answers without a hash.
inherited
-
submitTransaction(String envelopeXdr)
→ Future<StellarSubmitResult>
-
Submits
envelopeXdr via Horizon (sync; wallet submitTx parity).
inherited
-
suggestedInclusionFee({bool soroban = false})
→ Future<int>
-
Suggested inclusion fee in stroops (RPC fee stats, p95, with fallbacks).
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
trackHorizonTransaction({required String transactionId, Duration timeout = const Duration(minutes: 2), Duration periodicTimeOut = const Duration(seconds: 3)})
→ Future<void>
-
Polls Horizon until
transactionId confirms. Completes on
successful: true, throws on successful: false or timeout.
Transport failures are ignored between polls.
inherited
-
transactionStatus(String txHash)
→ Future<StellarTxStatus>
-
Status of a transaction by hash: failed when Horizon reports
successful: false, block otherwise (wallet parity).
inherited
-
validateHorizon()
→ Future<bool>
-
Horizon liveness read (the generated spec has no root
/ or
/health; wallet validateHorizon compared the root passphrase —
compare passphrases via validateRpcNetwork instead).
inherited
-
validateRpcNetwork({required String expectedPassphrase})
→ Future<bool>
-
True when the RPC node serves
expectedPassphrase.
inherited