Documentation ¶
Index ¶
- type TRC20
- func (t *TRC20) Approve(ks *keystore.Keystore, spender string, amount *big.Int) (*transaction.Transaction, error)
- func (t *TRC20) Call(ks *keystore.Keystore, method string, params []byte) (*transaction.Transaction, error)
- func (t *TRC20) CallConstant(method string, params []byte) (string, error)
- func (t *TRC20) GetAllowance(owner, spender string) (*big.Int, error)
- func (t *TRC20) GetBalance(addr string) (*big.Int, error)
- func (t *TRC20) GetDecimals() (*big.Int, error)
- func (t *TRC20) GetName() (string, error)
- func (t *TRC20) GetSymbol() (string, error)
- func (t *TRC20) GetTotalSupply() (*big.Int, error)
- func (t *TRC20) Transfer(ks *keystore.Keystore, to string, amount *big.Int) (*transaction.Transaction, error)
- func (t *TRC20) TransferFrom(ks *keystore.Keystore, from, to string, amount *big.Int) (*transaction.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TRC20 ¶
type TRC20 struct { ContractAddress address.Address *client.GrpcClient }
func (*TRC20) Approve ¶
func (t *TRC20) Approve(ks *keystore.Keystore, spender string, amount *big.Int) (*transaction.Transaction, error)
func (*TRC20) Call ¶
func (t *TRC20) Call(ks *keystore.Keystore, method string, params []byte) (*transaction.Transaction, error)
func (*TRC20) CallConstant ¶
func (*TRC20) Transfer ¶
func (t *TRC20) Transfer(ks *keystore.Keystore, to string, amount *big.Int) (*transaction.Transaction, error)
func (*TRC20) TransferFrom ¶
func (t *TRC20) TransferFrom(ks *keystore.Keystore, from, to string, amount *big.Int) (*transaction.Transaction, error)
Click to show internal directories.
Click to hide internal directories.