Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + 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") + func Bind(types []string, abis []string, bytecodes []string, pkg 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, result interface{}, method string, params ...interface{}) error + func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, error) + type CallOpts struct + Context context.Context + 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 ContractTransactor interface + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (usedGas *big.Int, err 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) + 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 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 + GasLimit *big.Int + GasPrice *big.Int + Nonce *big.Int + Signer SignerFn + Value *big.Int + func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts + func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error)