AptosClient class

Mixed-in types

Constructors

AptosClient(String endpoint, {bool enableDebugLog = false})

Properties

enableDebugLog bool
final
endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accountExist(String address) Future<bool>
checkBasicNodeHealth() Future<String>
encodeSubmission(TransactionEncodeSubmissionRequest transaction) Future<String>
estimateGas(TransactionRequest transaction) Future<(BigInt, BigInt)>
estimateGasAmount(TransactionRequest transaction) Future<BigInt>
estimateGasPrice() Future<int>
override
estimateGasUnitPrice(TransactionRequest transaction) Future<BigInt>
generateRawTransaction(String accountFrom, TransactionPayload payload, {BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future<RawTransaction>
generateSignSubmitTransaction(AptosAccount sender, TransactionPayload payload, {BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future<String>
generateTransaction(AptosAccount sender, EntryFunctionPayload payload, {String? sequenceNumber, String? gasUnitPrice, String? maxGasAmount, String? expirationTimestampSecs}) Future<RawTransaction>
getAccount(String address) Future<AccountData>
Accounts ///
override
getAccountModule(String address, String moduleName) Future
getAccountModules(String address) Future
override
getAccountResource(String address, String resourceType) Future
getAccountResources(String address) Future
getAccountTransactions(String address, {String? start, int? limit}) Future
getBlocksByHeight(int blockHeight, [bool withTransactioins = false]) Future
Blocks ///
getBlocksByVersion(int version, [bool withTransactioins = false]) Future
getChainId() Future<int>
override
getEventsByCreationNumber(String address, int creationNumber, {String? start, int? limit}) Future
Events ///
getEventsByEventHandle(String address, String eventHandle, String fieldName, {String? start, int? limit}) Future
getLedgerInfo() Future
getTransactionByHash(String txHash) Future
getTransactionByVersion(String txVersion) Future
getTransactions({String? start, int? limit}) Future
Transactions ///
lookupOriginalAddress(String addressOrAuthKey) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryTableItem(String tableHandle, TableItem tableItem) Future
Table ///
rotateAuthKeyEd25519(AptosAccount forAccount, Uint8List toPrivateKeyBytes) Future
Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for the account. WARNING: You must create a new instance of AptosAccount after using this function.
showOpenAPIExplorer() Future
General ///
signTransaction(AptosAccount accountFrom, RawTransaction rawTransaction) Uint8List
Converts a transaction request produced by generateTransaction into a properly signed transaction, which can then be submitted to the blockchain.
simulateRawTransaction(dynamic accountOrPubkey, RawTransaction rawTransaction, {bool estimateGasUnitPrice = false, bool estimateMaxGasAmount = false, bool estimatePrioritizedGasUnitPrice = false}) Future
accountOrPubkey type is AptosAccount | Ed25519PublicKey | MultiEd25519PublicKey
simulateTransaction(TransactionRequest transaction, {bool estimateGasUnitPrice = false, bool estimateMaxGasAmount = false, bool estimatePrioritizedGasUnitPrice = false}) Future
submitBatchTransactions(List<TransactionRequest> transactions) Future
submitBCSSimulate(Uint8List signedTxn, {bool estimateGasUnitPrice = false, bool estimateMaxGasAmount = false, bool estimatePrioritizedGasUnitPrice = false}) Future
submitSignedBCSTransaction(Uint8List signedTxn) Future
submitTransaction(TransactionRequest transaction) Future
toString() String
A string representation of this object.
inherited
transactionPending(String txnHash) Future<bool>
view(String function, List typeArguments, List arguments, {int? ledgerVersion}) Future
View ///
waitForTransaction(String txnHash, {int? timeoutSecs, bool? checkSuccess}) Future<void>
waitForTransactionWithResult(String txnHash, {int? timeoutSecs, bool? checkSuccess}) Future

Operators

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

Constants

APTOS_COIN → const String