tron

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 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.BlockChain

Types

type Tron

type Tron struct {
}

func (*Tron) EthSubscribe

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

func (*Tron) EthUnSubscribe

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

func (*Tron) GetTokenBalance

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

func (*Tron) GetTokenBalanceByHttp

func (t *Tron) GetTokenBalanceByHttp(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)

Jump to

Keyboard shortcuts

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