Versions in this module Expand all Collapse all v1 v1.10.19 Jun 7, 2022 Changes in this version + var ErrNoChainID = errors.New("no chain id specified") + var ErrNoCode = errors.New("no contract code at given address") + var ErrNoCodeAfterDeploy = errors.New("no contract code after deployment") + var ErrNoPendingState = errors.New("backend does not support pending state") + var ErrNotAuthorized = errors.New("not authorized to sign this account") + func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]string, ...) (string, error) + func WaitDeployed(ctx context.Context, b DeployBackend, tx *types.Transaction) (common.Address, error) + func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*types.Receipt, error) + type BoundContract struct + func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, backend ContractBackend, ...) (common.Address, *types.Transaction, *BoundContract, error) + func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller, ...) *BoundContract + func (c *BoundContract) Call(opts *CallOpts, results *[]interface{}, method string, params ...interface{}) error + func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error) + func (c *BoundContract) RawTransact(opts *TransactOpts, calldata []byte) (*types.Transaction, error) + func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, error) + func (c *BoundContract) UnpackLog(out interface{}, event string, log types.Log) error + func (c *BoundContract) UnpackLogIntoMap(out map[string]interface{}, event string, log types.Log) error + func (c *BoundContract) WatchLogs(opts *WatchOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error) + type CallOpts struct + BlockNumber *big.Int + Context context.Context + From common.Address + Pending bool + type ContractBackend interface + type ContractCaller interface + CallContract func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + CodeAt func(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + type ContractFilterer interface + FilterLogs func(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) + SubscribeFilterLogs func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + type ContractTransactor interface + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + SendTransaction func(ctx context.Context, tx *types.Transaction) error + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + SuggestGasTipCap func(ctx context.Context) (*big.Int, error) + type DeployBackend interface + CodeAt func(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type FilterOpts struct + Context context.Context + End *uint64 + Start uint64 + type Lang int + const LangGo + const LangJava + const LangObjC + type MetaData struct + ABI string + Bin string + Sigs map[string]string + func (m *MetaData) GetAbi() (*abi.ABI, error) + type PendingContractCaller interface + PendingCallContract func(ctx context.Context, call ethereum.CallMsg) ([]byte, error) + PendingCodeAt func(ctx context.Context, contract common.Address) ([]byte, error) + type SignerFn func(common.Address, *types.Transaction) (*types.Transaction, error) + type TransactOpts struct + Context context.Context + From common.Address + GasFeeCap *big.Int + GasLimit uint64 + GasPrice *big.Int + GasTipCap *big.Int + NoSend bool + Nonce *big.Int + Signer SignerFn + Value *big.Int + func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account) *TransactOpts + func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account) (*TransactOpts, error) + func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accounts.Account, chainID *big.Int) (*TransactOpts, error) + func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts + func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*TransactOpts, error) + func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) + func NewTransactorWithChainID(keyin io.Reader, passphrase string, chainID *big.Int) (*TransactOpts, error) + type WatchOpts struct + Context context.Context + Start *uint64