Documentation ¶
Index ¶
- func NewChainClient() blockchain.BlockChain
- type Tron
- func (t *Tron) EthSubscribe(host string, token string) (string, error)
- func (t *Tron) EthUnSubscribe(host string, token string) (string, error)
- func (t *Tron) GetTokenBalance(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (t *Tron) GetTokenBalanceByHttp(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)
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) EthUnSubscribe ¶
func (*Tron) GetTokenBalance ¶
func (*Tron) GetTokenBalanceByHttp ¶
func (*Tron) GetTokenBalanceByHttp2 ¶
func (*Tron) GetTokenDecimalsByHttp ¶
func (*Tron) SendRequestToChain ¶
Click to show internal directories.
Click to hide internal directories.