XRC20 class
Class for XRC20 Methods.
Constructors
- XRC20()
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
-
allowance(
String ownerAdd_, dynamic contractAdd_, dynamic spenderAdd_) → Future< String> - Gets how much allowance spender have from owner ownAdd_ : The address of the Token's owner. contractAddr_ : The address of the token. spenderAdd_ : The address of the Spender's address. An String representing the Allowance .
-
approve(
String owner_PrivateKey, dynamic contractadd, dynamic spenderadd, dynamic approve_value) → Future< String> - Approve the passed address to spend the specified amount of tokens on behalf of owner. owner_PrivateKey : Owner Private key. contractAdd : Token Address. spenderadd : The address which will spend the funds. approve_value : The amount of tokens to be spent.
-
balanceOf(
String contractAdd, dynamic ownerAdd) → Future< BigInt> - Gets the balanceOf of the specified address. contractAddr : The address of the token. ownerAdd : The address to query the balance of.
-
decimals(
String decimals_) → Future< String> - Gets the Decimal of the specified address.
-
decreaseAllowance(
dynamic ownerPrivateKey, dynamic contract_Add, dynamic spender_Add, dynamic value_) → Future< String> - Decrease Allowance Method Decrease the amount of tokens that an owner allowed to a spender. ownerPrivateKey : Owner Private key contract_Add : Token Address for which , allownce need to to decrease. spender_Add : The address which will spend the funds. value : The amount of tokens to increase the allowance by. ownAddress : Owner Address
-
increaseAllowance(
String ownerPrivateKey, dynamic contract_Add, dynamic spender_Add, dynamic value) → Future< String> - Increase the amount of tokens that an owner allowed to a spender. ownerPrivateKey : Owner Private key. contract_Add : Token Address for which , allownce need to to increase. spender_add : The address which will spend the funds. value : The amount of tokens to increase the allowance by.
-
name(
String contractAdd) → Future< String> - Gets the Name of the specified address.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
symbol(
String contractAdd) → Future< String> - Gets the Symbol of the specified address.
-
toString(
) → String -
A string representation of this object.
inherited
-
totalSupply(
String totalSupply_) → Future< String> - Gets the totalSupply of the specified address.
-
transfer(
dynamic _ownerPrivateKey, dynamic _contractAddr, dynamic _ownerAdd, dynamic receiverAdd, dynamic transfer_value) → Future< String> - Transfer tokens from one address to another _ownerPrivateKey : Owner's Private key. _contractAddr : Token Address. _ownerAdd : Token Owner Address. recieverAdd : Reciever Address is The address which you want to transfer to. transfer_Value the amount of tokens to be transferred
-
transferFrom(
String contractAddres_, dynamic _spenderAddr, dynamic receiver_Address, dynamic transferfrom_value, dynamic SpenderPrivatekey, dynamic ownerAddress) → Future< String> - Transfer tokens from one address to another contractAddres_ : Token Address. _spenderAddr : Spender Address is The address which you want to send tokens from. reciever_Address : Reciever Address is The address which you want to transfer to. spenderPrivateKey: Spender's Private key. ownerAddress : Token Owner Address. transferfrom_value : the amount of tokens to be transferred.
-
transferXDC(
String ownerPrivatekey, dynamic receiver_Addr, dynamic xdc_value, dynamic ownerAddresss) → Future< String> - Transfer XDC from one address to another ownerPrivatekey : Owner's Private key. reciever_Addr : Reciever Address is The address which you want to transfer to. xdc_value : the amount of tokens to be transferred ownerAddress : Token Owner Address.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited