nep17

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nep17Helper

type Nep17Helper struct {
	ScriptHash *helper.UInt160 // scriptHash of nep17 token
	Client     rpc.IRpcClient
}

Nep17Helper is nep17 wrapper class, api reference: https://github.com/neo-project/proposals/tree/nep-17

func NewNep17Helper

func NewNep17Helper(scriptHash *helper.UInt160, client rpc.IRpcClient) *Nep17Helper

func (*Nep17Helper) BalanceOf

func (n *Nep17Helper) BalanceOf(account *helper.UInt160) (*big.Int, error)

func (*Nep17Helper) Decimals

func (n *Nep17Helper) Decimals() (int, error)

func (*Nep17Helper) Symbol

func (n *Nep17Helper) Symbol() (string, error)

func (*Nep17Helper) TotalSupply

func (n *Nep17Helper) TotalSupply() (*big.Int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL