/
rpc_block_result.go
52 lines (50 loc) · 1.51 KB
/
rpc_block_result.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package types
type TxResult struct {
Code int `json:"code"`
Data string `json:"data"`
Log string `json:"log"`
Info string `json:"info"`
GasWanted string `json:"gas_wanted"`
GasUsed string `json:"gas_used"`
Events []struct {
Type string `json:"type"`
Attributes []struct {
Key string `json:"key"`
Value string `json:"value"`
Index bool `json:"index"`
} `json:"attributes"`
} `json:"events"`
Codespace string `json:"codespace"`
}
type RPCBlockResult struct {
Jsonrpc string `json:"jsonrpc"`
ID int `json:"id"`
Result struct {
Height string `json:"height"`
TxsResults []TxResult `json:"txs_results"`
BeginBlockEvents []struct {
Type string `json:"type"`
Attributes []struct {
Key string `json:"key"`
Value string `json:"value"`
Index bool `json:"index"`
} `json:"attributes"`
} `json:"begin_block_events"`
EndBlockEvents any `json:"end_block_events"`
ValidatorUpdates any `json:"validator_updates"`
ConsensusParamUpdates struct {
Block struct {
MaxBytes string `json:"max_bytes"`
MaxGas string `json:"max_gas"`
} `json:"block"`
Evidence struct {
MaxAgeNumBlocks string `json:"max_age_num_blocks"`
MaxAgeDuration string `json:"max_age_duration"`
MaxBytes string `json:"max_bytes"`
} `json:"evidence"`
Validator struct {
PubKeyTypes []string `json:"pub_key_types"`
} `json:"validator"`
} `json:"consensus_param_updates"`
} `json:"result"`
}