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
2 votes
1 answer
804 views

How to get total number of transactions from bitcoin core wallet using rpc

I'm trying to implement paginations using : https://chainquery.com/bitcoin-api/listtransactions I want to have reverse listing (oldest first), so I need to get total number of transaction returned ...
0 votes
1 answer
583 views

LND describegraph and getnetworkinfo RPC response

The LND API documentation is here, but doesn't contain much information about what the responses to various calls mean. Can anyone explain what these responses are describing? describegraph['edges'] ...
1 vote
1 answer
1k views

Can't connect to Bitcoin RPC on DigitalOcean server

I am running bitcoind on a DigitalOcean droplet with public IP address e.g. 1.1.1.1. I would like to connect to it via RPC from another DigitalOcean droplet with public IP address e.g. 2.2.2.2. Both ...
5 votes
1 answer
1k views

Clarifying descendants/ancestors in error cases for too-long-mempool-chain

In practice I've seen two instances of the too-long-mempool-chain error when trying to send a transaction: When there are too many unconfirmed transactions chained together: "too many descendants ...
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 ...
0 votes
0 answers
162 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 ...
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 ...
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....
2 votes
1 answer
497 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 '[{...
0 votes
1 answer
420 views

Pull Bitcoin node data from external public nodes using JSON-RPC

I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using ...
1 vote
2 answers
94 views

Multisig synchronization

I understand what the multisig wallets are but I need help understanding what exactly this script does: https://gist.github.com/gavinandresen/3882537 If I understand correctly, bitcoinds are bitcoin ...
3 votes
2 answers
141 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 ...
0 votes
1 answer
2k views

How to import address with private key using importmulti

Problem. importmulti function has a lot of parameters and they are more difficult to understanding then the parameters of another Bitcoin RPC-API functions. Those who are not profi in modern ...
3 votes
2 answers
749 views

RPC port 8332 not accessible after reboot

I have compiled and installed Bitcoin Core for the first time on Debian 11. Everything is up and running except that RPC port 8332 is not accessible after a reboot. I get the following error running ...
39 votes
11 answers
38k views

How to check if the block chain is up to date using bitcoind or json-rpc?

I read the full api method list and did not seem to find one. I suppose there is no command specifically for that purpose, so what is the general way of doing this? I would consider checking the ...
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. ...
0 votes
1 answer
731 views

Bitcoin Core JSONRPC only accept requests with 0.0.0.0 in configs

I've lunched a Bitcoin Core server, and trying to connect to it via JSON-RPC. This is my configuration settings: server=1 rpcuser=admin rpcpassword=password rpcport=1234 rpcallowip=94.183.32.151 ...
3 votes
2 answers
3k views

How to use python rpc bitcoin to get the historical transaction record of a wallet address

How to use python rpc bitcoin to get the historical transaction record of a wallet address?My computer has synchronized all btc blocks, and txindex=1 has been configured. I want to try to get all the ...
2 votes
0 answers
230 views

Get as many blocks as possible (stale, invalid, orphans)

I would like to download (and access) as much blocks as possible - including stale (extinct) blocks, orphans blocks and invalid blocks. I have 0.11 official client. My node is already synchronized but ...
10 votes
1 answer
453 views

Obtaining historical stale blocks (chaintips) without old node

I'm attempting to do some research surrounding stale blocks within the Bitcoin network. From my understanding the best and really only way to obtain data for blocks that no longer exist in the main ...
1 vote
1 answer
66 views

What does an orphaned tx look like via rpc? [closed]

I am testing with a currency forked from Pivx, but I see that bitcoind responds the same way here https://bitcointalk.org/index.php?topic=100824.0 with error code -5 If I send/receive a tx that then ...
25 votes
2 answers
45k views

json-rpc via curl

I'am running Bitcoin-qt 0.8.6.1-beta on Qt 4.8.3 on windows 7 64. below is my .conf content in %appdata%/bitcoin folder rpcuser=bitcoinrpc rpcpassword=ahything rpcallowip=127.0.0.1 rpcallowip=192....
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 ...
0 votes
1 answer
890 views

How to properly use the rpc command `listunspent` with `bitcore-lib` to create a transaction and get the transaction hash?

I am trying to use the rpc command listunspent to get all the UTXOs relevant to an address, and then I am trying to pass it to a transaction, using bitcore-lib. Below is my code: const Client = ...
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: ...
0 votes
1 answer
79 views

Will remote RPC under http expose the rpcusername and rpcpassword?

I'm confused with the examples of contacting bitcoin-cli as the examples always show sending user name:pass to http does this expose the name:pass? This command: (I modified the help example from ...
0 votes
1 answer
328 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 ...
1 vote
1 answer
1k views

json_rpc_call solo mining with bitcoin running on Windows 7 for antminer

I setup BitcoinD on a Windows 7 PC. I configured for defaults except user/pw and rpcallowip=192.168.1.0/255.255.255.0. I have also tried 192.168.1.* with no luck. I ultimately want to use an Antminer ...
2 votes
2 answers
999 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
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 ...
6 votes
3 answers
17k views

Historical BTC data in JSON

As of now, the only API I can find that serves historical data is https://blockchain.info/charts/market-price?timespan=60days&format=json. It only uses USD, and I need to serve non-USD data. My ...
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 (...
1 vote
1 answer
247 views

Access Kucoin OHLC data from API?

I need to access kucoin Open-high-low-close (OHLC) data from Kucoin API. Looking in https://docs.kucoin.com/#get-trade-histories, I deduced that to access OHLC data (for instance BTC versus USDT, ...
0 votes
1 answer
251 views

Where can I find RPC_User and RPC_Password for my Python Script?

I'm still struggling with this to obtain "rpc_user" and "rpc_password" this is the Python Script I did try others to fill in others network like Blockdaemon.com but it does not ...
0 votes
2 answers
3k views

Bitcoind could not locate RPC credentials but rpcuser and password are set

I installed bitoind and synced it. But when i'm trying to connect from my php website i getting: Unable to connect to http://user:[email protected]:18332/. Also when i'm trying to see ...
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&...
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 ...
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 ...
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 ...
1 vote
3 answers
233 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 ...
1 vote
1 answer
150 views

Will bitcoind import private keys for multi-sig descriptor with watch-only flag set to true?

I am importing a "warm" multi-sig quorum into bitcoind using importmulti like so: {"jsonrpc":"1.0","id":"curltest","method":"importmulti","params":[[{ "desc": "sh(multi(2,[eb2d2f9e/44'/1'/0']...
2 votes
2 answers
148 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 ...
0 votes
1 answer
89 views

In the basic Wallet based in QT, How can i get by RPC the stored addresses and labels?

this question is for you to ask about the QT wallet, in the section to send coins, there is an address window, and it has the list of the stored addresses we save along the time. So using RPC, do you ...
2 votes
1 answer
2k views

Can't connect to Bitcoind remotely

I am running a Bitcoin Cash node on my server, and starting it like this: start bitcoind.exe --server=1 --rpcuser=user --rpcpassword=password --rest=1 --rpcport=8332 --datadir=F:\Bitcoin --bind=10.1....
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?
2 votes
1 answer
81 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 ...
3 votes
3 answers
2k views

How to use `scantxoutset`

Looking to fetch the UTXOs for a given address and can't seem to find the correct command syntax. Here is an implementation in bitcoin-core via javascript, but I also experience the same on bitcoin-...
-1 votes
2 answers
392 views

jsonRPCClient Error with php variables

I am trying to run the following code $betamount=$_POST['bet']; $litecoin->move($myusername,Admin,$betamount); but it will not work. it does however work when i replace $betamount with an ...
1 vote
1 answer
78 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 ...
0 votes
0 answers
307 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 "...

1
2 3 4 5
17