AptosQuickApiTransactionHelper mixin
A helper mixin for creating various Aptos raw transactions, including transfers, batch transfers, module publishing, and script executions.
This mixin extends AptosQuickApiProviderHelper to leverage account-related utilities.
- Superclass constraints
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- provider → AptosProvider
-
The Aptos provider used to make API requests.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accountIsActive(
AptosAddress address) → Future< bool> -
Checks if an account is active based on the provided
address
. Returnstrue
if the account exists, otherwisefalse
.inherited -
buildTransaction(
{required AptosAddress sender, required AptosTransactionPayload transactionPayload, AptosApiBuildTransactionParams? params}) → Future< AptosRawTransaction> - Builds a raw transaction with the provided parameters.
-
callFunction<
T> (AptosTransactionEntryFunction entry, {BigInt? ledgerVersion}) → Future< List< T> > -
Executes a view function from an Aptos module.
inherited
-
createBatchTransferTransaction(
{required AptosAddress sender, required List< AptosTransferParams> transfers, AptosApiBuildTransactionParams? params}) → Future<AptosRawTransaction> - Creates a batch transfer transaction to send Aptos tokens to multiple recipients.
-
createPublishModuleTransaction(
{required AptosAddress sender, required List< int> metadataBytes, required List<List< moduleBytes, AptosApiBuildTransactionParams? params}) → Future<int> >AptosRawTransaction> - Creates a transaction to publish a new module to the Aptos blockchain.
-
createScriptTransaction(
{required AptosAddress sender, required List< int> byteCode, required List<AptosScriptArguments> arguments, List<AptosTypeTag> typeArgs = const [], AptosApiBuildTransactionParams? params}) → Future<AptosRawTransaction> - Creates a script transaction to execute custom bytecode on the Aptos blockchain.
-
createSimpleTransaction(
{required AptosAddress sender, required AptosModuleId moduleId, required String functionName, required List< AptosEntryFunctionArguments> arguments, List<AptosTypeTag> typeArgs = const [], AptosApiBuildTransactionParams? params}) → Future<AptosRawTransaction> - Creates a simple transaction that calls a function from a specific Aptos module.
-
createTransferTransaction(
{required AptosAddress sender, required AptosTransferParams transferParams, AptosApiBuildTransactionParams? params}) → Future< AptosRawTransaction> -
Creates a raw transaction for transferring Aptos tokens from the
sender
to the specifiedtransferParams
. -
getAccountData(
AptosAddress address) → Future< AptosApiAccountData> -
Retrieves account data for the given
address
.inherited -
getAccountSequence(
AptosAddress address) → Future< BigInt> -
Retrieves the current sequence number for the specified
address
.inherited -
getChainId(
) → Future< int> -
Retrieves the chain ID of the current Aptos network.
inherited
-
getGasPrice(
) → Future< BigInt> -
Retrieves the current estimated gas price from the Aptos network.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
submitTransaction(
AptosSignedTransaction transaction) → Future< AptosApiPendingTransaction> -
Submits a signed transaction to the Aptos network.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited