Token class

Constructors

Token({required GrpcServiceImpl grpc, required TokenName token})

Properties

grpc GrpcServiceImpl
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token TokenName
final

Methods

approve(String spender, double amount) Future<void>
balanceOf(String address) Future<BigInt>
balanceOf gets the balance of the given address
decimals() Future<int>
decimals gets the number of decimals of a token
increaseAllowance(BigInt amount) Future<void>
name() Future<String>
name gets the name of the token
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
symbol() Future<String>
symbol gets the name of the token
toString() String
A string representation of this object.
inherited
totalSupply() Future<BigInt>
totalSupply gets the balance of the given address
transfer(String toAddress, double amount) Future<void>

Operators

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