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
1answer
114 views

jsonrpc-lean VS. cURL?

I wanna try and develop a small miner where anyone could see the backbone of it, so that everyone would know how everything works. Now I wanna ask whether what to use should I use for communicating ...
0
votes
1answer
32 views

Stratum protocol - problem with mining.submit method

code was written according to documentation. I have following lines for submit method submit() { // ["<worker.name>", "<jobID>", "<ExtraNonce2>", "<ntime>", "<nonce>...
0
votes
2answers
119 views

How to use “lockunspent” in bitcoin core wallet console?

Try to use the Lockunspend RPC in bitcoin core wallet console. But always get wrong, and google it can't find answer. My input is: lockunspent false "[{"txid":"...
0
votes
1answer
998 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. have also tried 192.168.1.* with no luck. I ultimately want to use an Antminer ...
1
vote
1answer
200 views

Bitcoind Cannot assign requested address

I'm trying to run a regtest bitcoind node but I'm always receiving the following error connect() to [2a05:d01c:a35:2902:6e18:7290:ff27:e9aa]:18444 failed: Cannot assign requested address (99) ...
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 => "...
0
votes
1answer
78 views

How do I configure a port in my .conf file?

This is what my conf file looks like: prune=600 maxconnections=12 maxuploadtarget=20 rpcuser=user rpcpassword=password keypool=10000 server=1 [main] rpcport=5040 Whenever I run this from the ...
1
vote
1answer
308 views

Bitcoin cash - Transaction history as JSON

Is there a way/a service to retrieve all bitcoin cash transaction for a bitcoin cash address in JSON format? Like the API of blockchain.info offers for bitcoin core?
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
1answer
216 views

bitcoinrpc error

I was happily using bitcoinrpc until I moved to python3 (python3.6.4 at the moment) and it stops working. Now I'm trying to use this one: https://github.com/XertroV/bitcoin-python3 After completing ...
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 ...
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 ...
4
votes
1answer
311 views

Which RPC may I use to query bitcoind for raw transactions coming through?

I need to capture and store the raw transactions coming through my local full-node bitcoin instance. I read here that it is possible, but there is no mention of the particular RPC calls. I also see ...
0
votes
2answers
366 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 ...
0
votes
1answer
150 views

counterparty Token JSON image [closed]

I, on the Token made with counterparty, can not set the URL of the JSON code. And not be able to set the image. In this JSON source, the next of which elements, you do not know may be me for a URL ...
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
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

How can I get whole info about tranasaction whose outputs are spent?

I use RPC method getrawtransaction to get whole info about transaction. But if I rigth understood It works only for transaction whose contains at least one unspent output. How can I get whole info ...
1
vote
1answer
76 views

How can I pass Multiple addresses in Move command

I have to pass multiple addresses in move command but I am not able to pass as it is not accepting more than one wallet address Is there is any another way to move the balance to multiple addresses.
15
votes
1answer
11k views

How to generate SegWit address

How do I generate a SegWit address using Bitcoin Core CLI? Also will I be able to redeem those outputs and send them to a "legacy" address? If so, will this second transaction be accepted by older, ...
1
vote
1answer
5k views

json_rpc_call failed

I have a little problem with the launch of the software: https://bitcointalk.org/index.php?topic=55038.0 My blockchain is fully loaded and JSON-RPC also works, since I use it in a PHP script whose ...
2
votes
1answer
965 views

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I'm ...
1
vote
2answers
208 views

trying to get text of a field in json rpc 2.0 response into ar PHP variable

I use json_decode to vardump a return which yields array(3) { ["jsonrpc"]=> string(3) "2.0" ["result"]=> array(13) { ["status"]=> string(7) "Pending" ["amount (BTC)"]=> string(10) "0.05130899" ["...
2
votes
2answers
2k views

how to send money using json-rpc in bitcoin-cli for php?

$bitcoin->sendfrom($this->session->userdata('account'), $_POST['address'], number_format($_POST['amount'], 8)); but this isn't working. i got everything via json-rpc. but can't send or move ...
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
311 views

Please help - Bitcoin Conf file in the wrong directory

I am running a full node using Bitcoin Core GUI on Windows 10. The conf file is in my bitcoin data directory, instead of being in the appdata/roaming folder. But Bitcoin-qt points to it by default and ...
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 ...
0
votes
1answer
53 views

How to split the funds and send X% to fee wallet and the remaining funds to another wallet?

Anybody have any idea about how to do it? User send the bitcoins X% goes to fee wallet remaining funds goes to service wallet I'm trying to use the "sendfrom" but it's not working because he only ...
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 ...
3
votes
3answers
3k views

jsonRPCClient.php states its served a 401 error response

When I execute my php file from the command line I get this: <pre> PHP Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.0 401 Authorization ...
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-&...
2
votes
2answers
499 views

getnewaddress (RPC) on encrypted bitcoin wallet without wallet password?

Say for example an encrypted wallet has 5000 addresses already pre-generated in the keypool. Can getnewaddress be called via RPC command without knowing the actual wallet password? I envisage a ...
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
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
484 views

How can I connect to bitcoind using the RPC interface with PHP?

I can't connect to bitcoin, tried everything, googled extensively and tried but can't resolve. I have a bitcoin.conf file created but I am not sure it is being accessed during the run of "hello.php" ...
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) ...
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 ...
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 ...