Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct {
// contains filtered or unexported fields
}
Contract is a wrapper to make abi calls to contract with a state provider
func NewContract ¶
type ContractOption ¶ added in v0.1.1
type ContractOption func(*Opts)
func WithEIP1559 ¶ added in v0.1.2
func WithEIP1559() ContractOption
func WithJsonRPC ¶ added in v0.1.1
func WithJsonRPC(client *jsonrpc.Eth) ContractOption
func WithJsonRPCEndpoint ¶ added in v0.1.1
func WithJsonRPCEndpoint(endpoint string) ContractOption
func WithProvider ¶ added in v0.1.1
func WithProvider(provider Provider) ContractOption
func WithSender ¶ added in v0.1.1
func WithSender(sender ethgo.Key) ContractOption
type Provider ¶ added in v0.1.1
type Provider interface { Call(ethgo.Address, []byte, *CallOpts) ([]byte, error) Txn(ethgo.Address, ethgo.Key, []byte) (Txn, error) }
Provider handles the interactions with the Ethereum 1x node
Click to show internal directories.
Click to hide internal directories.