tron

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (t *Tron) GetToken1155(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Tron) GetToken20 added in v0.5.1

func (t *Tron) GetToken20(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Tron) GetToken20ByHttp added in v0.5.1

func (t *Tron) GetToken20ByHttp(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Tron) GetToken721 added in v0.5.1

func (t *Tron) GetToken721(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Tron) GetTokenBalanceByHttp2

func (t *Tron) GetTokenBalanceByHttp2(host string, token string, contractAddress string, userAddress string) (string, error)

func (*Tron) GetTokenDecimalsByHttp

func (t *Tron) GetTokenDecimalsByHttp(host string, token string, contractAddress string, userAddress string) (string, error)

func (*Tron) SendRequestToChain

func (t *Tron) SendRequestToChain(host string, token string, query string) (string, error)

func (*Tron) SendRequestToChainByHttp

func (t *Tron) SendRequestToChainByHttp(host string, token string, query string) (string, error)

func (*Tron) Subscribe added in v0.5.1

func (t *Tron) Subscribe(host string, token string) (string, error)

func (*Tron) UnSubscribe added in v0.5.1

func (t *Tron) UnSubscribe(host string, token string) (string, error)

Jump to

Keyboard shortcuts

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