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
1 answer
45 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
  • 11
0 votes
0 answers
176 views

Is it real BTC or fake

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
45 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
142 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
180 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
  • 65
2 votes
1 answer
78 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
38 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
59 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
49 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
33 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
46 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
124 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 McQuinn's user avatar
2 votes
1 answer
83 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
90 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
61 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
335 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
81 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
312 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
50 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
56 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
37 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
92 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
235 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
46 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 votes
1 answer
229 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
  • 99
2 votes
2 answers
97 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
154 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 vote
0 answers
141 views

How to access bitcoin server's RPC interface remotely?

I am running a bitcoin daemon (launched via plist file) on MacOS with these parameters: -server (to accept command line and JSON-RPC commands) -daemon (to run in the background as a daemon and accept ...
Claudio Floreani's user avatar
0 votes
0 answers
117 views

Interpreting descriptors from bitcoinrpc for python

I've been running through the Bitcoin blockchain like this and comparing the descriptors to https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md... rpc_connection = AuthServiceProxy("...
d3wannabe's user avatar
  • 275
2 votes
2 answers
149 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 ...
Meglio's user avatar
  • 287
2 votes
1 answer
102 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"?
harbar's user avatar
  • 23
1 vote
1 answer
225 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?
Ali's user avatar
  • 71
1 vote
1 answer
72 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. ...
Ali's user avatar
  • 71
3 votes
1 answer
212 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 = [] ...
d3wannabe's user avatar
  • 275
0 votes
0 answers
76 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:%[email protected]:8332"%(rpc_user, rpc_password)) for b in range(blockStart, ...
d3wannabe's user avatar
  • 275
0 votes
1 answer
58 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. ...
Carlos's user avatar
  • 33
2 votes
1 answer
507 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 '[{...
Lepus Cyberneticus's user avatar
1 vote
1 answer
490 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 ...
xor's user avatar
  • 87
2 votes
2 answers
1k 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 ...
merc1er's user avatar
  • 191
1 vote
0 answers
32 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, "", ...
bitcoin core nooob's user avatar
1 vote
0 answers
398 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 ...
Abbeville's user avatar
0 votes
1 answer
293 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", "...
Simon L's user avatar
  • 111
3 votes
1 answer
1k 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'
PaperFrog's user avatar
  • 133
2 votes
1 answer
253 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 ...
kcalvinalvin's user avatar
1 vote
1 answer
168 views

does connecting to full node via rpc over the public internet reveal your credentials?

While trying to connect to my full node, I accidentally entered my public ip address in the rpcconnect field of bitcoin.conf. Should I be worried that my password is now out there and anyone can ...
jesuis's user avatar
  • 13
1 vote
2 answers
171 views

Allow RPC connections from the internet to make RPC calls from Lambda?

I am trying to make RPC calls to my node from an AWS lambda function. Lambdas do not have a fixed set of ip address ranges. I know I can use a NAT gateway on AWS to give my lambdas a static ip, but ...
tigeryant's user avatar
1 vote
2 answers
288 views

Analyse huge amount of blockchain data

I am trying to go over all transactions data from every block on the bitcoin blockchain from the previous 4 years. With almost 2k transaction per block, it will take a lot of queries per block. I have ...
Jose's user avatar
  • 11
1 vote
1 answer
76 views

Optimal way to design BTC deposit flow?

I am designing an exchange application where users can deposit funds into their account by sending BTC to a unique address. What is the best way to monitor 100,000+ addresses for incoming transactions ...
Bob Grant's user avatar
0 votes
1 answer
279 views

401 unauthorized connection using python-bitcoinrpc

I'm running a Bitcoin testnet node on a Ubuntu 22.04 VM using UTM for Macbooks M1. I'm trying to connect via json-rpc using https://github.com/jgarzik/python-bitcoinrpc. 1 - I installed the package ...
Fawkes's user avatar
  • 3

1
2 3 4 5
17