eth

package module
Version: v0.0.0-...-3d96c1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 17 Imported by: 1

README

go-eth Build Status GoDoc

Go library with helpful tools for interacting with Ethereum

Documentation

Index

Constants

View Source
const (
	DerivationPathPurposeIndex = iota
	DerivationPathCoinTypeIndex
	DerivationPathAccountIndex
	DerivationPathChangeIndex
	DerivationPathAddressIndex
)
View Source
const DerivationPathLength = 5
View Source
const ERC20TokenABI = "" /* 2603-byte string literal not displayed */

ERC20TokenABI is the input ABI used to generate the binding from.

Variables

View Source
var MAX_UINT256 = new(big.Int).Sub(new(big.Int).Exp(big.NewInt(2), big.NewInt(256), nil), big.NewInt(1))

MAX_UINT256 represents the maximum 256-bit unsigned integer (2^256 - 1)

View Source
var NULL_ADDRESS = common.Address{}

Functions

func Keccak256

func Keccak256(data ...[]byte) []byte

keccak256 calculates and returns the Keccak256 hash of the input data.

Types

type Deriver

type Deriver struct {
	// contains filtered or unexported fields
}

Deriver is a type that simplifies generating derivation paths

func NewBaseDeriver

func NewBaseDeriver() *Deriver

NewBaseDeriver creates a deriver from the standard base path

func NewDeriver

func NewDeriver(basePath accounts.DerivationPath) *Deriver

NewDeriver creates a derivation path deriver given a base path

func (*Deriver) Base

func (d *Deriver) Base() accounts.DerivationPath

Base returns a copy of the deriver's base derivation path

func (*Deriver) DeriveAt

func (d *Deriver) DeriveAt(index uint32) accounts.DerivationPath

DeriveAt returns a copy of the base derivation path with the address index set to index

func (*Deriver) DeriveNext

func (d *Deriver) DeriveNext() accounts.DerivationPath

DeriveNext derives and returns the next path, by incrementing the address index

type ERC20Token

type ERC20Token struct {
	ERC20TokenCaller     // Read-only binding to the contract
	ERC20TokenTransactor // Write-only binding to the contract
	ERC20TokenFilterer   // Log filterer for contract events
}

ERC20Token is an auto generated Go binding around an Ethereum contract.

func NewERC20Token

func NewERC20Token(address common.Address, backend bind.ContractBackend) (*ERC20Token, error)

NewERC20Token creates a new instance of ERC20Token, bound to a specific deployed contract.

type ERC20TokenApproval

type ERC20TokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ERC20TokenApproval represents a Approval event raised by the ERC20Token contract.

type ERC20TokenApprovalIterator

type ERC20TokenApprovalIterator struct {
	Event *ERC20TokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Token contract.

func (*ERC20TokenApprovalIterator) Close

func (it *ERC20TokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TokenApprovalIterator) Error

func (it *ERC20TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TokenApprovalIterator) Next

func (it *ERC20TokenApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20TokenCaller

type ERC20TokenCaller struct {
	// contains filtered or unexported fields
}

ERC20TokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewERC20TokenCaller

func NewERC20TokenCaller(address common.Address, caller bind.ContractCaller) (*ERC20TokenCaller, error)

NewERC20TokenCaller creates a new read-only instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenCaller) Allowance

func (_ERC20Token *ERC20TokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) constant returns(uint256)

func (*ERC20TokenCaller) BalanceOf

func (_ERC20Token *ERC20TokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) constant returns(uint256 balance)

func (*ERC20TokenCaller) Decimals

func (_ERC20Token *ERC20TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20TokenCaller) Name

func (_ERC20Token *ERC20TokenCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20TokenCaller) Symbol

func (_ERC20Token *ERC20TokenCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20TokenCaller) TotalSupply

func (_ERC20Token *ERC20TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20TokenCallerRaw

type ERC20TokenCallerRaw struct {
	Contract *ERC20TokenCaller // Generic read-only contract binding to access the raw methods on
}

ERC20TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ERC20TokenCallerRaw) Call

func (_ERC20Token *ERC20TokenCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20TokenCallerSession

type ERC20TokenCallerSession struct {
	Contract *ERC20TokenCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

ERC20TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ERC20TokenCallerSession) Allowance

func (_ERC20Token *ERC20TokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) constant returns(uint256)

func (*ERC20TokenCallerSession) BalanceOf

func (_ERC20Token *ERC20TokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) constant returns(uint256 balance)

func (*ERC20TokenCallerSession) Decimals

func (_ERC20Token *ERC20TokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20TokenCallerSession) Name

func (_ERC20Token *ERC20TokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20TokenCallerSession) Symbol

func (_ERC20Token *ERC20TokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20TokenCallerSession) TotalSupply

func (_ERC20Token *ERC20TokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20TokenFilterer

type ERC20TokenFilterer struct {
	// contains filtered or unexported fields
}

ERC20TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewERC20TokenFilterer

func NewERC20TokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20TokenFilterer, error)

NewERC20TokenFilterer creates a new log filterer instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenFilterer) FilterApproval

func (_ERC20Token *ERC20TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20TokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20TokenFilterer) FilterTransfer

func (_ERC20Token *ERC20TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TokenTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20TokenFilterer) WatchApproval

func (_ERC20Token *ERC20TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20TokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20TokenFilterer) WatchTransfer

func (_ERC20Token *ERC20TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20TokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type ERC20TokenManager

type ERC20TokenManager struct {
	// contains filtered or unexported fields
}

func NewERC20TokenManager

func NewERC20TokenManager(provider *Provider, addr common.Address, tokens []common.Address) (*ERC20TokenManager, error)

NewERC20TokenManager creates a new manager with provider, where account is the signer. Adds tokens if provided.

func (*ERC20TokenManager) Allowance

func (tm *ERC20TokenManager) Allowance(token common.Address, owner common.Address, spender common.Address) (*big.Int, error)

Allowance calls Allowance on token contract, and returns the amount which spender is still allowed to withdraw from owner

func (*ERC20TokenManager) Approve

func (tm *ERC20TokenManager) Approve(token common.Address, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve calls Approve on token contract, and allows spender to withdraw from your account multiple times, up to the value amount

func (*ERC20TokenManager) BalanceOf

func (tm *ERC20TokenManager) BalanceOf(token common.Address, owner common.Address) (*big.Int, error)

BalanceOf calls BalanceOf on token for owner

func (*ERC20TokenManager) Decimals

func (tm *ERC20TokenManager) Decimals(token common.Address) (uint8, error)

Decimals calls Decimals on token contract

func (*ERC20TokenManager) Name

func (tm *ERC20TokenManager) Name(token common.Address) (string, error)

Name calls Name on token contract

func (*ERC20TokenManager) Symbol

func (tm *ERC20TokenManager) Symbol(token common.Address) (string, error)

Symbol calls Symbol on token contract

func (*ERC20TokenManager) TotalSupply

func (tm *ERC20TokenManager) TotalSupply(token common.Address) (*big.Int, error)

TotalSupply calls TotalSupply on token contract

func (*ERC20TokenManager) Transfer

func (tm *ERC20TokenManager) Transfer(token common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer calls Transfer on token, transfering value to the to address

func (*ERC20TokenManager) TransferFrom

func (tm *ERC20TokenManager) TransferFrom(token common.Address, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom calls TransferFrom on token, transfering value to the to address, from the from address (allowance must be set)

type ERC20TokenRaw

type ERC20TokenRaw struct {
	Contract *ERC20Token // Generic contract binding to access the raw methods on
}

ERC20TokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ERC20TokenRaw) Call

func (_ERC20Token *ERC20TokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20TokenRaw) Transact

func (_ERC20Token *ERC20TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TokenRaw) Transfer

func (_ERC20Token *ERC20TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TokenSession

type ERC20TokenSession struct {
	Contract     *ERC20Token       // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ERC20TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ERC20TokenSession) Allowance

func (_ERC20Token *ERC20TokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) constant returns(uint256)

func (*ERC20TokenSession) Approve

func (_ERC20Token *ERC20TokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20TokenSession) BalanceOf

func (_ERC20Token *ERC20TokenSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) constant returns(uint256 balance)

func (*ERC20TokenSession) Decimals

func (_ERC20Token *ERC20TokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20TokenSession) Name

func (_ERC20Token *ERC20TokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20TokenSession) Symbol

func (_ERC20Token *ERC20TokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20TokenSession) TotalSupply

func (_ERC20Token *ERC20TokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20TokenSession) Transfer

func (_ERC20Token *ERC20TokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20TokenSession) TransferFrom

func (_ERC20Token *ERC20TokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20TokenTransactor

type ERC20TokenTransactor struct {
	// contains filtered or unexported fields
}

ERC20TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewERC20TokenTransactor

func NewERC20TokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20TokenTransactor, error)

NewERC20TokenTransactor creates a new write-only instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenTransactor) Approve

func (_ERC20Token *ERC20TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20TokenTransactor) Transfer

func (_ERC20Token *ERC20TokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20TokenTransactor) TransferFrom

func (_ERC20Token *ERC20TokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20TokenTransactorRaw

type ERC20TokenTransactorRaw struct {
	Contract *ERC20TokenTransactor // Generic write-only contract binding to access the raw methods on
}

ERC20TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ERC20TokenTransactorRaw) Transact

func (_ERC20Token *ERC20TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TokenTransactorRaw) Transfer

func (_ERC20Token *ERC20TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TokenTransactorSession

type ERC20TokenTransactorSession struct {
	Contract     *ERC20TokenTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

ERC20TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ERC20TokenTransactorSession) Approve

func (_ERC20Token *ERC20TokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20TokenTransactorSession) Transfer

func (_ERC20Token *ERC20TokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20TokenTransactorSession) TransferFrom

func (_ERC20Token *ERC20TokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20TokenTransfer

type ERC20TokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20TokenTransfer represents a Transfer event raised by the ERC20Token contract.

type ERC20TokenTransferIterator

type ERC20TokenTransferIterator struct {
	Event *ERC20TokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Token contract.

func (*ERC20TokenTransferIterator) Close

func (it *ERC20TokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TokenTransferIterator) Error

func (it *ERC20TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TokenTransferIterator) Next

func (it *ERC20TokenTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider enables interaction with the Ethereum blockchain through a mnemonic hot-wallet and an ETH client.

func NewProvider

func NewProvider(ethurl string, mnemonic string, path accounts.DerivationPath) (*Provider, error)

NewProvider creates a new signing provider with a mnemonic and derivation path.

func NewProviderWithDefaultPath

func NewProviderWithDefaultPath(ethurl string, mnemonic string) (*Provider, error)

NewProviderWithDefaultPath creates a new provider with the default base derivation path

func (*Provider) AccountAt

func (pvr *Provider) AccountAt(path accounts.DerivationPath) (accounts.Account, error)

AccountAt returns the account at the specified path (if applicable). Use Derive to add an address.

func (*Provider) Accounts

func (pvr *Provider) Accounts() []accounts.Account

Accounts gets currently supported accounts.

func (*Provider) CanSignWithAddress

func (pvr *Provider) CanSignWithAddress(addr common.Address) bool

CanSignWithAddress returns true if the provider can sign with the given address

func (*Provider) ChainID

func (pvr *Provider) ChainID(ctx context.Context) (id *big.Int, err error)

NetworkID gets the current chain ID (tries chain ID, if that fails, gets network ID)

func (*Provider) Client

func (pvr *Provider) Client() *ethclient.Client

Client returns a pointer to the underlying Ethereum client

func (*Provider) Derive

func (pvr *Provider) Derive(path accounts.DerivationPath) error

Derive derives a new account based on path and adds it to the hot wallet.

func (*Provider) EthSign

func (pvr *Provider) EthSign(message []byte, signerAddress common.Address) (*signer.ECSignature, error)

Primarily taken from: https://github.com/0xProject/0x-mesh/blob/bd3060d3efaab759913c4de2152c2ef4e5940301/ethereum/signer/sign.go EthSign implements zeroex.Signer

func (*Provider) GetAccount

func (pvr *Provider) GetAccount(addr common.Address) (accounts.Account, error)

GetAccount fetches the account object for a given address, errors if not present

func (*Provider) NetworkID

func (pvr *Provider) NetworkID(ctx context.Context) (id *big.Int, err error)

NetworkID gets the current network ID (tries network ID, if that fails, gets chain ID)

func (*Provider) Nonce

func (pvr *Provider) Nonce(ctx context.Context, addr common.Address) (uint64, error)

returns the current nonce for account

func (*Provider) SignData

func (pvr *Provider) SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error)

SignData signs arbitrary typed data of type mimeType with account.

func (*Provider) SignText

func (pvr *Provider) SignText(account accounts.Account, text []byte) ([]byte, error)

SignText signs a personal message with account if available.

func (*Provider) SignTx

func (pvr *Provider) SignTx(ctx context.Context, account accounts.Account, tx *types.Transaction) (*types.Transaction, error)

SignTx signs a transaction with the specified account.

func (*Provider) Wallet

func (pvr *Provider) Wallet() *hdwallet.Wallet

Wallet returns a pointer to the underlying wallet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL