Skip to main content

Questions tagged [json-rpc]

A remote-procedure-call (RPC) interface provided by the Bitcoin Core wallet and it's companion software bitcoind. This RPC interface uses the Javascript Object Notation (JSON) serialization format for data and allows other software programs to interact with Bitcoin-Core.

0 votes
0 answers
23 views

How to make rpc call to own node and get balance [closed]

I have set up own dogecoin node on Debian 12 and then tried to get wallet balance by making rpc call. But it returns zero balance. $ curl --user user:password --data-binary '{"jsonrpc": &...
Andriy Pronin's user avatar
2 votes
0 answers
33 views

Will Bitcoin Core still respond quickly to a rpc-call when new blocks come in fast?

I had my Core Lightning node crash a few times because Bitcoin Core didn't respond in time to a rpc-call. I found that this happens when new blocks are generated quickly, like below: 849683 2024-06-...
sumBTC's user avatar
  • 41
3 votes
1 answer
87 views

bitcoin-cli listtransactions fee amount is way off, why?

I am using the default signet network, my txid is 3923927eb3b6213bab5d0bee8364a87eafe357cb4d42ce6c587f0372735c7ff0. bitcoin-cli listtransactions shows a fee of 0.00596777 when in reality the fee is 0....
Fontaine's user avatar
  • 520
1 vote
1 answer
28 views

"Error parsing JSON": how to use `testmempoolaccept` on Windows?

The documentation for bitcoin-cli testmempoolaccept suggests bitcoin-cli testmempoolaccept '["0100000001abcd..."]' but that throws Error parsing JSON. I have tried numerous variations of ...
Captain Fantastic's user avatar
0 votes
0 answers
42 views

Connecting bitcoind and BTC RPC Explorer in docker

Apologies if this isn't so much a bitcoin question, as a docker or RPC explorer one. Although my trouble seems to be correctly exposing bitcoind RPC so I'm hoping someone might be able to illuminate ...
Vole Delighted's user avatar
0 votes
1 answer
41 views

Has There Been a Change in Bitcoin RPC's scriptPubKey Address Field

So I have not been very into Bitcoin for a long time. My seniors worked on Bitcoin RPC methods in my project back in 2018-2019. At that time, the response of getblock was fetched, then we fetched the ...
Sudhanshu Sinha's user avatar
2 votes
1 answer
57 views

What does unbroadcastcount in getmempoolinfo mean?

What is the unbroadcastcount in getmempoolinfo? Does it track only the transactions from my wallet that are unbroadcasted? Or does it track all transactions that are not broadcasted which I may have ...
sanket1729's user avatar
  • 1,402
1 vote
0 answers
39 views

How can I sign custom tapscript leaf using bitcoind `walletprocesspsbt` rpc endpoint?

I have taproot output which can be spend through 3 different script paths. In general all of those script paths are some kind of multisig. In my wallet I have key which is part of those multi-sigs. ...
Konrad Staniec's user avatar
0 votes
0 answers
28 views

Is it possible to run RPC commands without installing the entire Bitcoind

I am interested to run bitcoin mining https://github.com/jgarzik/pyminer/blob/master/pyminer.py , I understand that it inherently calls bitcoind to run some RPC commands to broadcast once a nonce is ...
Jacksparaaw's user avatar
1 vote
0 answers
35 views

scantxoutset timing out

I have extremely simple python code to use scantxoutset. The problem is that when I debug in pycharm it keeps timing out. rpc_connection = rpcConnector.rpcConnect() json_req = [{"desc": &...
user2880722's user avatar
1 vote
1 answer
85 views

Question about nextblockhash in bitcoin block struct

In the book "Mastering Bitcoin" (3rd edition), on page 46, there is an element nextblockhash in the block struct after issuing a getblock command, anyone can explain it and how to use it. ...
fa william's user avatar
3 votes
1 answer
101 views

How does the initialblockdownload field in the getblockchaininfo RPC work?

Let's say I have a fully synced node that returns "initialblockdownload": false. If I turn it off, will it show "initialblockdownload": true when I start the node again? In other ...
sanket1729's user avatar
  • 1,402
0 votes
0 answers
23 views

How can I tell who mined a certain block? [duplicate]

Just like title says, how can I tell who mined a certain block. Is it just the decoded hex value of the OP_RETURN in the first tx?
user2880722's user avatar
2 votes
1 answer
78 views

Using sendtoaddress is failing using json-rpc and I don't know why

The steps i followed are i first load the wallet in a different method which works, then i check the balance of the wallet in a different method which works, and then I call this sendbitcoin method(...
Tim Lieberman's user avatar
0 votes
0 answers
44 views

High end electrum servers directly reading blk.dat files

These days, high end electrum servers directly read blk.dat files straight from Bitcoin Core's blocks folder in the process of creating their initial internal indexes. I guess they also do in the ...
RooSoft's user avatar
  • 167

15 30 50 per page