Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockHeader ¶
type BlockHeader struct { ID int `json:"id"` Jsonrpc string `json:"jsonrpc"` Result struct { Author string `json:"author"` Difficulty string `json:"difficulty"` ExtraData string `json:"extraData"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Hash string `json:"hash"` LogsBloom string `json:"logsBloom"` Miner string `json:"miner"` MixHash string `json:"mixHash"` Nonce string `json:"nonce"` Number string `json:"number"` ParentHash string `json:"parentHash"` ReceiptsRoot string `json:"receiptsRoot"` SealFields []string `json:"sealFields"` Sha3Uncles string `json:"sha3Uncles"` Size string `json:"size"` StateRoot string `json:"stateRoot"` Timestamp string `json:"timestamp"` TransactionsRoot string `json:"transactionsRoot"` } `json:"result"` }
BlockHeader Returned value from the RPC of the block header
type BlockInternals ¶
BlockInternals - carries both the traces and the logs for a block
type BlockLogs ¶
type BlockLogs struct { Jsonrpc string `json:"jsonrpc"` Result []struct { Address string `json:"address"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` Data string `json:"data"` LogIndex string `json:"logIndex"` Removed bool `json:"removed"` Topics []string `json:"topics"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` TransactionLogIndex string `json:"transactionLogIndex"` Type string `json:"type"` } `json:"result"` ID int `json:"id"` }
BlockLogs Returned value from the RPC containing all the logs for a given block.
type BlockTraces ¶
type BlockTraces struct { Jsonrpc string `json:"jsonrpc"` Result []struct { Action struct { CallType string `json:"callType"` // call From string `json:"from"` Gas string `json:"gas"` Input string `json:"input"` To string `json:"to"` Value string `json:"value"` Author string `json:"author"` // reward RewardType string `json:"rewardType"` Address string `json:"address"` // suicide Balance string `json:"balance"` RefundAddress string `json:"refundAddress"` Init string `json:"init"` // create } `json:"action,omitempty"` BlockHash string `json:"blockHash"` BlockNumber int `json:"blockNumber"` Error string `json:"error"` Result struct { GasUsed string `json:"gasUsed"` // call Output string `json:"output"` Address string `json:"address"` // create } `json:"result"` Subtraces int `json:"subtraces"` TraceAddress []interface{} `json:"traceAddress"` TransactionHash string `json:"transactionHash"` TransactionPosition int `json:"transactionPosition"` Type string `json:"type"` } `json:"result"` ID int `json:"id"` }
BlockTraces Returned value from the RPC containing all the traces for a given block.
type OptionsT ¶
type OptionsT struct {
// contains filtered or unexported fields
}
options_t Structure to carry command line and config file options
var Options OptionsT
Options Carries the configuration options (from both command line and config file)
type RPCPayload ¶
type RPCPayload struct { Jsonrpc string `json:"jsonrpc"` Method string `json:"method"` Params `json:"params"` ID int `json:"id"` }
RPCPayload Data structure used during calls to the RPC.
type TransReceipt ¶
type TransReceipt struct { Jsonrpc string `json:"jsonrpc"` Result struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` From string `json:"from"` GasUsed string `json:"gasUsed"` Logs []interface{} `json:"logs"` LogsBloom string `json:"logsBloom"` Root string `json:"root"` Status interface{} `json:"status"` To interface{} `json:"to"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` } `json:"result"` ID int `json:"id"` }
TransReceipt - a given transaction's receipt
Click to show internal directories.
Click to hide internal directories.