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
25 views

What is the list of blocking RPC calls in bitcoin?

I would like to get a list of blocking rpc calls in Bitcoin Core. For example importmulti is a RPC blocking call and I would like to know the full list
0
votes
0answers
24 views

Pull Bitcoin node data from external public nodes using JSON-RPC

I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using ...
0
votes
0answers
42 views

What is the default username and password for bitcoin the rpc deamon?

What is the default username and default password for the bitcoin rpc? I have a bitcoin daemon running, but there is no bitcoin.conf file. If I attempt to query the RPC, I get a 401 Unauthorized ...
0
votes
1answer
40 views

Get raw transaction from tx id without txindex=1

I'm trying to get the raw transaction hex string of a transaction that I know the id from. I would like to do that without using txindex=1. As I assume the transaction is unspent (and confirmed) I'm ...
0
votes
1answer
14 views

Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?

Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword? Does lightning.conf read the rpcuser/rpcpassword from bitcoin.conf? This question was ...
1
vote
1answer
40 views

Why does Bitcoin Core's RPC interface not use encryption?

As the Bitcoin Core docs state: Although Bitcoin Core's RPC interface does use authentication, it does not use encryption, so your login credentials are sent as clear text that can be read by anyone ...
0
votes
1answer
47 views

How do I use Bitcoin Core (fully synced) to "backtrack" a receive address?

I'm trying to "reverse-track" my current Bitcoin wallet to see its exact history on the blockchain, backwards. I have a fully synced Bitcoin Core installed. What command do I use in its ...
1
vote
0answers
39 views

Add inputs and outputs to a transaction signed with sighash SINGLE | ANYONECANPAY

I created a transaction with one input and one output, and signed it using sighash SINGLE | ANYONECANPAY. Can I add further inputs and outputs with another wallet using bitcoin-cli?
0
votes
1answer
35 views

Fuzzing descriptor wallet RPCs

Is SQL injection a possibility while using JSON-RPC and Descriptor wallet RPCs? Consider one parameter in some descriptor wallet RPC is vulnerable and returns some data with SQL queries that shouldn't ...
1
vote
0answers
16 views

How to internally call another RPC command inside bitcoin core server?

I'm new to Bitcoin Core development, and I am trying to find a way to execute another RPC command from within a new RPC command I'm trying to add. I believe the Node interface has the executeRpc() ...
0
votes
0answers
38 views

How to compute deposits from the output of listsinceblock?

I am writing a program that, given the JSON outputs from multiple separate RPC calls to listsinceblock, stores valid deposit transactions in a database and then computes the total deposit for every ...
1
vote
1answer
20 views

`addmultisigaddress` syntax for POST request

Copied the body part from https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/addmultisigaddress/ and replaced addresses with 2 new addresses (regtest): POST / HTTP/1.1 Host: localhost:18333 ...
1
vote
0answers
27 views

Issues connecting to BTC rpc using php JSON requests

im trying to connect my website to my wallet via php based rpc commands. Any altcoin i connect to works just fine, using a file setting the rpc variables... $rpc_host = '127.0.0.1'; $rpc_user = '...
4
votes
1answer
185 views

Why does Bitcoin Core support a transaction index but not an address index?

Bitcoin Core has the CLI option -txindex to maintain a full transaction index for RPC calls. That sounds useful for some use cases, like for a blockchain explorer. It seems perfectly logical then that ...
3
votes
1answer
269 views

What is `ping` RPC used for?

ping doesn't return anything so what is it used for? If a user wants to ping and check ping time for all peers, getpeerinfo can be used.
1
vote
1answer
162 views

RPC on Umbrel via SSH - some bitcoin-cli commands don't return value

I connected to my Umbrel full node from a terminal via SSH, and found that some of the bitcoin-cli commands don't return any value while others work fine. Some examples: Working - help, getinfo, ...
1
vote
1answer
33 views

Calculating total sum of bitcoins sent by wallet

I'd like to calculate the total amount of bitcoin sent to anyone from a known wallet address. My initial idea was to page through everything returned by the listtransactions RPC, get the transaction ...
2
votes
1answer
128 views

CVE-2018-20586 and RPC AUTH

I was reading about CVE-2018-20586 which allowed injection of arbitrary data into the debug log via an RPC in https://medium.com/@lukedashjr/cve-2018-20586-disclosure-ff3e1ab9a21f One thing that I ...
0
votes
0answers
22 views

Reuse of rpc cookie authentication

I'm looking for clarification of an answer on original thread where the accepted answer states "This option (the authentication result from Python) can be specified multiple times" As I ...
1
vote
1answer
122 views

How do I get coin supply on Bitcoin core?

I've seen in other QT wallets I can get how many coins are in circulation typing a command like getsupply, they also have this information in the output of the command getblock <hash>. Is there ...
1
vote
0answers
38 views

BITCOIN: get bitcoin transactions list by time using RPC on my node

I want to get the transaction list of a bitcoin node i have. I need to know: How do i get the transaction list filtered by time (1h, 2h,...) using RPC, I have been searching on bitcoin developer: RPC ...
0
votes
1answer
23 views

How to see the balance change from each block

Given a new bitcoin block, I want to see: Which address have balance change. I.E., send / receive The amount of that change Is there any RPC endpoint to achieve that purpose? Basically, I maintain ...
1
vote
1answer
46 views

Looking for a tiny go/golang snippet to connect to bitcoin core json rpc

I've done it previously in C++ and I'm currently learning go/golang I'd rather do it "from scratch" rather than trust a third party's library Just a call from golang for a json-rpc call to ...
0
votes
1answer
56 views

How to quickly get the target of the next block to be mined from bitcoin-core over RPC?

The target for the next block is available in getblocktemplate but I can not figure out if there is a way to get the target without also getting all of the pending transactions, which can take a very ...
1
vote
1answer
82 views

Public Bitcoin Nodes? [No API]

i've been searching for hours now. Also on StackExchange here. Are there any public nodes that i can connect to using jsonrpc? I want to lookup stuff (im not into generating priv keys or anything) but ...
1
vote
0answers
63 views

Rate limits Bitcoin Core JSON-RPC

I am trying to brute force using Burp Suite to create wallets in Bitcoin Core with random strings(size:5) containing special characters. Context: https://github.com/bitcoin/bitcoin/issues/21510 ...
0
votes
0answers
30 views

Need to configure Bitcoin RPC bitcoin.conf for production ecosystem

hello I'm building a little exchange website and need a simple solution to integrate via api, I'm looking for something that allows bitcoin payments to be sent to bitcoin addresses for users who will ...
2
votes
1answer
51 views

What does the sixth line in the output of the Bitcoin Core GUI RPC command "gettxoutsetinfo" mean?

An example of the output of this RPC command is as follows. 1 "height":n, (numeric) The current block height (index) 2 "bestblock": "hex", (string) The hash of ...
0
votes
0answers
63 views

Connecting Ledger Nano X wallet to my Bitcoin node

I've been trying to connect my Ledger nano x to my bitcoin full node following this instructions by Ledger. I have configured the bitcoin.conf file as follows: prune=0 txindex=1 server=1 daemon=1 ...
0
votes
1answer
253 views

How do I use the getblocktemplate RPC command of Bitcoin Core GUI? I tried the following usages but none of them worked

I tried the following commands, but none of them worked. -getblocktemplate "segwit" -Error: Error parsing JSON: segwit -getblocktemplate ("segwit") -Error: Error parsing JSON: ...
0
votes
1answer
36 views

How to get _integer_ satoshi values from JSON RPC?

It seems that RPC calls for getting JSON information on blocks return "value" fields in bitcoins, not in satoshis. This means that there is a conversion from integer to float somewhere, ...
0
votes
0answers
30 views

bitcoin-cli sendmany but not shown explorer

I sent bitcoin to 93 people with sendmany function. It made a tx id = "abc7f3f878fe0fff59bd295ea1a7f86c4a13f1ea8bbd3eb52629f040d06069b4" but I couldn't show in bitcoin explorer. I ran ...
2
votes
1answer
49 views

How do you determine whether Bitcoin Core is synced fully or not from the RPC API?

I keep getting the wrong numbers returned daily in the beginning of the day because Bitcoin Core has not yet synced the blockchain from the computer being powered off during the night. So I need a way ...
2
votes
1answer
146 views

What is the purpose of submit header relative to submit block?

I understand what the usage is for submit block, but submit header exists in the RPC API reference. Is that a legacy function? Or can it still be used? Thanks
0
votes
1answer
82 views

Connecting a Hardware wallet to a full node

I'm trying to connect my hardware wallet to my personal full node for the sake of privacy. I need to know the node's IP, port, and RPC credentials. The first two are easy, I can see my full node in ...
0
votes
1answer
61 views

Cannot remote to regtest node with curl cmd - Empty reply from server

Hi I'm new to rpc curl cmds and having some issues connecting to my regtest node. I'm getting "empty reply from server" which makes me think it is connecting but something is misconfigured. ...
0
votes
2answers
142 views

Scan ports for my onion bitcoin node and RPC calls

I'm getting to work my first bitcoin node, it is running P2P through Tor network. 1: How can it be scanned? how can I see if its exposing any port, or port 8333? 2: How can I make RPC calls through ...
0
votes
1answer
336 views

How do I solo mine with bitcoind-rpc?

I found this script: https://github.com/jgarzik/pyminer But it uses getwork RPC call, which resulting me this: error code: -32601 error message: Method not found From https://en.bitcoin.it/wiki/...
0
votes
2answers
46 views

Multisig synchronization

I understand what the multisig wallets are but I need help understanding what exactly this script does: https://gist.github.com/gavinandresen/3882537 If I understand correctly, bitcoinds are bitcoin ...
0
votes
1answer
33 views

With sendmany, how to specify the "subtractfeefrom" so that I pay the fee, but it's not subtracted from any of the "inner transactions"?

https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/sendmany/ If I don't want the recipient to pay the fee, but I also don't want to subtract the fee from any of the "inner transactions" ...
3
votes
1answer
71 views

What does the RPC call "getmemoryinfo" show?

What does the output of the RPC call getmemoryinfo actually mean? For example, this is from my node running in Docker. Does that mean the bitcoind process inside the container is only using 64272 ...
-2
votes
1answer
27 views

What data i can save? [closed]

i'm make one application about bitcoin, and I'm searching that data i can save, I'm read that the public key i can save in my database and privit key no, but i dont know, what more data i can save, I ...
0
votes
1answer
31 views

What is the difference between "time" and "timereceived"?

https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/listsinceblock/ : "time" : xxx, (numeric) The transaction time expressed in UNIX epoch time. "timereceived" ...
2
votes
2answers
158 views

What exactly is the "vout" field?

This is driving me nuts. Through trial-and-error, asking numerous people and attempting to read endless articles and manuals, I've come to the conclusion that the "transactions" listed by ...
-1
votes
2answers
34 views

What exactly is the new (?) "to" field in the Bitcoin Core RPC API?

https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/listsinceblock/ "to" : "str" (string) If a comment to is associated with the transaction. I've read that ...
0
votes
0answers
18 views

What is the purpose of the "category" Bitcoin Core RPC API field/property?

When using the Bitcoin Core RPC API to list the transactions, there is a "category" property, which can apparently be either "send" or "receive". Then there's the "...
1
vote
1answer
50 views

bitcoin core RPC vs bitcoin libraries

What is the main difference between using one of the bitcoin libraries to create a project and using bitcoin core json RPC API directly by connecting to your node for everything? If the library has no ...
0
votes
0answers
43 views

Handle multiple wallets with easybitcoin

I want to create a wallet for every user. With the easybitcoin rpc, I would like to call up the balance in php. Everything runs in the testnet. I found out that I have to adjust the initialization ...
1
vote
0answers
78 views

listreceivedbyaddress does not return any information about change addresses, is there any alternative?

listreceivedbyaddress does not return info about change addresses (m/84'/1'/0'/1/*) , only about receiving addresses (m/84'/1'/0'/0/*). I've found out that getreceivedbyaddress "address" ...
0
votes
1answer
53 views

How to get sender address from transaction with JSON RPC?

I'm using JSON-RPC call to connect to local bitcoin node on my clouding server. I could get all transactions with wallet name by using gettransactions. Now I need to get sender's address for each ...

1
2 3 4 5
16