SorobanServer class Null safety

This class helps you to connect to a local or remote soroban rpc server and send requests to the server. It parses the results and provides corresponding response objects.

Constructors

SorobanServer(String _serverUrl)
Constructor. Provide the url of the soroban rpc server to initialize this class.

Properties

acknowledgeExperimental bool
read / write
enableLogging bool
read / write
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getAccount(String accountId) Future<GetAccountResponse>
Fetch a minimal set of current info about a stellar account.
getHealth() Future<GetHealthResponse>
General node health check request.
getLedgerEntry(String base64EncodedKey) Future<GetLedgerEntryResponse>
For reading the current value of ledger entries directly. Allows you to directly inspect the current state of a contract, a contract’s code, or any other ledger entry. This is a backup way to access your contract data which may not be available via events or simulateTransaction. To fetch contract wasm byte-code, use the ContractCode ledger entry key.
getTransactionStatus(String transactionHash) Future<GetTransactionStatusResponse>
Clients will poll this to tell when the transaction has been completed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
printExperimentalFlagErr() → dynamic
sendTransaction(Transaction transaction) Future<SendTransactionResponse>
Submit a real transaction to the stellar network. This is the only way to make changes “on-chain”. Unlike Horizon, this does not wait for transaction completion. It simply validates and enqueues the transaction. Clients should call getTransactionStatus to learn about transaction success/failure.
simulateTransaction(Transaction transaction) Future<SimulateTransactionResponse>
Submit a trial contract invocation to get back return values, expected ledger footprint, and expected costs.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

TRANSACTION_STATUS_ERROR → const String
"error"
TRANSACTION_STATUS_PENDING → const String
"pending"
TRANSACTION_STATUS_SUCCESS → const String
"success"