Documentation ¶
Index ¶
- func NewTron(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
- func NewTron2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
- type Tron
- func (t *Tron) Balance(chainCode int64, address string, tag string) (string, error)
- func (t *Tron) BalanceCluster(trace bool) *config.NodeCluster
- func (t *Tron) EstimateGas(chainCode int64, from, to, data string) (string, error)
- func (t *Tron) EstimateGasForTron(chainCode int64, from, to, functionSelector, parameter string) (string, error)
- func (t *Tron) GasPrice(chainCode int64) (string, error)
- func (t *Tron) GetAccountResourceForTron(chainCode int64, address string) (string, error)
- func (t *Tron) GetAddressType(chainCode int64, address string) (string, error)
- func (t *Tron) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)
- func (t *Tron) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)
- func (t *Tron) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)
- func (t *Tron) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)
- func (t *Tron) GetCode(chainCode int64, address string) (string, error)
- func (t *Tron) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)
- func (t *Tron) GetTxByHash(chainCode int64, hash string) (string, error)
- func (t *Tron) LatestBlock(chainCode int64) (string, error)
- func (t *Tron) MonitorCluster() any
- func (t *Tron) Nonce(chainCode int64, address string, tag string) (string, error)
- func (t *Tron) SendJsonRpc(chainCode int64, req string) (string, error)
- func (t *Tron) SendRawTransaction(chainCode int64, signedTx string) (string, error)
- func (t *Tron) SendReq(blockChain int64, reqBody string, url string) (resp string, err error)
- func (t *Tron) StartWDT()
- func (t *Tron) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, ...) (string, error)
- func (t *Tron) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)
- func (t *Tron) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)
- func (t *Tron) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)
- func (e *Tron) TraceTransaction(chainCode int64, address string) (string, error)
- func (t *Tron) UnSubscribe(chainCode int64, subId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTron ¶
func NewTron(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
func NewTron2 ¶ added in v0.5.3
func NewTron2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
Types ¶
type Tron ¶
type Tron struct {
// contains filtered or unexported fields
}
func (*Tron) BalanceCluster ¶
func (t *Tron) BalanceCluster(trace bool) *config.NodeCluster
func (*Tron) EstimateGas ¶ added in v0.5.3
func (*Tron) EstimateGasForTron ¶ added in v0.5.3
func (*Tron) GetAccountResourceForTron ¶ added in v0.5.3
func (*Tron) GetAddressType ¶
func (*Tron) GetBlockByHash ¶
func (*Tron) GetBlockByNumber ¶
func (*Tron) GetBlockReceiptByBlockHash ¶
func (*Tron) GetBlockReceiptByBlockNumber ¶
func (*Tron) GetTransactionReceiptByHash ¶
func (*Tron) MonitorCluster ¶
func (*Tron) SendRawTransaction ¶
func (*Tron) SubscribeLogs ¶
func (*Tron) SubscribePendingTx ¶
func (*Tron) TokenBalance ¶
func (*Tron) TraceTransaction ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.