Transaction
A class for reading and writing Aptos transactions.
Properties
Functions
Link copied to clipboard
open suspend override fun buildSimpleTransaction(sender: AccountAddressInput, options: InputGenerateTransactionOptions?, withFeePayer: Boolean, builder: InputEntryFunctionDataBuilder.() -> Unit): SimpleTransaction
Link copied to clipboard
open suspend override fun execute(signer: Account, options: InputGenerateTransactionOptions?, withFeePayer: Boolean, builder: InputEntryFunctionDataBuilder.() -> Unit): Result<PendingTransactionResponse, Exception>
Link copied to clipboard
Retrieves a gas price estimation from the network.
Link copied to clipboard
open suspend override fun getTransactionByHash(transactionHash: String): Result<TransactionResponse, AptosSdkError>
Retrieves a transaction by its hash.
Link copied to clipboard
open suspend override fun getTransactionByVersion(ledgerVersion: Long): Result<TransactionResponse, AptosSdkError>
Retrieves a committed on-chain transaction by its version number.
Link copied to clipboard
open suspend override fun getTransactions(options: PaginationArgs?): Result<List<TransactionResponse>, AptosSdkError>
Queries for a list of committed on-chain transactions.
Link copied to clipboard
Checks if a transaction is currently in a pending state.
Link copied to clipboard
open suspend override fun publishPackageTransaction(account: AccountAddressInput, metadataBytes: HexInput, moduleBytecode: List<HexInput>, options: InputGenerateTransactionOptions): SimpleTransaction
Builds a transaction to publish a new Move package.
Link copied to clipboard
Signs a raw transaction with a signer's account.
Link copied to clipboard
open suspend override fun signAndSubmitAsFeePayer(feePayer: Account, senderAuthenticator: AccountAuthenticator, transaction: AnyRawTransaction): Result<PendingTransactionResponse, Exception>
Signs a transaction as the fee payer and submits it to the network.
Link copied to clipboard
open suspend override fun signAndSubmitTransaction(signer: Account, transaction: AnyRawTransaction): Result<PendingTransactionResponse, Exception>
Signs and submits a single-signer transaction in one step.
Link copied to clipboard
open override fun signAsFeePayer(signer: Account, transaction: AnyRawTransaction): AccountAuthenticator
Signs a raw transaction as the fee payer.
Link copied to clipboard
open suspend override fun waitForTransaction(transactionHash: HexInput, options: WaitForTransactionOptions): Result<TransactionResponse, Exception>
Waits for a transaction to be successfully processed and included in the blockchain.