conn

package
v0.0.0-...-2ed6a8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthConn

type EthConn struct {
	// contains filtered or unexported fields
}

func NewEthConn

func NewEthConn(url string) *EthConn

func (*EthConn) GetBalance

func (c *EthConn) GetBalance(addr common.Address) (balance *big.Int, err error)

func (*EthConn) GetBlockNumber

func (c *EthConn) GetBlockNumber() (blockNum *big.Int, err error)

func (*EthConn) GetErc20Balance

func (c *EthConn) GetErc20Balance(addr common.Address) (listBalance map[string]*big.Int, err error)

func (*EthConn) GetEstimateGas

func (c *EthConn) GetEstimateGas(tx types.TransactionRequest) (gas uint64, err error)

func (*EthConn) GetGasPrice

func (c *EthConn) GetGasPrice() (gasPrice *big.Int, err error)

func (*EthConn) GetInternalTransactions

func (c *EthConn) GetInternalTransactions(address common.Address) (txs []types.EsInternalTansaction, err error)

func (*EthConn) GetNonce

func (c *EthConn) GetNonce(addr common.Address) (nonce uint64, err error)

func (*EthConn) GetNormalTransactions

func (c *EthConn) GetNormalTransactions(address common.Address) (txs []types.EsNormalTransaction, err error)

func (*EthConn) GetTokenTransactions

func (c *EthConn) GetTokenTransactions(address common.Address) (txs []types.EsErc20TokenTransaction, err error)

func (*EthConn) GetTransaction

func (c *EthConn) GetTransaction(txid string) (tx types.NodeTransaction, err error)

func (*EthConn) SendRawTransaction

func (c *EthConn) SendRawTransaction(data string) (txid string, err error)

type Response

type Response struct {
	Result json.RawMessage `json:"result"`
}

Jump to

Keyboard shortcuts

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