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: 12 Imported by: 0

Documentation

Index

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) Balance

func (t *Tron) Balance(chainCode int64, address string, tag string) (string, error)

func (*Tron) BalanceCluster

func (t *Tron) BalanceCluster(trace bool) *config.NodeCluster

func (*Tron) EstimateGas added in v0.5.3

func (t *Tron) EstimateGas(chainCode int64, from, to, data string) (string, error)

func (*Tron) EstimateGasForTron added in v0.5.3

func (t *Tron) EstimateGasForTron(chainCode int64, from, to, functionSelector, parameter string) (string, error)

func (*Tron) GasPrice added in v0.5.3

func (t *Tron) GasPrice(chainCode int64) (string, error)

func (*Tron) GetAccountResourceForTron added in v0.5.3

func (t *Tron) GetAccountResourceForTron(chainCode int64, address string) (string, error)

func (*Tron) GetAddressType

func (t *Tron) GetAddressType(chainCode int64, address string) (string, error)

func (*Tron) GetBlockByHash

func (t *Tron) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)

func (*Tron) GetBlockByNumber

func (t *Tron) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)

func (*Tron) GetBlockReceiptByBlockHash

func (t *Tron) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)

func (*Tron) GetBlockReceiptByBlockNumber

func (t *Tron) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)

func (*Tron) GetCode

func (t *Tron) GetCode(chainCode int64, address string) (string, error)

func (*Tron) GetTransactionReceiptByHash

func (t *Tron) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)

func (*Tron) GetTxByHash

func (t *Tron) GetTxByHash(chainCode int64, hash string) (string, error)

func (*Tron) LatestBlock

func (t *Tron) LatestBlock(chainCode int64) (string, error)

func (*Tron) MonitorCluster

func (t *Tron) MonitorCluster() any

func (*Tron) Nonce

func (t *Tron) Nonce(chainCode int64, address string, tag string) (string, error)

func (*Tron) SendJsonRpc

func (t *Tron) SendJsonRpc(chainCode int64, req string) (string, error)

func (*Tron) SendRawTransaction

func (t *Tron) SendRawTransaction(chainCode int64, signedTx string) (string, error)

func (*Tron) SendReq

func (t *Tron) SendReq(blockChain int64, reqBody string, url string) (resp string, err error)

func (*Tron) StartWDT

func (t *Tron) StartWDT()

func (*Tron) SubscribeLogs

func (t *Tron) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, sendCh chan string) (string, error)

func (*Tron) SubscribePendingTx

func (t *Tron) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)

func (*Tron) Token

func (t *Tron) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)

func (*Tron) TokenBalance

func (t *Tron) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)

func (*Tron) TraceTransaction added in v0.5.3

func (e *Tron) TraceTransaction(chainCode int64, address string) (string, error)

func (*Tron) UnSubscribe

func (t *Tron) UnSubscribe(chainCode int64, subId string) (string, error)

Jump to

Keyboard shortcuts

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