<p>I would like to modify a bitcoin RPC, for example getblocktemplate to show only a single information, in this case: &quot;mintime&quot;: 1594178622</p>
<p>I tried to go into bitcoin/src/rpc/mining.cpp</p>
<p>and I commented out all the info I was seeing under : static UniValue getblocktemplate(const JSONRPCRequest&amp; request)
leaving only &quot;mintime&quot; and I rebuilt bitcoin, but calling getblocktemplate gave the same result with all the info...</p>
<p>So I'm wondering what I am doing correctly</p>
<p>Any input would be greatly appreciated.</p>

CC BY-SA 4.0
2020-07-08T04:34:21.640Z
What are you actually trying to achieve? This sounds like an http://xyproblem.info
Raghav Sood
CC BY-SA 4.0
2020-07-08T13:03:43.603Z
I want to learn how to modify a rpc call to output the information that I want. Should I just comment out lines in the mining.cpp and rebuild or do I have anything else to do to remove that information from the output. My goal would be to acces information a little bit faster. I hope that if I ask for  one number instead of hundreds of lines of data it will be a few milliseconds faster.
Strob
<json-rpc>
How to customize a bitcoin rpc to show only some information (filtering out the rest)?
Strob
# How to customize a bitcoin rpc to show only some information (filtering out the rest)?

(Asked by: username_0 on 2020-07-08)

I would like to modify a bitcoin RPC, for example getblocktemplate to show only a single information, in this case: "mintime": 1594178622

I tried to go into bitcoin/src/rpc/mining.cpp

and I commented out all the info I was seeing under : static UniValue getblocktemplate(const JSONRPCRequest& request)
leaving only "mintime" and I rebuilt bitcoin, but calling getblocktemplate gave the same result with all the info...

So I'm wondering what I am doing correctly

Any input would be greatly appreciated.

**Tags:** json-rpc

> **Comments:**
> **username_1**: What are you actually trying to achieve? This sounds like an http://xyproblem.info  
> **username_0**: I want to learn how to modify a rpc call to output the information that I want. Should I just comment out lines in the mining.cpp and rebuild or do I have anything else to do to remove that information from the output. My goal would be to acces information a little bit faster. I hope that if I ask for  one number instead of hundreds of lines of data it will be a few milliseconds faster.  

---

## 0 answers

