Documentation ¶
Index ¶
- Constants
- func DecodeHex(s string) []byte
- func GetAddressForNetwork(addresses string, networkID int64) (string, error)
- func GetEtherscanURL(netID int64) string
- func Keccak256(input []byte) [32]byte
- func NewClient(ctx context.Context, logger log.Logger) (*ethclient.Client, int64, error)
- func NewSignedTX(to common.Address, data []byte, nonce uint64, prvKey *ecdsa.PrivateKey, ...) (*types.Transaction, string, error)
- func PrepareTx(ctx context.Context, client *ethclient.Client, account *Account, ...) (*bind.TransactOpts, error)
- func ValidateAddress(address string) error
- type Account
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetAddressForNetwork ¶
GetAddressForNetwork returns an ethereum address based on ethereum node network id.
func GetEtherscanURL ¶ added in v0.3.0
func NewSignedTX ¶ added in v0.3.0
func ValidateAddress ¶
ValidateAddress checks if an ethereum URL is valid?
Types ¶
type Account ¶
type Account struct { Address common.Address PrivateKey *ecdsa.PrivateKey }
func GetAccountByPubAddress ¶ added in v0.3.0
func GetAccounts ¶
GetAccounts returns a slice of Account from private keys in PrivateKeysEnvName environment variable.
func (*Account) GetAddress ¶
func (*Account) GetPrivateKey ¶
func (a *Account) GetPrivateKey() *ecdsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.