utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransactOpts

func CreateTransactOpts(client *ethclient.Client, privKey *ecdsa.PrivateKey, value *big.Int) *bind.TransactOpts

CreateTransactOpts creates transaction options for a contract call

func GetEthClient

func GetEthClient(rpcURL string) (*ethclient.Client, error)

GetEthClient creates and returns an Ethereum client

func GetPrivateKey

func GetPrivateKey(key string) *ecdsa.PrivateKey

GetPrivateKey converts a hex string to an ECDSA private key

func ParseValue

func ParseValue(value string) (*big.Int, error)

ParseValue parses a string into a big.Int value

Types

This section is empty.

Jump to

Keyboard shortcuts

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