PublicAccount class

Annotations
  • @HiveType(typeId: kPublicAccountTypeId)

Constructors

PublicAccount({String? privateKeyId, required String name, required int order, required String nodeUri, required String accountAddress, required String chainId, required AccountSupportedTxVersion supportedTxVersion, required String walletId, required StarknetAccountType accountType})
PublicAccount.from({required Account account, required String walletId, int order = 0, String? name})

Properties

accountAddress String
final
accountType StarknetAccountType
final
balance Future<double>
no setter
box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
chainId String
final
hashCode int
The hash code for this object.
no setterinherited
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
isValid Future<bool>
Returns true if account is a valid one
no setter
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
name String
final
nodeUri String
final
order int
final
privateKeyId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedTxVersion → AccountSupportedTxVersion
final
walletId String
final

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toAccount(PasswordPrompt passwordPrompt) Future<Account?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited