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 ¶
type ContractOption func(*Opts)
func WithEIP1559 ¶
func WithEIP1559() ContractOption
func WithJsonRPC ¶
func WithJsonRPC(client *jsonrpc.Eth) ContractOption
func WithJsonRPCEndpoint ¶
func WithJsonRPCEndpoint(endpoint string) ContractOption
func WithProvider ¶
func WithProvider(provider Provider) ContractOption
func WithSender ¶
func WithSender(sender web3tool.Key) ContractOption
type Provider ¶
type Provider interface { Call(web3tool.Address, []byte, *CallOpts) ([]byte, error) Txn(web3tool.Address, web3tool.Key, []byte) (Txn, error) }
Provider handles the interactions with the Ethereum 1x node
Click to show internal directories.
Click to hide internal directories.