Documentation ¶
Index ¶
- func NewChainClient() blockchain.ChainConn
- type Tron
- func (t *Tron) GetToken1155(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (t *Tron) GetToken20(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (t *Tron) GetToken20ByHttp(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (t *Tron) GetToken721(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (t *Tron) GetTokenBalanceByHttp2(host string, token string, contractAddress string, userAddress string) (string, error)
- func (t *Tron) GetTokenDecimalsByHttp(host string, token string, contractAddress string, userAddress string) (string, error)
- func (t *Tron) SendRequestToChain(host string, token string, query string) (string, error)
- func (t *Tron) SendRequestToChainByHttp(host string, token string, query string) (string, error)
- func (t *Tron) Subscribe(host string, token string) (string, error)
- func (t *Tron) UnSubscribe(host string, token string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainClient ¶
func NewChainClient() blockchain.ChainConn
Types ¶
type Tron ¶
type Tron struct { }
func (*Tron) GetToken1155 ¶ added in v0.5.1
func (*Tron) GetToken20 ¶ added in v0.5.1
func (*Tron) GetToken20ByHttp ¶ added in v0.5.1
func (*Tron) GetToken721 ¶ added in v0.5.1
func (*Tron) GetTokenBalanceByHttp2 ¶
func (*Tron) GetTokenDecimalsByHttp ¶
func (*Tron) SendRequestToChain ¶
func (*Tron) SendRequestToChainByHttp ¶
Click to show internal directories.
Click to hide internal directories.