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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

What is the role of "Invalidateblock" RPC command and are there any possible transaction validation issues with regard to this?

I have been testing various RPC commands on bitcoin. The "RPC API Reference" page well demonstrates almost all of the commands. But by reading the source code (bitcoin v27.0), I noticed that ...
paranoid's user avatar
  • 177
0 votes
2 answers
42 views

Is there a resource that describes the RPC API in more detail?

I'm trying to understand the API as it is provided by developer.bitcoin.org, but I don't quite understand what some of the commands actually do and require.
CoinZwischenzug's user avatar
1 vote
0 answers
27 views

How to use local Bitcoin wallet with remote bitcoind node for transaction creation

I'm trying to manage a Bitcoin wallet on my local machine using bitcoin-cli, but my local node isn't and cannot be fully synced and can't be pruned due to the need for historical UTXO data to build ...
Barney Chambers's user avatar
0 votes
1 answer
42 views

Local broadcast cannot be found in mempool

After sending a raw transaction (SendRawTransaction (raw_tx, 100000)) and after local broadcasting, the transaction does not show up on platforms such as mempool.space. What might be the reason?
bit big's user avatar
-1 votes
1 answer
35 views

using curl to access the API

when I use a curl command to send json-rpc requst. I get prompted for a username and password but afterwards I get no response. Do I need to run a full node in order to do Bitcoin mining?
romeo80249's user avatar
2 votes
1 answer
40 views

BIP for submitpackage rpc call

Is there a BIP for submitpackage RPC call? I do see BIP-431 for TRUC, and cannot find one for submitpackage.
Kevin's user avatar
  • 67
2 votes
0 answers
77 views

Clarity on rpc flag design to pass boolean arguments

I am working with RPCs flags that may have a boolean argument which is extracted using GetBoolArg and there are various ways to pass Boolean arguments. For example -fastprune=1 // true -fastprune=...
Prabhat Verma's user avatar
2 votes
0 answers
30 views

Identifying Test-Only RPC Arguments

I am trying to identify test-only rpc arguments in init.cpp and wanted to confirm if the test-only options are those with ArgsManager::DEBUG_ONLY with OptionsCategory::DEBUG_TEST, or ArgsManager::...
Prabhat Verma's user avatar
2 votes
1 answer
82 views

Most efficient way to check if utxos are consumed in mempool txs using core rpc and rust

I try to concurrently monitor a bunch of signed but non published transactions. I want to detect asap if any of the inputs into these bond transactions have been used in another transaction in my ...
f321x's user avatar
  • 35
2 votes
0 answers
41 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
102 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
  • 522
1 vote
1 answer
57 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
71 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
61 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,412
1 vote
0 answers
56 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
31 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
42 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
94 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
112 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,412
0 votes
0 answers
24 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
92 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
47 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
2 votes
1 answer
108 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
143 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
72 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
135 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
83 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
126 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
67 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
84 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
356 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
119 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
139 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
1k 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
20 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
70 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
335 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
256 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
95 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
90 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
534 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
59 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
184 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
1 vote
1 answer
144 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
  • 359
2 votes
1 answer
218 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
262 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
161 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
265 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

1
2 3 4 5
18