Questions tagged [json-rpc]

A remote-procedure-call (RPC) interface provided by the Bitcoin Core wallet and it's companion software bitcoind. This RPC interface uses the Javascript Object Notation (JSON) serialization format for data and allows other software programs to interact with Bitcoin-Core.

The Bitcoin Core JSON-RPC interface contains many commands that allow users to interact with the wallet and the node. Users can get addresses, send money, and get information about transactions and the blockchain. The JSON-RPC interface uses the JSON-RPC 1.0 specification

832 questions
39
votes
1 answer

What is the difference between the rpc port 8332 and port 8333?

What is the difference between the protocol and commands used on default ports 8332 and port 8333? From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by default, and it has one username & password. On the…
makerofthings7
  • 12,656
  • 11
  • 60
  • 129
38
votes
10 answers

How to check if the block chain is up to date using bitcoind or json-rpc?

I read the full api method list and did not seem to find one. I suppose there is no command specifically for that purpose, so what is the general way of doing this? I would consider checking the time stamp of the last generated block, but the…
Steven Roose
  • 11,473
  • 8
  • 44
  • 71
27
votes
5 answers

how to monitor +20,000 addresses for new received transactions?

I have around 20000 generated addresses which I want to monitor for new transactions. More addresses should probably come. Customers should use every address only once but I would like to monitor already used addresses if some of them decide to…
curiosity
  • 365
  • 3
  • 6
25
votes
2 answers

json-rpc via curl

I'am running Bitcoin-qt 0.8.6.1-beta on Qt 4.8.3 on windows 7 64. below is my .conf content in %appdata%/bitcoin folder rpcuser=bitcoinrpc rpcpassword=ahything rpcallowip=127.0.0.1 rpcallowip=192.168.*.* rpcport=9332…
Gian
  • 376
  • 1
  • 3
  • 5
24
votes
3 answers

Bitcoin-Qt command line control on Mac

I'm trying to communicate with the new Bitcoin-Qt -server via a command line on Mac. I run ./Bitcoin-Qt -server, the application starts, but my terminal window is stuck on an empty line (no matter what I type in, there is no response). Only when I…
ThePiachu
  • 42,931
  • 25
  • 138
  • 347
23
votes
1 answer

Get non-wallet transactions using bitcoin rpc (gettransaction)

I am playing around with Bitcoin-qt. I want to iterate all blocks and all their transactions. So far I've been able to get a list of all tx's in the blocks I want to. Now I want to get information about the transaction: Amount, confirmations and so…
Lars Holdgaard
  • 425
  • 2
  • 4
  • 8
22
votes
2 answers

How do I use walletnotify?

I have bitcoin daemon and I want to use the walletnotify option with a json-rpc call. Some of the examples use a "transaction.sh" file for walletnotify. What is it for? What do I have to write in that sh file, to make walletnotify work for more than…
M.R
  • 501
  • 1
  • 4
  • 11
17
votes
2 answers

What is rpcuser?

Can I just make up a value for rpcuser/rpcpassword in bitcoin.conf? Or do I have to set one up somewhere?
Charlie
  • 171
  • 1
  • 1
  • 3
15
votes
1 answer

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, non-SegWit clients?
Paul
  • 361
  • 1
  • 3
  • 11
13
votes
1 answer

Why is JSON-RPC over SSL "strongly discouraged"?

The Wiki contains a page that simply states: JSON-RPC over SSL is strongly discouraged Why? I found a method for enabling JSON_RPC over SSL here. The post mentions nothing about JSON-RPC over SSL being strongly discouraged. What risks do I run by…
Rich Apodaca
  • 2,311
  • 2
  • 14
  • 34
12
votes
2 answers

How to setup a LAN network with only one bitcoind client downloading the blockchain?

I want to do the following: I have one small server PC at home. I want to install bitcoind on that machine to download the blockchain information. Then I want this machine to accept RPC calls from my LAN network and setup all other bitcoin clients…
Steven Roose
  • 11,473
  • 8
  • 44
  • 71
12
votes
2 answers

What is chainwork?

If I run the RPC call getBlock on the bitcoin-qt client it gives me field called chainwork containing a hash. I can't find any information what this value is about. Request: getblock…
Dennis Kriechel
  • 1,763
  • 4
  • 16
  • 34
12
votes
1 answer

What is the difference between time, blocktime and timereceived?

What is exactly the difference between time, blocktime and timereceived in transaction information returned by Bitcoind JSON RPC API? For example: { "amount": 0.02, "blockindex": 45, "time": 1306179671, "category": "receive", …
Alexey Kalmykov
  • 754
  • 6
  • 18
10
votes
2 answers

Is there a light (SPV) version of bitcoin core (bitcoind)?

I'm trying to develop an SPV Bitcoin client which makes use of a library requiring bitcoin core (a running bitcoind service). However, from what I understand, Bitcoin Core is full node, meaning that it stores the whole blockchain. My question is:…
FedFranz
  • 642
  • 5
  • 16
10
votes
1 answer

error : incorrect rpcuser or rpcpassword (authorization failed)

I started bitcoind -datadir=/mnt/btc but everytime I try to use bitcoin-cli it says : error : incorrect rpcuser or rpcpassword (authorization failed) I can't find bitcoin.conf (neither in the default datadir ~/.bitcoin neither in /mnt/btc). Any…
ChiseledAbs
  • 365
  • 2
  • 3
  • 7
1
2 3
55 56