Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 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
21 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
0 answers
20 views

Bitcoin RPC method getnewaddress not allowed

I was trying to create a wallet address and secret from the Bitcoin public RPC endpoint ( getBlock io ). and using this method :getnewaddress, but it seems now this method is not allowed. So, Is there ...
Sudhanshu Sinha's user avatar
2 votes
1 answer
53 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
30 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
25 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
30 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
80 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
87 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
64 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
41 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
  • 157
2 votes
1 answer
75 views

RPC Batch call abruptly stopped working

I've had this code that was working less than a week ago. No changes at all on my PC or in the code and it just abruptly stopped working normal (single) RPC calls work fine but batch does not. All ...
user2880722's user avatar
2 votes
0 answers
102 views

Bitcoin Core RPC server not working

I have downloaded and installed and got up and running a bitcoin core node, and it is running fine as far as people are connecting to it on port 8333 just fine. However I can't seem to connect to it ...
The Journey's user avatar
0 votes
1 answer
65 views

Create transaction and so on

Please explain to me what should be the procedure for working with a bitcoin-cli / RPC wallet. For example: Create a wallet Get a new address Sending BTC: creating a transaction, signing a ...
Valentin Borisenko's user avatar
0 votes
1 answer
85 views

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server?

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server? That I can use it with bitcoind and bitcoind-cli and RPC (https://en.bitcoin.it/wiki/Original_Bitcoin_client/...
Valentin Borisenko's user avatar
0 votes
1 answer
63 views

listreceivedbyaddress - wallet file not specified error

So to start I have very little experience and this may be a simple answer but I can't find it easily. I suspect that I am using the wrong thing to achieve what I am trying to do. I'm parsing out the ...
user2880722's user avatar
2 votes
1 answer
65 views

Importdescriptors not working (JSON parsing error)

I have been trying to setup a watch-only wallet on Bitcoin Core using the importdescriptors command. To put this into context, I'm trying to use the watch-only wallet on my online machine to create ...
MostlypeacefulBitcoin's user avatar
0 votes
1 answer
61 views

Difference between savemempool vs getrawmempool information

Does the savemempool have any additional information than the getrawmempool with verbose=true output?
WhoIsNinja's user avatar
0 votes
1 answer
76 views

Modifying mempool with an external program

Is it possible to detect stamps/inscriptions/brc-20 txs from the rpc method getrawmempool with verbose true? Is it possible to develop a small external utility that could access and modify the ...
WhoIsNinja's user avatar
3 votes
2 answers
327 views

Why won't bumpfee accept my new fee_rate?

On a regtest node, I'm trying to bumpfee a transaction that have 1 sat/vB fee. I want to bump the fee to 2 sat/vB, but the wallet complains, saying: error code: -8 error message: Insufficient total ...
Kalle Rosenbaum's user avatar
3 votes
1 answer
104 views

Mnemonic from Node.js app not restoring in other wallets

I'm working on a Node.js app that makes RPC calls to my node, and I'm having trouble restoring a mnemonic created with bitcoinjs-lib, bip32, and bip39. First, I create a blank wallet that accepts ...
Cannabijoy's user avatar
1 vote
2 answers
108 views

Why is hosting a public bitcoind RPC node not more popular?

Seems like it would be a great way to expand the usability of Bitcoin, i.e. tell your friends to send their transactions to your node when they are not at home and then their client software only ...
jason's user avatar
  • 21
0 votes
1 answer
800 views

Is it real BTC or fake [duplicate]

All, I received some BTC to my coinbase wallet after someone asked me to setup custom network using the below setting. I received the BTC but I couldn't transfer to any other wallet and the says ...
san's user avatar
  • 1
0 votes
0 answers
19 views

need help with BTC transfer [duplicate]

All, I received some BTC to my coinbase wallet after someone asked me to setup custom network using the below setting. I received the BTC but I couldn't transfer to any other wallet and the says ...
san's user avatar
  • 1
0 votes
0 answers
67 views

More detailed historical trx info (fee, sat per byte, transferred value in trx, from, to) from electrumx server?

I run bitcoin full node and Electrumx server over it for getting historical data. The methods that I frequently used were "blockchain.scripthash.get_history" and "blockchain.transaction....
mjdimn's user avatar
  • 63
3 votes
2 answers
240 views

Bitcoin Core RPC for transactions of a new address without rescanning

I currently use the importaddress wallet RPC on Bitcoin Core to rescan the transaction history related to an address, which I then query using listtransactions. The address import takes about a hour ...
mjdimn's user avatar
  • 63
3 votes
1 answer
230 views

Is there a cache mechanism with getrawtransaction?

I am currently working on a script that parses every BTC transaction from the beginning of the blockchain. My goal is to record summaries about each transaction in database, after synthesizing it. ...
Lev's user avatar
  • 75
2 votes
1 answer
90 views

Retention and Accessibility of Disconnected Block and Transaction Data

In the context of a fully indexed, non-pruned Bitcoin Core node, I am exploring the duration and persistence of data related to disconnected blocks and their contained transactions due to a blockchain ...
Jeff Trimmer's user avatar
0 votes
1 answer
79 views

bitcoin rpc submitblock merkle root + raw tx (bad-txnmrklroot)

I wanted to test the submitblock rpc call in regtest but I seem to have some issues with the transactions I try to submit. I have the following raw transactions: ...
FearXenon's user avatar
1 vote
1 answer
311 views

How should I be using rpcbind and rpcallowip (bitcoin.conf)

I have been very confused on how to use the rpcbind and rpcallowip arguments for bitcoind. I have a bitcoin core node running on a raspberrypi and I want it to accept json-rpc calls from one of my ...
NeonTears's user avatar
0 votes
0 answers
52 views

gettransaction RPC call does not include all balance changes

I am struggling with strange behavior of Bitcoin Core JSON-RPC call gettransaction. AFAIK, .details array of returned JSON should include all balance changes. If I send some amount to myself (...
Vojta Myslivec's user avatar
0 votes
0 answers
114 views

Accessing RPC with RPC Auth or .cookie

Starting to interface with my btc node and I'm getting an RPC error 401 unoathorized error when running the below code. My RPC_Auth (rpcuser:rpcpassword) is correct. Is there something else I need ...
chump365's user avatar
0 votes
0 answers
103 views

Confusion in testing RPC and curl

Please forgive the ignorance of a beginner. I started a test network (bitcoind -testnet rpcuser=zz) When I run bitcoin-cli -testnet getbestblockhash, everything works fine and I get the correct ...
张荣海's user avatar
1 vote
1 answer
135 views

What do the files in bitcoin/src/rpc/ do?

I know that RPC stands for Remote Procedure Call. Does Bitcoin Core do RPCs with other nodes on the network?
Eoin's user avatar
  • 349
2 votes
1 answer
154 views

Where can I find the list of all possible sendrawtransaction RPC error codes & messages?

Where can I find the list of all possible sendrawtransaction RPC error codes & messages? Such as this: {"code":-22,"message":"TX decode failed. Make sure the tx has at ...
jiamijiang's user avatar
0 votes
1 answer
220 views

No connection could be made because the target machine actively refused it

Trying to make a POST request with python from my desktop to my Bitcoin node running on raspberrypi. The two devices are running on the same network both connected by ethernet. I have been able to ...
NeonTears's user avatar
0 votes
1 answer
115 views

Bitcoin Core RPC cURL - importdescriptors failing on loaded wallet

I am running the following request to load a wallet. curl --location 'user:[email protected]:8332/wallet/test_multisig"' \ --header 'Content-Type: text/plain' \ --data '{ "jsonrpc&...
Joe's user avatar
  • 113
0 votes
1 answer
1k views

How to differentiate between BTC transactions and BRC20 transactions on a blockchain?

How to differentiate between BTC transactions and BRC20 transactions on a blockchain using the RCP interface? This is a transaction record that contains BRC20 tokens which I found on a blockchain ...
Mashaji's user avatar
1 vote
1 answer
171 views

How to set up my Bitcoin RPC address once ive installed bitcoin core?

I have just set up bitcoin core on my macbook and im wondering how to get my http://login:password@ip:port address set up so i can interact with it. I am a complete noob to running a btc node so some ...
user143476's user avatar
0 votes
0 answers
1k views

timeout on transient error: Could not connect to the server 127.0.0.1:8332

I finished installing Bitcoin on a raspberry pi a couple days ago and have a problem. Everything worked fine yesterday (I was able to run bitcoin-cli commands just fine) but now whenever I run "...
NeonTears's user avatar
0 votes
0 answers
53 views

Bitcoin Payment Processing

I'm currently attempting to create a website where Bitcoin Core is used as a payment processor. I initially planned on making the user input a xpub, but after seeing issues like gap limit on Exodus, I ...
bitcoin is undocumented asf's user avatar
0 votes
1 answer
88 views

bitcoin-cli: Get transaction count of wallet without listtransactions

I am trying to find a way to get the number of transactions returned from the JSONRPC interface without relying on listtransactions. The reason for this is that if the wallet has too many transactions ...
Zenul_Abidin's user avatar
0 votes
0 answers
54 views

How do I create an p2pkh raw transaction using the latest Bitcoin core version? Any help? Thanks

Like the title says I need of help here, how can I create an p2pkh raw transaction using the latest version of Bitcoin core is it even possible? What are the required fields do I need to use the ...
davonte lawrence's user avatar
3 votes
1 answer
123 views

Does 'listunspent 0' return my non-mempool unconfirmed outputs?

If I have an unconfirmed transaction with a UTXO that belongs to my Bitcoin Core wallet, and that transaction is evicted from my mempool, for example due to high fee-pressure, will bitcoin-cli ...
Kalle Rosenbaum's user avatar
1 vote
3 answers
728 views

Where can I get a free RPC/public RPC to access Bitcoin mempool? [closed]

I'm interested in finding a reliable and free source that provides an RPC interface or an accessible API to retrieve information from the Bitcoin mempool. Any suggestions or recommendations would be ...
Jesus Silva's user avatar
1 vote
0 answers
78 views

walletprocesspsbt rpc not signing psbt tx

After extensive regtest testing I've been unable to reproduce this issue. This is a gist to regtest psbt commands that do work. https://gist.github.com/miketwenty1/ecb9acdbca858878f1856b75493fef4c ...
Michael Tidwell's user avatar
1 vote
1 answer
761 views

Read ordinal transaction data

I want to read an ordinal transaction on the Bitcoin blockchain and see its payload data. Say I use the getrawtransaction RPC Method for bitcoin receiving a JSON of the form specified here. Where ...
BAR's user avatar
  • 119
2 votes
2 answers
152 views

Bitcoind python connection

I'm trying to connect to bitcoind with python3. I'm currently following the instructions of Antonopolous book. This is my code on an IDE: from bitcoin.rpc import RawProxy p = RawProxy() info = p....
Pariya's user avatar
  • 41
1 vote
2 answers
184 views

Retrieve address corresponding to pubkey using bitcoin-cli/RPC

We are using jgarzik/python-bitcoinrpc and in some cases curl to retrieve data from bitcoin core using RPC. However, for some txns where pubkey is used, bitcoin-cli/rpc gives no address in ...
curious's user avatar
  • 43

1
2 3 4 5
18