Documentation ¶
Index ¶
- func NewEth(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
- func NewEth2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
- func NewNftEth(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.NftApi
- type Ether
- func (e *Ether) Balance(chainCode int64, address string, tag string) (string, error)
- func (e *Ether) BalanceCluster(trace bool) *config.NodeCluster
- func (e *Ether) BalanceOf(chainCode int64, contractAddress string, address string, tokenId string, ...) (string, error)
- func (e *Ether) EstimateGas(chainCode int64, from, to, data string) (string, error)
- func (e *Ether) EstimateGasForTron(chainCode int64, from, to, functionSelector, parameter string) (string, error)
- func (e *Ether) GasPrice(chainCode int64) (string, error)
- func (e *Ether) GetAccountResourceForTron(chainCode int64, address string) (string, error)
- func (e *Ether) GetAddressType(chainCode int64, address string) (string, error)
- func (e *Ether) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)
- func (e *Ether) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)
- func (e *Ether) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)
- func (e *Ether) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)
- func (e *Ether) GetCode(chainCode int64, address string) (string, error)
- func (e *Ether) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)
- func (e *Ether) GetTxByHash(chainCode int64, hash string) (string, error)
- func (e *Ether) LatestBlock(chainCode int64) (string, error)
- func (e *Ether) MonitorCluster() any
- func (e *Ether) Nonce(chainCode int64, address string, tag string) (string, error)
- func (e *Ether) OwnerOf(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *Ether) SendJsonRpc(chainCode int64, req string) (string, error)
- func (e *Ether) SendRawTransaction(chainCode int64, signedTx string) (string, error)
- func (e *Ether) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)
- func (e *Ether) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *Ether) StartWDT()
- func (e *Ether) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, ...) (string, error)
- func (e *Ether) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *Ether) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)
- func (e *Ether) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)
- func (e *Ether) TokenURI(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *Ether) TotalSupply(chainCode int64, contractAddress string, eip int64) (string, error)
- func (e *Ether) TraceTransaction(chainCode int64, address string) (string, error)
- func (e *Ether) UnSubscribe(chainCode int64, subId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEth ¶
func NewEth(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
func NewEth2 ¶ added in v0.5.3
func NewEth2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
func NewNftEth ¶
func NewNftEth(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.NftApi
Types ¶
type Ether ¶
type Ether struct {
// contains filtered or unexported fields
}
func (*Ether) BalanceCluster ¶
func (e *Ether) BalanceCluster(trace bool) *config.NodeCluster
func (*Ether) EstimateGas ¶ added in v0.5.3
func (*Ether) EstimateGasForTron ¶ added in v0.5.3
func (*Ether) GetAccountResourceForTron ¶ added in v0.5.3
func (*Ether) GetAddressType ¶
func (*Ether) GetBlockByHash ¶
func (*Ether) GetBlockByNumber ¶
func (*Ether) GetBlockReceiptByBlockHash ¶
func (*Ether) GetBlockReceiptByBlockNumber ¶
func (*Ether) GetTransactionReceiptByHash ¶
func (*Ether) GetTxByHash ¶
func (*Ether) MonitorCluster ¶
func (*Ether) SendJsonRpc ¶
func (*Ether) SendRawTransaction ¶
func (*Ether) SendReqByWs ¶
func (*Ether) SubscribeLogs ¶
func (e *Ether) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, sendCh chan string) (string, error)
SubscribeLogs {"jsonrpc":"2.0","id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}]}
func (*Ether) SubscribePendingTx ¶
func (*Ether) TokenBalance ¶
func (*Ether) TotalSupply ¶
func (*Ether) TraceTransaction ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.