AleoAccount class
Constructors
- AleoAccount.fromExtendedPrivateKey(String extendedPrivateKey, {int accountIndex = 0})
- AleoAccount from extended privateKey aka seed accountIndex 0 for default account, next account index will be will 1
- AleoAccount.fromMnemonic(String mnemonic, {int accountIndex = 0})
- AleoAccount from mnemonic accountIndex 0 for default account, next account index will be will 1
- AleoAccount.fromPrivateKey(String privateKey)
Properties
- address ↔ String
-
getter/setter pair
- derivePath ↔ String
-
getter/setter pair
- extendedPrivateKey ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- privateKey ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewKey ↔ String
-
getter/setter pair
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
-
generatePublicTransfer(
{required String privateKey, required String recipient, required double amount, double fee = 0.28}) → Future< AleoDelegateTransferData> -
generate data for rpc to broadcast public transfer
privateKey
sender privateKeyrecipient
recipient addressamount
double value, amount should be human readable, it will convert to real microCredit on rust sidefee
fee should be human readable, it will convert to real microCredit on rust side -
getPublicAleoBalance(
String address, {String url = '', String networkId = ''}) → Future< double> - get public aleo balance
-
getPublicTransferFee(
) → double - default public transfer is 0.28