evm

package
v0.0.0-...-4ded12a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func CreateTransaction(network, privateKeyHex, to string, amount int64) (string, error)

CreateEvmTransaction creates a new Ethereum transaction and sends it to the network.

func GenerateWallet

func GenerateWallet() (string, error)

GenerateEvmWallet creates a new Ethereum wallet and returns the address and store private key in memory.

func GetBalance

func GetBalance(network, from string) (string, error)

func GetBlockNumber

func GetBlockNumber(network string) (int64, error)

func GetTransactionReceipt

func GetTransactionReceipt(network, txHash string) (*types.Receipt, error)

func GetWalletsInMemory

func GetWalletsInMemory() []string

func SetNetwork

func SetNetwork(network, url string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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