Documentation ¶
Index ¶
- type Account
- type Block
- type CallParams
- type Chain
- type ContractInteractionParams
- type FeeHistoryResult
- type GetBlockParams
- type GetBlockTransactionCountParams
- type NewPublicClientParams
- type NewRpcClientParams
- type NewWalletClientParams
- type RawBlock
- type RawTransaction
- type ReadContractParams
- type RpcError
- type RpcRequest
- type RpcResponse
- type SendTxOptions
- type SimulateTxResult
- type Transaction
- type TxData
- type TxInteractionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Address string PrivateKey *ecdsa.PrivateKey }
type Block ¶
type Block struct { Number *big.Int `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Nonce string `json:"nonce"` Sha3Uncles string `json:"sha3Uncles"` LogsBloom string `json:"logsBloom"` TransactionsRoot string `json:"transactionsRoot"` StateRoot string `json:"stateRoot"` Miner string `json:"miner"` Difficulty *big.Int `json:"difficulty"` TotalDifficulty *big.Int `json:"totalDifficulty"` ExtraData string `json:"extraData"` Size *big.Int `json:"size"` GasLimit *big.Int `json:"gasLimit"` GasUsed *big.Int `json:"gasUsed"` Timestamp *big.Int `json:"timestamp"` Transactions []Transaction `json:"transactions"` Uncles []string `json:"uncles"` }
type CallParams ¶
type CallParams struct { From string `json:"from"` To string `json:"to"` Gas uint64 `json:"gas,omitempty"` GasPrice *big.Int `json:"gasPrice,omitempty"` Value *big.Int `json:"value"` Data []byte `json:"data"` }
eth_call params
func (CallParams) MarshalJSON ¶
func (c CallParams) MarshalJSON() ([]byte, error)
type FeeHistoryResult ¶
type GetBlockParams ¶
type NewPublicClientParams ¶
type NewPublicClientParams struct {
RpcUrl string
}
type NewRpcClientParams ¶
type NewWalletClientParams ¶
type RawBlock ¶
type RawBlock struct { Number string `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Nonce string `json:"nonce"` Sha3Uncles string `json:"sha3Uncles"` LogsBloom string `json:"logsBloom"` TransactionsRoot string `json:"transactionsRoot"` StateRoot string `json:"stateRoot"` Miner string `json:"miner"` Difficulty string `json:"difficulty"` TotalDifficulty string `json:"totalDifficulty"` ExtraData string `json:"extraData"` Size string `json:"size"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Timestamp string `json:"timestamp"` Transactions []RawTransaction `json:"transactions"` Uncles []string `json:"uncles"` }
type RawTransaction ¶
type ReadContractParams ¶
type RpcRequest ¶
type RpcResponse ¶
type RpcResponse struct { Jsonrpc string `json:"jsonrpc"` Result json.RawMessage `json:"result"` Error *RpcError `json:"error"` Id int `json:"id"` }
type SendTxOptions ¶
type SendTxOptions struct {
Simulate bool
}
type SimulateTxResult ¶
type SimulateTxResult struct { Tx *ethTypes.Transaction Result string }
type Transaction ¶
type TxInteractionParams ¶
Click to show internal directories.
Click to hide internal directories.