Questions tagged [json-rpc]

This tag should be used for questions relating to the Bitcoin Core/bitcoind JSON-RPC interface.

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

Using scantxouset method on bitcoind JSON RPC

BitcoinRPC class from here (ruby): https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) btc = BitcoinRPC.new("http://rpcuser:rpcpassword@127.0.0.1:18332") btc.getaddress => "...
1
vote
1answer
39 views

How do block explorer sites show information that is not available on Bitcoin Core?

As I understood in the following post How to get unspents for a specified bitcoin address?, we should use listunspent only on addresses that belong to our own wallet otherwise will return blank. But ...
0
votes
0answers
22 views

Can not connect to rpc server bitcoind 0.16

I have 2 server v0.18 and 0.16. They're nearly same config but I can't connect to v0.16 server via RPC though using command on it is still well eg bitcoin-cli -info. I have searched few configs and ...
0
votes
1answer
39 views

Is there any full node supporting multiple crypto currencies like BTC, BCH, Litecoin?

I want to use JSON-RPC protocol in my application such that it should support multiple crypto currencies.Is there any single full node supporting multiple cryptocurrencies.
0
votes
1answer
29 views

What does the scriptSing contain when it is decoded with RPC framework?

I'm trying to get the wallet id from scriptSing and ScriptPubKey. When I decode the scriptSig, the result does not contain the address address. But when I decode the scriptPubKey, it contains the ...
1
vote
1answer
35 views

how do I use the getwalletinfo RPC?

I can't seem to get a firm grasp of how to use the getwalletinfo RPC in the cmd line as well as in PHP code, The documentation says getwalletinfo doesn't take any parameters, but I've seen ways to ...
0
votes
1answer
28 views

Correct way to use joinpsbt for manual coinjoin?

I am developing a feature in my app for "manual coinjoins" which follows this as inspiration: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#Manual_CoinJoin_Workflow I am not an ...
0
votes
0answers
18 views

How to connect to bitcoin daemon running in VirtualBox using RPC?

I am running the bitcoin daemon with the following config in VirtualBox: testnet=1 daemon=1 server=1 txindex=1 mintxfee=0.001 txconfirmtarget=1 rpcuser=lubo rpcpassword=vranka rpcport=18332 ...
1
vote
1answer
71 views

Wallet management now that accounts are deprecated?

I'm building a website which will allow every user to make deposits and transact with Bitcoin, how will I be able to get the balance of a specific wallet. I currently know these commands: $bitcoin-&...
0
votes
1answer
51 views

Could not connect to Bitcoin RPC server outside local host using bitcoind-0.18.0

I upgrade bitcoin core from 0.16.3 to 0.18.0, But I can not connect to RPC server outside local host. I use the following parameters as bitcoin.conf: testnet=1 server=1 daemon=1 rpcallowip=0.0.0.0/0 ...
0
votes
1answer
20 views

Using importmulti to import a single address to keypool does not work

I create a wallet with private keys disabled. Then use importmulti like so: command curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importmulti", "params":[[{ "scriptPubKey": { "...
0
votes
0answers
19 views

Signing multisig raw transaction is returning error “JSON value is not a string as expected”

I am trying to sign a multisig unsigned raw transaction but keep getting "JSON value is not a string as expected", I am stumped and have tried many variations. Can anyone point out what I am doing ...
0
votes
1answer
16 views

Strange re-connection problem with python-bitcoinrpc

I am using https://github.com/jgarzik/python-bitcoinrpc to access the bitcoin core rpc. I have found a very strange re-connection problem. from bitcoinrpc.authproxy import AuthServiceProxy, ...
2
votes
2answers
96 views

Why does importmulti not support zpub and ypub?

As far as I can tell importmulti does not work with zpub/ypub. Why not? FWIW I prefer only to deal with xpubs, but I am curious.
0
votes
0answers
16 views

Cannot connect to Bitcoin JSON-RPC Server [duplicate]

I have just started getting my hands dirty with Bitcoin and I have successfully setup a pruned node on a Linux server but I can't seem to connect to this node from my Dev environment. I keep getting ...
1
vote
1answer
18 views

How to import multi sig using importmulti correctly?

I create a 2 of 2 with createmultisig using 02254aba14091e45a9067fbe5b225b3863d1c49650226d583dcede06a7c33f8613 and 02ad64a03b7fc53c02f68eac04743b819bfeeabe6ca7007f473dbaf7c3570f5dc9 pubkeys. I then ...
2
votes
1answer
51 views

Why is the field 'hash' necessary in a bitcoin transaction?

Using bitcoin-cli decoderawtransaction I see results like... { "txid": "d2183b3ea763f41a30ec5ba6fbf6e5f32e0ca6a5e8761249c533fe22190f71f1", "hash": "...
0
votes
0answers
21 views

How can I seperate the RPC server from the -proxy option in regtest?

I'm using a SOCKS5 proxy for bandwidth throttling and custom latency. How do I run bitcoind such that only node connections go through the proxy, but JSON-RPC does not? The proxy is on localhost, and ...
1
vote
1answer
29 views

Import multisig change addresses into Bitcoin Core using “importmulti” + descriptor

I'm trying to fill my wallet's internal/change address keypool by passing a multisig descriptor to importmulti, but the wallet's internal keypool is 0 before and after running the following shell ...
1
vote
1answer
39 views

RPC call to get unconfirmed balance on a watch only wallet

We have a bitcoin core client running on a production machine. This machine cannot have the private key so each address is added as watch only. So far it has worked perfectly, but recently we need to ...
1
vote
1answer
22 views

How to scale JSON-RPC

I'm trying to scale getrawtransaction calls from bitcoind, without manually parsing the .dat files. I've tried: rpcworkqueue=512 (no difference) rpcthreads=128 (no difference) par=8 (no difference) ...
2
votes
1answer
26 views

How to prevent specific method calls to bitcoin node

I have setup a bitcoin node and can access RPC methods via curl or bitcoin-cli. Now I don't want to share the node with multiple parties and in such case, I want to restict some functions from being ...
1
vote
1answer
53 views

`walletcreatefundedpsbt` with unconfirmed inputs

I would like to create a psbt using walletcreatefundedpsbt spending unconfirmed ouptputs. Is this possible? When I call that RPC command with 0 confirmed balance but with sufficient unconfirmed ...
0
votes
2answers
115 views

Can't reach remote bitcoin rpc server

I got vps with ubuntu 18.04 with ssh access and bitoind set up on it. This is my bitcoin.conf file: testnet=1 prune=35840 maxconnections=12 muxuploadtarget=20 daemon=1 server=1 rpcclienttimeout=5000 ...
0
votes
1answer
27 views

getmininginfo vs getblocktemplate

I am interested in the difficulty right now. That is, the miners are working a block right now and they have a target. Both of the RPC commands "getmininginfo" (or "getdifficulty") and "...
0
votes
1answer
24 views

Checking external bitcoin address balances via JSON-RPC API

I'm using bitcoin core json-rpc api in python and am wondering why... getreceivedbyaddress() ...doesn't allow me to specify an address that isn't in my local wallet? The whole blockchain is open, ...
1
vote
1answer
61 views

Can't perform remote JSON RPC to my Bitcoin node (C#)

I'm trying to perform a remote JSON RPC. It works fine using localhost but not if I try to do it from another computer. Here's what I have so far: int index = 0; HttpWebRequest ...
1
vote
1answer
32 views

Bitcoin-cli cannot estimate fees

I am trying to send transaction using bitcoin-cli but I am constantly getting: admin@XXXX:~$ bitcoin-cli sendtoaddress "XXXXXXX" 0.1 "" "" false true 5 "ECONOMICAL" error code: -4 error message: Fee ...
1
vote
1answer
33 views

How to listsinceblock mempool transactions?

I am using listsinceblock RPC call to show me transactions relevant to my wallet addresses only. Absolutely useful feature, but I cannot figure out how to include also mempool transactions. Is there ...
2
votes
1answer
189 views

Bitcoin Core 0.18.0 in Docker container: Could not connect to the server

This is likely me not understanding how Docker works, but I've tried everything I can think of. I'm trying to start bitcoind in regtest mode inside a Docker container, then execute JSON-RPC commands ...
0
votes
1answer
18 views

bitcoind jsonrpc bumpfee not returning hash of newly created transaction

I'm trying to implement replace by fee functionality with bictoind (v18) and bumpfee rpc call described here It works by mean that new transaction is created with higher fee, but result should be: { ...
0
votes
1answer
106 views

How to properly use importmulti with coldcard wallet BIP84 xpub?

I have seen the HWI scripts but I am trying to do this while keeping my Coldcard airgapped. First I create a wallet in bitcoin core with private keys disabled. I dump the wallet summary onto the ...
0
votes
1answer
40 views

importmulti with BIP84 derivation always fails

I have been trying to test importmulti with BIP84 derivation like so: bitcoin-cli -rpcwallet=BIP84Test importmulti '[{ "desc": "wpkh([18734cbe/84'/0'/0']...
0
votes
1answer
27 views

Using importmulti with internal set to true does not add any change keys. What am I doing wrong?

First I call: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createwallet", "params":["ColdWallet", true] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:18332/ ...
0
votes
0answers
32 views

How to use bitcoind-rpc.js to create raw transaction?

I am using bitcoind-rpc in javascript but i couldn't use the function/api that require 2 or more arguments. For example, what is the proper format of the arguments needed for createRawTransactions? ...
0
votes
0answers
12 views

Checking a multisig transaction using RPC

For examaple famous transaction with multisig. Is posssible using RPC calls (getrawtrasaction and decoderawtransaction and other?) do: - ensure that transaction is multisig - find number of signings ...
1
vote
1answer
89 views

When I use importmulti with an xprv it never imports the private keys. What am I doing wrong?

When I call: bitcoin-cli getdescriptorinfo "pkh(tprv8iDvhA6eaMDbRuH3D2DTNuH6N6LvMTVrcv7z6sVxyyYvThSaCSa3i3qFVqUgVL4NbVkACxjx3KPWLoP5jvDU3i16hjTnzEFnZuqsnTJ5F4n/*)" it returns: { "descriptor": "...
1
vote
0answers
16 views

listreceivedbyaddress missing transactions after restore

After restoring wallet from wallet.dat balance is identical, but listreceivedbyaddress 0 do not have the transactions associated with wallet. listunspent 0 show all the transactions, but it will ...
0
votes
0answers
28 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
0answers
17 views

Empty reply from server v0.18.0

From the wallet comes an empty response to my request. Logs 2019-06-12T06: 46: 15Z sending inv (37 bytes) peer = 11 2019-06-12T06: 46: 15Z received: addr (31 bytes) peer = 27 2019-06-12T06: 46: 15Z ...
1
vote
1answer
49 views

How to get balance for a label

I have lots of addresses organized under a label. Is there a command to show the total remaining amount available under a label ? (Or address) I am building a payment gateway and I need get the total ...
1
vote
1answer
35 views

How to request a list of blocks using bitcoin-cli?

I'm trying to figure out how to use bitcoin-cli effectively to request a list of 50 blocks. As far as I am aware, bitcoin-cli getblock list does not work. Also how to best extract information out of ...
0
votes
1answer
70 views

Testnet credentials

How to get testnet credentials to use bit-coin core functions in Node.js. { "Bitcoin": { "testnet": { "username": "name", "password": "sdaddf", "network": "regtest", ...
0
votes
1answer
45 views

How to create the data parameter for a PSBT?

I am sure this is a dumb question but if using: bitcoin-cli walletcreatefundedpsbt "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]" How do you create the data parameter? Where does it ...
1
vote
2answers
365 views

Unable to bind any endpoint for RPC server

I recently updated my bitcoin docker image to bitcoing v0.18.0 version and can't allow external rpc connections to it now. It binds to localhost if I set rpcallowip=X.X.X.X, then I tried to used ...
0
votes
2answers
68 views

What is the best way to create a wallet with a blank keypool then add keys to it?

The scenario is this: User has a cold storage wallet and will import their cold storage xpub into Bitcoin Core using getdescriptorinfo and importmulti. User wants to only use the keys associated with ...
1
vote
1answer
20 views

How does the wallet prioritise keypool addresses imported via importmulti?

I want to use importmulti to import 100 addresses from an xpub descriptor. If I set keypool: true as one of the arguments the keys get added to the keypool. How does the wallet prioritise which keys ...
0
votes
1answer
58 views

How do you import an xprv using descriptors and importmulti?

I have figured out how to import an xpub, but when i use getdescriptorinfo on an xprv: getdescriptorinfo "wpkh(...
1
vote
1answer
28 views

How to use deriveaddresses via a curl command

I am trying to use curl via SSH to utilize the deriveaddresses bitcoin-cli rpc command. let descriptor = "wpkh(...
0
votes
1answer
24 views

Issuing bitcoin-cli commands via terminal

I am having issues utilizing bitcoin-cli via terminal. For example: DIRECT-8A-HP-OfficeJet-4650:~ peter$ bitcoin-cli deriveaddresses "wpkh(...