Documentation ¶
Index ¶
- type Client
- func (c *Client) GetBalance(address common.Address, blockNumber *big.Int) (*big.Int, error)
- func (c *Client) GetBlockByNumber(chainID *big.Int) (*types.Block, error)
- func (c *Client) GetBlockNumber() (uint64, error)
- func (c *Client) GetChainID() (*big.Int, error)
- func (c *Client) GetHeaderByNumber(chainID *big.Int) (*types.Header, error)
- func (c *Client) GetNetworkID() (*big.Int, error)
- func (c *Client) GetNodeInfo() (*p2p.NodeInfo, error)
- func (c *Client) GetPeerCount() (uint64, error)
- func (c *Client) SendTransaction(pk string, transmitter string, receiver string, amount int64, gasLimitTx int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string Ctx context.Context EthClient *ethclient.Client GethClient *gethclient.Client // contains filtered or unexported fields }
func (*Client) GetBalance ¶
GetBalance Passing the block number let's you read the account balance at the time of that block. The block number must be a big.Int.
func (*Client) GetBlockByNumber ¶
GetBlockByNumber returns a block from the current canonical chain. If number is nil, the latest known block is returned.
Note that loading full blocks requires two requests. Use HeaderByNumber if you don't need all transactions or uncle headers.
func (*Client) GetBlockNumber ¶
GetBlockNumber returns the most recent block number
func (*Client) GetHeaderByNumber ¶
func (*Client) GetPeerCount ¶
GetPeerCount returns the most recent block number
Click to show internal directories.
Click to hide internal directories.