AptosHelper class
A utility class that provides helper functions for working with Aptos-related operations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createAccountTransferEntry(
AptosTransferParams transfer) → AptosTransactionEntryFunction - Creates an Aptos transaction entry for transferring coins to an account.
-
createBatchTransferTransferEntry(
List< AptosTransferParams> transfers) → AptosTransactionEntryFunction - Creates an Aptos transaction entry for transferring coins in bulk. This allows multiple transfers to different addresses in one transaction.
-
createCoinTransferEntry(
AptosTransferParams transfer) → AptosTransactionEntryFunction - Creates an Aptos transaction entry for transferring coins to another account. It sets up the required module, function, and arguments for the transaction.
-
toApt(
String aptos) → BigInt - Converts a string representing an Aptos amount to a BigInt in the smallest unit. This method multiplies the value by the scaling factor (10^8) to handle decimal precision.
-
toAptos(
BigInt apt) → String - Converts a BigInt value representing an Aptos amount in the smallest unit back to a string with the standard decimal precision (8 decimal places).