Transaction
Transaction API namespace. This class provides functionality to reading and writing transaction information.
Properties
Functions
Link copied to clipboard
Gives an estimate of the gas unit price required to get a transaction on chain in a reasonable amount of time. For more information {@link https://api.mainnet.aptoslabs.com/v1/spec#/operations/estimate_gas_price}
Link copied to clipboard
open suspend override fun getTransactionByHash(transactionHash: String): Option<TransactionResponse>
Queries on-chain transaction by transaction hash. This function will return pending transactions.
Link copied to clipboard
Queries on-chain transaction by version. This function will not return pending transactions.
Link copied to clipboard
Defines if specified transaction is currently in pending state
Link copied to clipboard
open suspend override fun publishPackageTransaction(account: AccountAddressInput, metadataBytes: HexInput, moduleBytecode: List<HexInput>, options: InputGenerateTransactionOptions): SimpleTransaction
Generates a transaction to publish a move package to chain.
Link copied to clipboard
Sign a transaction that can later be submitted to chain
Link copied to clipboard
open suspend override fun signAndSubmitTransaction(signer: Account, transaction: AnyRawTransaction): Option<PendingTransactionResponse>
Sign and submit a single signer transaction to chain
Link copied to clipboard
open suspend override fun waitForTransaction(transactionHash: HexInput, options: WaitForTransactionOptions): Option<TransactionResponse>