diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index f0406cc6f7ea..80bf2c0c8a29 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1240,6 +1240,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param } } fields["transactions"] = transactions + // inclTx also expands withdrawals + // TODO @MariusVanDerWijden: add a second flag similar to inclTx to enable withdrawals + fields["withdrawals"] = block.Withdrawals() } uncles := block.Uncles() uncleHashes := make([]common.Hash, len(uncles))