Documentation ¶
Index ¶
- type BuildTxResult
- type CallMethodOpts
- type CallMethodOptsBigInt
- type CallMsg
- func (msg *CallMsg) GetData() []byte
- func (msg *CallMsg) GetDataHex() string
- func (msg *CallMsg) GetFrom() string
- func (msg *CallMsg) GetGasLimit() string
- func (msg *CallMsg) GetGasPrice() string
- func (msg *CallMsg) GetTo() string
- func (msg *CallMsg) GetValue() string
- func (msg *CallMsg) SetData(data []byte)
- func (msg *CallMsg) SetDataHex(hex string)
- func (msg *CallMsg) SetFrom(address string)
- func (msg *CallMsg) SetGasLimit(gas string)
- func (msg *CallMsg) SetGasPrice(price string)
- func (msg *CallMsg) SetTo(address string)
- func (msg *CallMsg) SetValue(value string)
- func (msg *CallMsg) SetValueHex(hex string)
- func (msg *CallMsg) TransferToTransaction() *Transaction
- type Erc20TxParams
- type Transaction
- type TransactionByHashResult
- type UrlParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildTxResult ¶
type BuildTxResult struct { SignedTx *types.Transaction TxHex string }
type CallMethodOpts ¶
type CallMethodOptsBigInt ¶
type CallMsg ¶
type CallMsg struct {
Msg ethereum.CallMsg
}
CallMsg contains parameters for contract calls.
func NewCallMsg ¶
func NewCallMsg() *CallMsg
NewCallMsg creates an empty contract call parameter list.
func (*CallMsg) GetDataHex ¶
func (*CallMsg) GetGasLimit ¶
func (*CallMsg) GetGasPrice ¶
func (*CallMsg) SetDataHex ¶
func (*CallMsg) SetGasLimit ¶
func (*CallMsg) SetGasPrice ¶
func (*CallMsg) SetValueHex ¶
Set amount with hexadecimal number
func (*CallMsg) TransferToTransaction ¶
func (msg *CallMsg) TransferToTransaction() *Transaction
type Erc20TxParams ¶
type Transaction ¶
type Transaction struct { Nonce string // nonce of sender account GasPrice string // wei per gas GasLimit string // gas limit To string // receiver Value string // wei amount Data string // contract invocation input data // EIP1559, Default is "" MaxPriorityFeePerGas string }
func NewTransaction ¶
func NewTransaction(nonce, gasPrice, gasLimit, maxPriorityFeePerGas, to, value, data string) *Transaction
func NewTransactionFromHex ¶
func NewTransactionFromHex(hexData string) (*Transaction, error)
func (*Transaction) GetRawTx ¶
func (tx *Transaction) GetRawTx() (*types.Transaction, error)
func (*Transaction) MaxFee ¶
func (tx *Transaction) MaxFee() string
This is an alias property for GasPrice in order to support EIP1559
func (*Transaction) SetMaxFee ¶
func (tx *Transaction) SetMaxFee(maxFee string)
This is an alias property for GasPrice in order to support EIP1559
func (*Transaction) TotalAmount ¶
func (tx *Transaction) TotalAmount() string
@return gasPrice * gasLimit + value
type TransactionByHashResult ¶
Click to show internal directories.
Click to hide internal directories.