Documentation ¶
Overview ¶
Package blockchain provides functionality for interacting with the Ethereum blockchain. It includes utilities for creating Ethereum accounts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountData ¶
AccountData contains the details of an Ethereum account
type Client ¶
Client provides methods to interact with an Ethereum blockchain network. It uses the Ethereum client to query information and perform blockchain operations.
func NewClient ¶
NewClient creates and returns a new Client instance connected to the specified Ethereum network URL.
func (*Client) CreateEthAccount ¶
func (c *Client) CreateEthAccount() (AccountData, error)
CreateEthAccount generates a new Ethereum account with a private key, public key, and address. It also checks if the generated address is available (i.e., not used for contracts or transactions).