Transaction
Properties
Functions
Link copied to clipboard
abstract suspend fun buildSimpleTransaction(sender: AccountAddressInput, options: InputGenerateTransactionOptions? = null, withFeePayer: Boolean = false, builder: InputEntryFunctionDataBuilder.() -> Unit): SimpleTransaction
Link copied to clipboard
abstract suspend fun execute(signer: Account, options: InputGenerateTransactionOptions? = null, withFeePayer: Boolean = false, builder: InputEntryFunctionDataBuilder.() -> Unit): Result<PendingTransactionResponse, Exception>
Link copied to clipboard
Retrieves a gas price estimation from the network.
Link copied to clipboard
abstract suspend fun getTransactionByHash(transactionHash: String): Result<TransactionResponse, AptosSdkError>
Retrieves a transaction by its hash.
Link copied to clipboard
abstract suspend fun getTransactionByVersion(ledgerVersion: Long): Result<TransactionResponse, AptosSdkError>
Retrieves a committed on-chain transaction by its version number.
Link copied to clipboard
abstract suspend fun getTransactions(options: PaginationArgs? = null): 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
abstract suspend fun publishPackageTransaction(account: AccountAddressInput, metadataBytes: HexInput, moduleBytecode: List<HexInput>, options: InputGenerateTransactionOptions = 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
abstract suspend 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
abstract suspend fun signAndSubmitTransaction(signer: Account, transaction: AnyRawTransaction): Result<PendingTransactionResponse, Exception>
Signs and submits a single-signer transaction in one step.
Link copied to clipboard
Signs a raw transaction as the fee payer.
Link copied to clipboard
abstract suspend fun waitForTransaction(transactionHash: HexInput, options: WaitForTransactionOptions = WaitForTransactionOptions()): Result<TransactionResponse, Exception>
Waits for a transaction to be successfully processed and included in the blockchain.