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

859 questions
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
8
votes
3 answers

What's the difference between the Bitcoin's peer to peer protocol and the RPC API?

Bitcoin implements both a peer-to-peer synchronization protocol (normally on port 8333) and a JSON-RPC API (normally on port 8332). What are these designed to accomplish? If I'm trying to implement a wallet that doesn't need bitcoind to be…
Nick ODell
  • 29,396
  • 11
  • 72
  • 130
6
votes
1 answer

How to test Bitcoin's RPC interface?

I can't find any tool to test RPC interface. I am looking for something like Postman (Chrome extenstion). I would like to send request (with login and password) and see their responses in JSON.
user57451
  • 61
  • 3
5
votes
1 answer

RPC connection fails after too many queries

I'm building a node.js app that uses a json-rpc connection to fetch information from the bitcoin daemon. It works great, except every once in a while, the RPC connection "fails." It goes down for anywhere from 1-20 seconds. Querying it via the…
Nathan
  • 163
  • 2
4
votes
0 answers

Bitcoin RPC: How to find the transaction that spends a TXO?

I suspect there is no good way to do it. However is there any sub-optimal way to find the transaction that spends a transaction output (knowing the txid and index) with Bitcoin RPC? Assuming txindex=1 and prune=0. This was the more general…
nopara73
  • 816
  • 6
  • 21
4
votes
2 answers

Debug log for RPC access log

How can I enable RPC access debug log on my bitcoind. My application calls some commands to the bitcoind via RPC. I want to see all of RPC accesses with their parameters like command name and caller IP address as well if possible.
zono
  • 1,935
  • 1
  • 20
  • 35
4
votes
2 answers

Full list of RPCs - including hidden RPCs

Where can I find a full list of RPCs that are not listed in the output of the help command? (such as invalidateblock etc.)
Aliakbar Ahmadi
  • 1,659
  • 1
  • 12
  • 23
3
votes
1 answer

How do I read the time field from the json-rpc calls from bitcoind?

The JSON-RPC would return the time in this format "time": 1346289025. How exactly do I read it? I don't know what kind of format it is. So what time is 1346289025?
user102938
  • 31
  • 1
3
votes
0 answers

getblocktemplate times out after being called many times

I am writing a program about bitcoin mining. It calls the RPC method getblocktemplate every second. Sometimes bitcoind doesn't reply to my RPC getblocktemplate request, but bitcoind still accepted new transactions and downloaded new blocks, but RPC…
Eleven
  • 187
  • 7
3
votes
1 answer

listtransactions RPC call

bitcoin-cli help listtransactions returns: listtransactions ( "account" count from ) Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'. Arguments: 1. "account" (string, optional) The…
Doug Peters
  • 1,366
  • 15
  • 23
3
votes
2 answers

Store bitcoin transactions in mysql

How can I use the jsonRPC for the bitcoin client to export the chain into mysql and then sync the two as transactions come in? I'm writing a blockchain explorer for a new alt coin and unfortunately ABE won't work for this particular coin. I can…
6paq
  • 33
  • 4
2
votes
1 answer

Should I keep my RPC credentials private?

I am wondering if there are any security issues with other's knowing my RPC credentials. I'm not familiar with RPC and how it works or anything. Reason I'm asking... I make youtube videos. Right now I'm editing one where I am using the Lightning…
2
votes
1 answer

Does listsinceblock list all transactions, or only transactions my wallet is interested in?

Wondering if I call listsinceblock "", will I get all transactions that ever occurred on the blockchain regardless of whether my wallet was party to it, or will it only be a list of transactions relevant to my wallet (things I've sent/received/have…
Caius Jard
  • 197
  • 7
2
votes
1 answer

Json-rpc fails with "No connection could be made because the target machine actively refused it"

Playing around with litecoin json-rpc running on windows (the API is the same as bitcoin, so I am using bitcoin's references). My litecoin.conf has the following data: rpcuser=user rpcpassword=pass txindex=1 Based on the documentation I started the…
Salvador Dali
  • 3,360
  • 7
  • 31
  • 50
2
votes
1 answer

How to do "sendmany" without accounts?

As the account system is deprecated, I am not using it. But when I try use json-rpc call sendmany, I get the error: "Account has insufficient funds (code -6)" But when I call getbalance I have more than enough funds
John Smith
  • 21
  • 1
  • 2
1
2 3 4