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
1
vote
1answer
47 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
101 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
28 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
83 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
67 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
179 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
23 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
72 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
40 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
32 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
64 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
39 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
30 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
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
0answers
52 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
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 ...
0
votes
0answers
33 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
73 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
28 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
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 ...
7
votes
1answer
536 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
36 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
53 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
128 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
188 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
169 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
87 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
30 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
59 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
128 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
137 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
38 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
799 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
197 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
29 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
59 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
83 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
166 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
33 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
48 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
146 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
35 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
118 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 ...
0
votes
1answer
58 views

json-rpc of bitcoin not working for testnet(curl command)

I am trying this command to get transaction from bitcoin testnet: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/...
0
votes
1answer
96 views

Can't use bitcoin-cli commands, error message says “could not connect” from localhost

I am simply trying to run bitcoin-cli getinfo on the same machine that my bitcoin node is running on (with bitcoind -daemon) my bitcoin.conf file is as follows: server='1' rpcuser='username' ...
0
votes
1answer
239 views

How to connect to a public node through json RPC?

I found a list of public bitcoin nodes here. I am using a php library. How can I connect to these nodes via JSON RPC? Is it safe to connect to public nodes? What should I give as username and ...
1
vote
1answer
152 views

Passing a wallet to rpcwallet in bitcoind JSON RPC

I want to set a wallet as default wallet in the commands that run with json-rpc calls. the -rpcwallet=blah sets the blah wallet as the wallet which command will run on it; how can I simulate the ...
2
votes
1answer
693 views

Error parsing JSON in bitcoin-cli signrawtransactionwithkey

I have issues trying to sign a 2/3 multisig tx with the first private key. What am I doing something wrong or am I missing something for the arg? Command format: /usr/bin/bitcoin-cli -testnet ...