Documentation ¶
Overview ¶
Package newtonclient provides a client for the NewChain RPC API.
Index ¶
- type BaseInfo
- type Client
- func (ec *Client) Close()
- func (ec *Client) GetBaseInfo(ctx context.Context, account common.Address) (*BaseInfo, error)
- func (ec *Client) SendRawTransaction(ctx context.Context, tx *types.Transaction, wait uint64) (common.Hash, error)
- func (ec *Client) SendTransaction(ctx context.Context, rlpTx, signature []byte, from common.Address, wait uint64) (common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines typed wrappers for the Ethereum RPC API.
func (*Client) GetBaseInfo ¶
NetworkID returns the network ID (also known as the chain ID) for this chain.
Click to show internal directories.
Click to hide internal directories.