Questions tagged [json-rpc]
This tag should be used for questions relating to the Bitcoin Core/bitcoind JSON-RPC interface.
813
questions
2
votes
2
answers
30
views
Electrum load_wallet through json-rpcs does not accept "wallet" parameter
When calling load_wallet through json-rpc, using "wallet" param with a path to the wallet throws an error:
Commands.load_wallet() got an unexpected keyword argument 'wallet'
In the same ...
2
votes
1
answer
57
views
Why is wtxid called "hash" in Bitcoin Core's getrawtransaction RPC?
In the industry txid is known as "transaction hash". Why wasn't the "hash" field called "wtxid"?
1
vote
1
answer
100
views
Which RPC method is used to mine bitcoin?
Which of the following RPC methods is used to mine bitcoin and receive its reward?
generateblock
submitblock
submitheader
What is the difference between these methods?
1
vote
1
answer
44
views
Submitblock input parameters similar to getblock?
I have installed Bitcoin Core on my laptop.
Now open bitcoin daemon and do following:
First i run getbestblockhash to get the last block hash on the Blockchain. We call this hash as BestBlockHash.
...
3
votes
1
answer
80
views
Optimising blockchain parsing with rpc + python
I have a python app to track and store utxo in a simple/flat structure that looks like this...
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
# track the utxo
trackUtxoList = []
...
0
votes
0
answers
34
views
Bitcoin RPC BrokenPipeError on specific block/transaction
I have a simple python app running through the blockchain as follows...
rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user, rpc_password))
for b in range(blockStart, ...
0
votes
1
answer
33
views
Edge cases when dealing with incoming Bitcoin transactions
I have an app that accepts Bitcoin payments. After some research I've settled with using Bitcoin Core's bitcoind with RPC to manage new addresses and verify for new transactions for those addresses.
...
1
vote
1
answer
87
views
How to import a descriptor into a wallet?
I am trying to import a descriptor into a blank wallet but I get a JSON parsing error.
$ cli createwallet "test" false true "" false true
$ cli -rpcwallet=test importdescriptors '[{...
1
vote
1
answer
105
views
How can I use the RPC API on Mac?
This might be simple question but I would highly appreciate if anyone can bring their wisdom on this.
If you install bitcoin-core software through https://bitcoincore.org/, it gives you dmg file that ...
2
votes
1
answer
111
views
Are there public RPC node providers?
Are there public RPC node providers similar to Alchemy or Ankr, but for Bitcoin?
I just want to query basic block data and so on without having to manage my own full node. Security does not matter in ...
1
vote
0
answers
30
views
Descriptor Wallets are way more confusing than legacy [duplicate]
how do you dump backup into a json file?
then how do you load the json file into backup?
" How to create the descriptors wallet? createwallet("my_wallet",
False, False, "", ...
0
votes
0
answers
78
views
Rpc work Queue Exceeded
I am trying to make rpc calls to an Rpc Interface "listunspent". So i get this Error: ESOCKETTIMEDOUT. I checked the bitcoin node debug file and saw the error message "Depth queue work ...
0
votes
1
answer
70
views
bitcoind with rpcauth: how to use rpcauth with curl?
In bitcoin.conf, if the rpcuser/rpcpassword is specified, I can access the RPC via curl like this:
curl --data-binary '{"jsonrpc": "1.0", "id": "test", "...
2
votes
1
answer
180
views
What's the difference between 'rpcallowip' and 'rpcbind'?
What's the difference between these two settings in the bitcoin conf file?
'rpcallowip' and 'rpcbind'
2
votes
1
answer
159
views
InvalidateBlock RPC call behavior with Bitcoin Core
I'm currently implementing the rpc call invalidateblock on btcd, an alternate Bitcoin full node implementation. I'm trying to figure out how Bitcoin Core handles branch selection on reorganizations ...