@@ -169,6 +169,7 @@ type BlockRes struct {
169169 LogsBloom * hexdata `json:"logsBloom"`
170170 TransactionRoot * hexdata `json:"transactionsRoot"`
171171 StateRoot * hexdata `json:"stateRoot"`
172+ ReceiptRoot * hexdata `json:"receiptRoot"`
172173 Miner * hexdata `json:"miner"`
173174 Difficulty * hexnum `json:"difficulty"`
174175 TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -192,6 +193,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
192193 LogsBloom * hexdata `json:"logsBloom"`
193194 TransactionRoot * hexdata `json:"transactionsRoot"`
194195 StateRoot * hexdata `json:"stateRoot"`
196+ ReceiptRoot * hexdata `json:"receiptRoot"`
195197 Miner * hexdata `json:"miner"`
196198 Difficulty * hexnum `json:"difficulty"`
197199 TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -212,6 +214,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
212214 ext .LogsBloom = b .LogsBloom
213215 ext .TransactionRoot = b .TransactionRoot
214216 ext .StateRoot = b .StateRoot
217+ ext .ReceiptRoot = b .ReceiptRoot
215218 ext .Miner = b .Miner
216219 ext .Difficulty = b .Difficulty
217220 ext .TotalDifficulty = b .TotalDifficulty
@@ -236,6 +239,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
236239 LogsBloom * hexdata `json:"logsBloom"`
237240 TransactionRoot * hexdata `json:"transactionsRoot"`
238241 StateRoot * hexdata `json:"stateRoot"`
242+ ReceiptRoot * hexdata `json:"receiptRoot"`
239243 Miner * hexdata `json:"miner"`
240244 Difficulty * hexnum `json:"difficulty"`
241245 TotalDifficulty * hexnum `json:"totalDifficulty"`
@@ -256,6 +260,7 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
256260 ext .LogsBloom = b .LogsBloom
257261 ext .TransactionRoot = b .TransactionRoot
258262 ext .StateRoot = b .StateRoot
263+ ext .ReceiptRoot = b .ReceiptRoot
259264 ext .Miner = b .Miner
260265 ext .Difficulty = b .Difficulty
261266 ext .TotalDifficulty = b .TotalDifficulty
@@ -291,6 +296,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes {
291296 res .LogsBloom = newHexData (block .Bloom ())
292297 res .TransactionRoot = newHexData (block .TxHash ())
293298 res .StateRoot = newHexData (block .Root ())
299+ res .ReceiptRoot = newHexData (block .ReceiptHash ())
294300 res .Miner = newHexData (block .Coinbase ())
295301 res .Difficulty = newHexNum (block .Difficulty ())
296302 res .TotalDifficulty = newHexNum (block .Td )
0 commit comments