Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
9 views

sending & receiving bitcoin transactions - Semi - Automated

Hi I'm looking for a way to send transactions and track incoming transactions using some kind of software&/database/code that will let me choose how much to send dependant on preset formulas from ...
1
vote
1answer
14 views

Is there any RPC Java library using which I can call lite coin methods?

In case of bitcoin there is bitcoinj. but in Litecoin what will I use?
0
votes
1answer
16 views

How to Curl into Bitcoin node with Swift?

I am running a full node which accepts incoming connections. Here is my config file: rpcuser=bitcoinrpc rpcpassword=somePassword server=1 rest=1 daemon=1 Here is my swift code to curl to the node: ...
2
votes
1answer
19 views

How to edit the label of an existing address exactly like in bitcoin-qt but instead using RPC calls?

I am trying to edit the label of a bitcoin address in my wallet outside of bitcoin-qt. Currently I only know of 'setaccount' but it results in two addresses after editing one, it assigns a new address ...
1
vote
1answer
22 views

How to create wallet in Electrum programmatically?

I want to create new wallet using Electrum-apis. I have gone through the documentation given here but didn't found any method to create a new wallet or an address. Can someone please clarify how I ...
1
vote
1answer
22 views

Is it required to have an electrum account for electrum api usage?

Is it necessary to have an account on electrum in order to build a custom BTC wallet interface using electrum-apis where user can create multiple wallets, address, send/receive transactions? Or, ...
1
vote
1answer
21 views

Can't connect to rpc.blockchain.info with bitcoin-cli

I'm trying to, given a bitcoin address, retrieve the last X transactions to this address. After researches, I found this to be an interesting solution, as I don't want to download and validate the ...
1
vote
1answer
29 views

Import private key ripple

Is there a way to import private key with rippled? Same as bitcoin core impoertprivkey with RPC calls? Tnx
0
votes
2answers
18 views

How does createrawtransaction get the pubkey hash from the provided address?

The createrawtransaction RPC takes as parameters the source TX ID and the UTXO index (to create the new unsigned input) and the destination address and amount of bitcoins (to create the new output). ...
0
votes
0answers
14 views

Method getnewaddress not supported. (Electrum 3.x)

Does electrum rpc methods be changed? curl -d '{"id":"curltext" ,"method":"getnewaddress","params":[]}' http://127.0.0.1:7777 I tried this on electrum 3.1.1, but its response as follows: {"code":-...
0
votes
1answer
16 views

How to unset fee rate after setting with RPC `settxfee`

After setting the fee rate with settxfee -- how do I re-allow bitcoind to set the fee automatically again? Or does the settxfee command only apply to the next outgoing transaction?
0
votes
1answer
22 views

Bitcoin RPC returning 401

I am using node-bitcoin-rpc to do some api calls to bitcoind, but I am getting 401 error. I know this simply means unauthorized, but I have no authorization enable in my config file. Howerver I can ...
1
vote
1answer
30 views

Why is the output address a list in RPC/console?

Vout contains a list of addresses, which I noticed to be always with size = 1, if it exists. The following is an example from Bitcoin Testnet: { "value": 0.91840581, "n": 2, "...
0
votes
0answers
22 views

jsonRPCClient bitcoin not generating transaction id however new address is generated

I'm using jsonRPClient to connect to my, I'm able to generate new wallet address using getnewaddress however when i make a transfer using sendtoaddress transaction id is not generated. sendtoaddress ...
0
votes
0answers
17 views

How would get a list of transactions associated with an address from private node? [duplicate]

I am running a private BTC node and am trying to get a list of every transaction given an address between block x and block y. So pretending my wallet address is AbCdEfGh it would return a list of ...
1
vote
1answer
70 views

How to specify testnet via curl against json-rpc?

The testnet=1 option can be (not) specified in the bitcoin.conf file (thus causing it to be on mainnet by default), and this can be over-ridden in bitcoin-cli with the -testnet command-line option. ...
2
votes
1answer
35 views

Which approach is better to interract with Bitcoin node : Rpc call or Library?

I think library like BitcoinJ or python-bitcoin does the same (rpc call in the background). If that is true is there any reason behind using such libries in place of rpc call For example: (in case ...
5
votes
2answers
73 views

RPC call to bitcoin node on local machine respond back with code: 401

I am trying RPC request to bitcoind node,using Kotlin. My code looks like import khttp.delete as httpDelete val node_url = "http://rpcusr:rpcpass@127.0.0.1:18443" val json_resp = khttp.post(url = ...
0
votes
1answer
20 views

“comment” and “to” of malleated transactions

I'm using the bitcoin core wallet and trying to build some programs around it. I see that comment and to can be added to transactions locally. If I understand it correctly, both are stored in local ...
1
vote
0answers
16 views

“label” field in the transaction list

Looking at this dev reference guide I found a returned field called label. Is this the same label specified to each key when using importmulti?
0
votes
1answer
46 views

building a multisig transaction using RPC

I´m trying to build a multisig transaction using RPC. Till now my code looks similar to this: At first I get the unspend outputs calling listunspend() With those UTXOs I´ll try to create the ...
1
vote
1answer
55 views

Bitcoind estimatesmartfee

I am trying to get transaction fee for sending all btc to another account. I use estimatesmartfee to get tx fee, I have total btc amount of 0.0195btc, so I pass 0.0195, but I get JSON integer out of ...
2
votes
1answer
39 views

Does running a full node make rpc calls faster?

Hello I am running a pruning node on my VPS, and some of the RPC calls such as get balance take minutes to load. I need to check the balance every time the users access the website. I was wondering if ...
0
votes
0answers
72 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
25 views

Using the comment parameter in SendToAddress, is it accessible by the GetTransaction label?

So when sending a transaction, i would like to include the username of the sender in the comment field. $transaction = $bitcoind->SendToAddress($toaddress, $dAmount, $username, "", true); Then ...
0
votes
2answers
56 views

How to send entire balance

I have created an account in a bitcoind wallet which has got some 1.055btc which has to be wiped out to 0.00BTC to another account. so the actual BTC has to be sent is 1.055 - transaction fee. Is ...
0
votes
1answer
75 views

Handling change addresses without using rawtransactions?

Since I'm using the wonderful accounts feature which is soon to be deprecated (shame on me, i know - but i simply didn't have resources and time as a single person to do an internal accounting system ...
0
votes
1answer
87 views

Where can I find documentation about interacting with bitcoind's json-rpc?

I have created a coin by forking Bitcoin. Now I want to create web wallet for this, but do not know how to create json-rpc apis to communicate with the daemon server. Is there any proper documentation ...
1
vote
1answer
49 views

Bitcoin RPC: Can I test for standardness?

I want to test if a script or is standard or not. Is it possible with Bitcoin Core's RPC?
0
votes
1answer
49 views

Is it possible to use the RPC's Label feature in it's current state over the deprecated Accounts feature?

I'm doing my bachelor project in web development using Bitcoin RPC. At the moment it uses the deprecated accounts feature, but i'd really like to upgrade to using the newer label feature instead. ...
0
votes
1answer
101 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?
0
votes
0answers
20 views

Litecoin RPC Calculate the commission (PHP)

I have a small problem. I can not calculate the commission in any way. Implementation example: $litecoin = new jsonRPCClient('http://user:password@127.0.0.1:9332/'); echo "<pre>\n"; ...
1
vote
1answer
90 views

Error connecting to json rpc server

For testing purposes, I need to connect from a web page in my shared hosting account (on the public internet) to my json rpc server which is running on my laptop . So bitcoind is running on my laptop, ...
2
votes
1answer
65 views

How Do HD Wallets Keep Track of all accounts?

If a HD Wallet generates 1,000 accounts for example. How would they keep track of all of the account's balances, if someone for example, paid into the 455th account, they would want to update the ...
2
votes
1answer
106 views

How can I get the raw tx hex from bitcoind with the txid?

Is there any way to get the raw tx hex when I know the txid using bitcoind not third party. Currently I'm using a thirdparty (blockcypher) but now I want to switch to bitcoind.
1
vote
1answer
65 views

How do I get my private key?

Background I saw this on the internet I didn't think signing / verifying was possible with P2SH addresses, so I guess this wallet must be using something like signmessagewithprivkey ¯\_(ツ)_/¯ ...
2
votes
1answer
115 views

How to generate a P2WSH address

getnewaddress "" bech32 generates a P2WPKH address (e.g. tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx). How can I generate a P2WSH address (e.g. ...
0
votes
1answer
44 views

How can I detect which network I'm connected to?

I'm in a unit test and I would like to use different test addresses depending on which network I'm connected to, to keep test output limited to the network I'm actually connected to. I know I can run ...
0
votes
2answers
389 views

bitcoin-cli could not locate RPC credentials

I'm running a bitcoind 0.16 and it seem working, blockchain in sync etc.. I've used the "new" rpcauth, which is non deprecated so kind of referennce as explained here: https://github.com/bitcoin/...
0
votes
0answers
34 views

i can sync only “headers block”?

My question about the "bitcoin core", i need "header blocks" only, i can sync only "headers block"? in other words i do not need "transaction data" because its size is very large. Is there any ...
1
vote
0answers
49 views

Bitcoin-cli using getblock to retrieve historical data

I have recently set up a bitcoin node using bitcoind and want to perform some historical queries on the blockchain using getblock with verbosity set to 2. I am using the default bitcoin.conf file but ...
0
votes
0answers
71 views

Bitcoin rpc-json for web javascript

So is there any js file that you can use to connect a json-rpc server on a client side website? I seem to find one for PHP but not JavaScript or there isn't one?
0
votes
1answer
31 views

Less circuitous way to get network fee in raw transaction

I have my code working correctly now to create and send a transaction with the correct network fee. Here is my pseudo-code using the json rpc: Estimate network fee using estimatesmartfee "ECONOMICAL" ...
0
votes
1answer
47 views

How to get lost passphrase?

I set up the bitcoin daemon and galaxycash daemon on my server. And i was using this library easybitcoin.php to contact the daemon via rpc . Somehow i remeber that i used this function ...
0
votes
0answers
158 views

PHP Curl not connecting to Electrum port

I have a php script, same server as Electrum, that is attempting to Curl into the electrum port and run some commands. Below my code: $URL='http://127.0.0.1'; $port = 7777; $username = '...
1
vote
3answers
226 views

get the real last block

I have this code: from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException import logging rpc_user='-------' #User name is hidden rpc_password='-------' #Password hidden logging....
0
votes
1answer
47 views

Query publicly available full nodes

I don't want to run a full node yet, but I want to build an application. How and what do I use to query publicly available nodes? What nodes besides blockchain.info are publicly available for me to ...
0
votes
1answer
62 views

Sending RPC calls asynchronously

I have ubuntu server running Bitcoin core v0.16. I'm sending RPC calls asynchronously using Guzzle (PHP library), but, e.g., if I'm importing 1000 address using importmulti command, any further ...
0
votes
0answers
135 views

How to use RPC javascript to connect to bitcoin daemon running in the server?

I'm new in RPC. I developed a board which use many coin to exchange . But my board is based on other website api to get the BTC address for users. And i want it to be independent. So i was searching ...
0
votes
0answers
33 views

Bitcoin Json-Rpc Javascript

Does anyone know if there is a lib for JSON-RPC for javascript web client-side? I tried to search on google and I cant find one.