Documentation ¶
Index ¶
- Constants
- Variables
- func AddressFromPrivateKey(pri string) (common.Address, error)
- func ETH(eth int64) *big.Int
- func ETH32() decimal.Decimal
- func GWEIToWEI(value *big.Int) *big.Int
- func GweiToWei(gwei phase0.Gwei) *big.Int
- func IsSameNetwork(network string, chainID int) bool
- func KeyTransactOpts(chainID *big.Int) (*bind.TransactOpts, error)
- func NewSimulatedClient(walletBalance *big.Int, gasLimit uint64) (*backends.SimulatedBackend, error)
- type EthClient
Constants ¶
View Source
const ( MAINNET = "mainnet" GOERLI = "goerli" PRATER = "prater" SEPOLIA = "sepolia" )
View Source
const ZERO_HASH_STR = "0x0000000000000000000000000000000000000000000000000000000000000000"
Variables ¶
View Source
var ZERO_HASH = [32]byte{}
Functions ¶
func AddressFromPrivateKey ¶ added in v0.0.6
AddressFromPrivateKey Push out the address from the private key
func IsSameNetwork ¶ added in v0.0.8
func KeyTransactOpts ¶
func KeyTransactOpts(chainID *big.Int) (*bind.TransactOpts, error)
func NewSimulatedClient ¶ added in v0.0.5
func NewSimulatedClient(walletBalance *big.Int, gasLimit uint64) (*backends.SimulatedBackend, error)
NewSimulatedClient ETH client of constructing simulation transactions
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.