Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [json-rpc]

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

0
votes
1answer
22 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
34 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
16 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
24 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(...
0
votes
1answer
16 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
17 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(...
1
vote
1answer
18 views

bitcoin-cli deriveaddresses always returns an error

I am copying and pasting the example from the bitcoin-cli help: deriveaddresses "wpkh([d34db33f/84h/0h/0h] ...
0
votes
0answers
26 views

Connection Refused when running bitcoind in a non-root user and trying to make RPC calls

I'm new to Bitcoin development and I'm currently having difficulties trying to make RPC calls to a Bitcoin-Core daemon running in a SSH server. I suppose that the problem is with Firewall or closed ...
0
votes
0answers
15 views

Sendmany unconfirmed coins (minconf = 0)

can somebody help me to figure out opportunities if bitcoind RPC. How to send unconfirmed coins? With RPC command 'sendmany' and param 'minconf = 0' for some reason not possible. But how to make this ...
0
votes
1answer
54 views

Curl bitcoin protocol for learning?

I'm trying to understand bitcoin RPC Peer to Peer protocol to implement SPV on a web-application that should receive crypto payments. The problem is that on the examples I found, examples are about ...
0
votes
1answer
20 views

Is there's anyway to get fee estimation with vbyte instead of KB using “estimatesmartfee” RPC command?

I'm using Bitcoin-core RPC command to get current fee rate, but it returns the fees in KB, I would like to get fee rates in vbyte is that possible?
1
vote
4answers
97 views

Notify when new transaction is arrive in a bitcoin address [duplicate]

I have bitcoin full node on the server. I need to notify when new incoming transaction is arrive into a bitcoin address. Is there any RPC will help to achieve my goal ... Any help is appreciable. ...
0
votes
0answers
18 views

Apply SSL for RPC port -Ubuntu 18.04 VPS server

I start bitcoind 0.17 in a particular port on Ubuntu 18.04 VPS server. I want to give the SSL certificate for RPC port. I already know to generate self signed certificate using OpenSSL. But I don't ...
0
votes
0answers
15 views

bitcoind localhost port 18332: Connection refused Ubuntu 18

Trying to connect to testnet using curl from localhost on ubuntu server. Tried lots of combinations of bitcoin.conf and ports. Here's my config: server=1 daemon=1 testnet=1 rpcuser=user rpcpassword=...
0
votes
1answer
34 views

Automatically close the bitcoin-qt when enable SSL for RPC

I Just try to enable SSL for bitcoin-qt RPC call. I follow the SSL on RPC link to archive my target. But I am getting the following error and close the bitcoin-qt automatically. I am using the ...
0
votes
1answer
19 views

Run specific RPC commands in PHP?

I'm trying to get the balance of a specific address in my PHP session, I currently have this: <?php require 'header.php'; include 'Includes/Bitcoin/easybitcoin.php'; $bitcoin = new Bitcoin('...
0
votes
0answers
47 views

Create a multi user web wallet using bitcoind RPC call

I just a beginner in bitcoin technology.I planning to create a multi user bitcoin web wallet using a VPS full node setup(Not use minig). I read the RPC documentation and found something for archiving ...
1
vote
1answer
38 views

Submitt transaction with custome fee

I like to doing to submit every new transaction with user specific fee. I don't see any valid documentation for achieve it using RPC call. Give any suggestion. Thankyou
0
votes
0answers
26 views

Create multiplle wallet in single full node on VPS is possible…?

I like to start a new project on bitcoin. My project is creating a web based bitcoin wallet. I planing that to run the bitcoind on single VPS and use RPC for doing wallet operations. I planning that ...
0
votes
1answer
15 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
0answers
39 views

Can't send transaction with sendtoaddress

I'm trying to send some transaction with sendtoaddress method. That is not Bitcoin it self but it's fork. You can see it here https://github.com/PACCommunity/PAC my command looks like this paccoin-...
0
votes
1answer
56 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 ...
0
votes
0answers
20 views

How can I connect to my own bitcoind node via json-rpc calls from python3 (or Django)? I'm using Windows 10

Context: I'm using bitcoind on Windows 10 and am able to operate it from bitcoin-cli already. Just want to do it programmatically from python3. Bitcoin wiki says python-jsonrpc is for old versions ...
0
votes
0answers
45 views

python-bitcoinrpc: modulenotfounderror no module named 'bitcoinrpc'

I'm running bitcoind/ bitcoind -regtest on Windows 10 and am already able to use bitcoin-cli -regtest along with json-rpc methods to perform basic operations and get balances etc. When I try to do ...
0
votes
0answers
24 views

Is it possible to get a block by timestamp?

I use Bitcoin Core API and I can retrieve a block by header hash as parameter using the getblock method. I need to get a block by given timestamp (median time). I found some solution. ...
0
votes
1answer
32 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 ...
7
votes
1answer
532 views

Can I send almost 1MB transaction?

Block size is still limited to 1MB. As I understood, transaction size is no longer limited. So can I be sure that my transaction with 29000 outputs and reliable fee will be included into block? Or ...
0
votes
1answer
24 views

Does pruning node keep old wallet's transactions?

Does pruning node keep old wallet's transactions? For example I need to use the gettransaction API to retrieve a wallet's transaction in a deleted block, should I use the pruning mode? I cannot find ...
0
votes
1answer
38 views

Bitcoin RPC. How to close wallet files opened by bitcoin?

Bitcoin RPC unloadwallet command does not close files opened by bitcoind process. I want to generate addresses for multiple wallets (over 1000) and get 'Too many opened files error'. Is there a way to ...
1
vote
1answer
84 views

estimatesmartfee outputs very different results

Around block 564815 (2019-02-26 23:40 UTC), the mempool was empty. I noticed that my two nodes are giving very different estimates for transaction fees to be used: Node 1 Version: 17.1.0 Number of ...
0
votes
2answers
76 views

bitcoind only accept the RPC for 127.0.0.1 but the actually ip address

I use the exact same command, one use 127.0.0.1, and the other use 192.168.3.126, only the first one could succeed. Anyone here has met a similar issue before? curl --user root --data-binary '{"...
0
votes
1answer
79 views

How to use -txindex to enable blockchain transaction queries?

I am trying getting the raw of transaction. But I am getting the following error with following command and RPC call as well. bitcoin-cli getrawtransaction ...
0
votes
0answers
15 views

How to verify a given transaction was sent by a Green Address?

I have run bitcoind. How do I get the funds sent from Green Addresses? If the transaction is sent by Green Addresses, that can be immediately on receipt with zero network confirmations There are ...
0
votes
1answer
60 views

Setup a full node on server for frond end Wallet

I am a new in bitcoin technologies. I want to setup a full node on cloud server. Also I need to use RPC of this server for front end app.That is creating bitcoin wallet and its further operations(such ...
1
vote
1answer
22 views

What does -server option do?

What does the -server option do in bitcoin node? https://en.bitcoin.it/wiki/Running_Bitcoin says 'Accept command line and JSON-RPC commands'. However I can't see any difference whatsoever. In both ...
1
vote
0answers
40 views

where is located the implementation of getaddressutxos method of litecoin rpc

Hi I have started to play with litecoin node making queries via rpc using litecoin-cli. There are some methods that caught my attention and have something related to "addressindex" these are: ...
1
vote
1answer
82 views

How to discover startup flags or command-line options for bitcoind?

I'd like to query the Bitcoin daemon (bitcoind) to find out what startup flags (command-line options) were sent to it on startup (or the current state if it has changed, e.g. -server=0/1 changing). ...
0
votes
1answer
81 views

Bitcoin curl no reply

Hi I have made a curl to my server but get no reply . What am a missing rpcuser=rpcusername rpcpassword=rpcpassword rpcauth=rpcusername:generatedkey daemon=1 server=1 rpcport=8332 rpcbind=0.0....
0
votes
1answer
26 views

json-rpc and p2p port protocol type

What type of port protocol do json-rpc and p2p use? does it use TCP or UDP? If possible, can you config or reprogram the open-source and compile the source to use TCP only if it also uses UDP?
0
votes
2answers
312 views

How to change RPC port for bitcoind? (rpcport=xxx in bitcoin.conf doesn't work)

I'm running a testnet bitcoind node and I have been doing RPC calls on the default port 18332. I have added this line to ~/.bitcoin/bitcoin.conf: rpcport=19832 And restarted the bitcoind service. I ...
0
votes
2answers
67 views

Connect to bitcoind from a different device within the same local network

I have a full node running on a Linux device (A) with static IP 192.168.1.203 and I want to run bitcoin-cli commands or even eclair instances from a different device (B) within the same local network. ...
1
vote
1answer
20 views

Recommended way to automatically retry sending of bitcoin via JSONRPC upon failure

Sometimes when sending bitcoin out, sometimes bitcoind's JSON-RPC replies with a 500 error. I'd like to safely automatically retry, but it seems that there's not way to set a nonce to safely retry. I ...
0
votes
1answer
46 views

JSON-RPC get full nodes information

Is there any way to get all full nodes by RPC call? Afaik full node contains information of other full nodes in the network and was wondering how to request that. I red the documentation on Bitcoin ...
0
votes
1answer
47 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
1answer
92 views

RPC calls to LND using curl?

I have a bitcoind and LND server running. I can make RPC calls to bitcoind using curl, like this: curl http://XXX:YYY@localhost:8332 -H 'content-type:text/plain;' --data-binary '{"jsonrpc":"1.0","id":...
1
vote
1answer
32 views

When using createrawtransaction, are the outputs ordered as they are presented within the request?

Let say, when I set second parameter of craterawtransaction call as below [{"demoaddress1": 0.42}, {"demoaddress2": 1.00}] Is it possible to occur that returned transaction's output is not ordered ...
2
votes
0answers
41 views

Using bitcoind RPC to identify an incoming transaction that has been replaced using BIP125 Replace-By-Fee

In the context of running a web service that accepts payments in Bitcoin, how can we use bitcoind to identify a transaction that has been replaced using BIP125 Replace-By-Fee? When RBF is used, a new ...
1
vote
1answer
75 views

How to perform automated mining in regtest mode?

I'm trying to setup a private network of bitcoin nodes for testing and experimentation. From what i understand, i have two choices while setting up a network: I can run bitcoind -testnet and connect ...
1
vote
1answer
28 views

Why estimatesmart fee returning the same fee for diffeent blocks number?

I am trying to calculate the fee per kb using the estimatesmartfee. I had called estimatesmart fee with different type of blocks number .The fee remaing the same. estimatesmartfee(2)=...
1
vote
1answer
78 views

can not access via RPC to litecoin node

I set up a litecoin full node in AWS. I opened ports 22, 80 and 9332. Also from my laptop I cloned this project https://github.com/janoside/btc-rpc-explorer I executed on my local but unfortunately I ...