Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountMap ¶
type AccountMap map[string]struct { Code string `json:"code"` Storage map[string]string `json:"storage"` Balance string `json:"balance"` Authorising bool `json:"authorising"` Nonce uint64 `json:"nonce,omitempty"` }
AccountMap holds the alloc section of the genesis file
type JSONReceipt ¶ added in v0.3.6
type JSONReceipt struct { Root ethcommon.Hash `json:"root"` TransactionHash ethcommon.Hash `json:"transactionHash"` From ethcommon.Address `json:"from"` To *ethcommon.Address `json:"to"` GasUsed uint64 `json:"gasUsed"` CumulativeGasUsed uint64 `json:"cumulativeGasUsed"` ContractAddress ethcommon.Address `json:"contractAddress"` Logs []*ethTypes.Log `json:"logs"` LogsBloom ethTypes.Bloom `json:"logsBloom"` Status uint64 `json:"status"` }
JSONReceipt is the JSON structure for the return receipt from the tx end point
func ToJSONReceipt ¶ added in v0.3.3
func ToJSONReceipt(receipt *ethTypes.Receipt, tx *ethTypes.Transaction, signer ethTypes.Signer) *JSONReceipt
ToJSONReceipt uses a transaction, its from address, and a receipt to create a JSONReceipt. The "from" addressed is derived from the transaction's signature.
Click to show internal directories.
Click to hide internal directories.