Documentation
¶
Index ¶
- Variables
- func CreateTransaction(network, privateKeyHex, to string, amount int64) (string, error)
- func GenerateWallet() (string, error)
- func GetBalance(network, from string) (string, error)
- func GetBlockNumber(network string) (int64, error)
- func GetTransactionReceipt(network, txHash string) (*types.Receipt, error)
- func GetWalletsInMemory() []string
- func SetNetwork(network, url string)
Constants ¶
This section is empty.
Variables ¶
View Source
var NetworkInMemory = make(map[string]string)
NetworkMemory is a map to store the network node of the ethereum client.
View Source
var WalletsInMemory = make(map[string]string)
WalletsInMemory is a map to store the private keys of the ethereum wallets.
Functions ¶
func CreateTransaction ¶
CreateEvmTransaction creates a new Ethereum transaction and sends it to the network.
func GenerateWallet ¶
GenerateEvmWallet creates a new Ethereum wallet and returns the address and store private key in memory.
func GetBalance ¶
func GetBlockNumber ¶
func GetTransactionReceipt ¶
func GetWalletsInMemory ¶
func GetWalletsInMemory() []string
func SetNetwork ¶
func SetNetwork(network, url string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.