Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { RawEthClient() *ethclient.Client PrivateKey() PrivateKey Transaction(txHash string) (tx *types.Transaction, isPending bool, err error) BalanceOf(address string) (uint64, error) ChainID() (uint64, error) SuggestedGasPrice() (uint64, error) WaitForMined(txHash string) error }
func NewClient ¶
func NewClient(rpcURL string, privateKey PrivateKey) Client
type DeployContractResult ¶
type PrivateKey ¶
type PrivateKey interface { Hex() string PublicKey() PublicKey RawPrivateKey() *ecdsa.PrivateKey }
func NewPrivateKey ¶
func NewPrivateKey() PrivateKey
func NewPrivateKeyFromHex ¶
func NewPrivateKeyFromHex(hex string) PrivateKey
type PublicKey ¶
func NewPublicKeyFromHex ¶
type TransactOpts ¶
type WriteContractResult ¶
Click to show internal directories.
Click to hide internal directories.