ether

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

Documentation

Index

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

func (e *Ether) Balance(chainCode int64, address string, tag string) (string, error)

func (*Ether) BalanceCluster

func (e *Ether) BalanceCluster(trace bool) *config.NodeCluster

func (*Ether) BalanceOf

func (e *Ether) BalanceOf(chainCode int64, contractAddress string, address string, tokenId string, eip int64) (string, error)

func (*Ether) EstimateGas added in v0.5.3

func (e *Ether) EstimateGas(chainCode int64, from, to, data string) (string, error)

func (*Ether) EstimateGasForTron added in v0.5.3

func (e *Ether) EstimateGasForTron(chainCode int64, from, to, functionSelector, parameter string) (string, error)

func (*Ether) GasPrice added in v0.5.3

func (e *Ether) GasPrice(chainCode int64) (string, error)

func (*Ether) GetAccountResourceForTron added in v0.5.3

func (e *Ether) GetAccountResourceForTron(chainCode int64, address string) (string, error)

func (*Ether) GetAddressType

func (e *Ether) GetAddressType(chainCode int64, address string) (string, error)

func (*Ether) GetBlockByHash

func (e *Ether) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)

func (*Ether) GetBlockByNumber

func (e *Ether) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)

func (*Ether) GetBlockReceiptByBlockHash

func (e *Ether) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)

func (*Ether) GetBlockReceiptByBlockNumber

func (e *Ether) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)

func (*Ether) GetCode

func (e *Ether) GetCode(chainCode int64, address string) (string, error)

func (*Ether) GetTransactionReceiptByHash

func (e *Ether) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)

func (*Ether) GetTxByHash

func (e *Ether) GetTxByHash(chainCode int64, hash string) (string, error)

func (*Ether) LatestBlock

func (e *Ether) LatestBlock(chainCode int64) (string, error)

func (*Ether) MonitorCluster

func (e *Ether) MonitorCluster() any

func (*Ether) Nonce

func (e *Ether) Nonce(chainCode int64, address string, tag string) (string, error)

func (*Ether) OwnerOf

func (e *Ether) OwnerOf(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)

func (*Ether) SendJsonRpc

func (e *Ether) SendJsonRpc(chainCode int64, req string) (string, error)

func (*Ether) SendRawTransaction

func (e *Ether) SendRawTransaction(chainCode int64, signedTx string) (string, error)

func (*Ether) SendReq

func (e *Ether) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)

func (*Ether) SendReqByWs

func (e *Ether) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)

func (*Ether) StartWDT

func (e *Ether) StartWDT()

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 (e *Ether) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)

func (*Ether) Token

func (e *Ether) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)

func (*Ether) TokenBalance

func (e *Ether) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)

func (*Ether) TokenURI

func (e *Ether) TokenURI(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)

func (*Ether) TotalSupply

func (e *Ether) TotalSupply(chainCode int64, contractAddress string, eip int64) (string, error)

func (*Ether) TraceTransaction added in v0.5.3

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

func (*Ether) UnSubscribe

func (e *Ether) 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