Documentation ¶
Index ¶
- type Client
- func (ec *Client) AccountPermitted(contractAddress, senderAddress common.Address) (bool, error)
- func (ec *Client) Close()
- func (ec *Client) ConfigTransaction(key *ecdsa.PrivateKey, gasLimit uint64, pending bool) (*bind.TransactOpts, error)
- func (ec *Client) Connect(nodeURL string) error
- func (ec *Client) DecreaseGasUsed(contractAddress common.Address, options *bind.TransactOpts, gasUsed *big.Int) (*common.Hash, error)
- func (ec *Client) GenerateTransaction(options *bind.TransactOpts, to *common.Address, relayAddress common.Address, ...) (*types.Transaction, error)
- func (ec *Client) GetBlockByNumber(contractAddress common.Address, blockNumber *big.Int) (*types.Header, uint64, error)
- func (ec *Client) GetCurrentGasLimit(contractAddress common.Address) (*big.Int, error)
- func (ec *Client) GetEthclient() *ethclient.Client
- func (ec *Client) GetGasLimit(contractAddress, nodeAddress common.Address) (*big.Int, error)
- func (ec *Client) GetMaxBlockGasLimit(contractAddress common.Address) (*big.Int, error)
- func (ec *Client) GetTransactionCount(contractAddress common.Address, address common.Address, ...) (*big.Int, error)
- func (ec *Client) GetTransactionReceipt(transactionHash common.Hash) (*types.Receipt, error)
- func (ec *Client) SendMetatransaction(contractAddress common.Address, options *bind.TransactOpts, to *common.Address, ...) (*common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client to manage connection to Ethereum
func (*Client) AccountPermitted ¶
AccountPermitted ...
func (*Client) ConfigTransaction ¶
func (ec *Client) ConfigTransaction(key *ecdsa.PrivateKey, gasLimit uint64, pending bool) (*bind.TransactOpts, error)
ConfigTransaction from ethereum address contract
func (*Client) DecreaseGasUsed ¶
func (ec *Client) DecreaseGasUsed(contractAddress common.Address, options *bind.TransactOpts, gasUsed *big.Int) (*common.Hash, error)
DecreaseGasUsed into blockchain
func (*Client) GenerateTransaction ¶
func (*Client) GetBlockByNumber ¶
func (ec *Client) GetBlockByNumber(contractAddress common.Address, blockNumber *big.Int) (*types.Header, uint64, error)
GetBlockByNumber ...
func (*Client) GetCurrentGasLimit ¶
GetMaxBlockGasLimit ...
func (*Client) GetGasLimit ¶
GetGasLimit ...
func (*Client) GetMaxBlockGasLimit ¶
GetMaxBlockGasLimit ...
func (*Client) GetTransactionCount ¶
func (ec *Client) GetTransactionCount(contractAddress common.Address, address common.Address, nodeAddress common.Address) (*big.Int, error)
GetTransactionCount ...
func (*Client) GetTransactionReceipt ¶
GetTransactionReceipt ...
Click to show internal directories.
Click to hide internal directories.