Warning: SQLite3::querySingle(): Unable to prepare statement: 1, no such table: sites in /home/admin/web/local.example.com/public_html/index.php on line 46
 RPC API Reference — Bitcoin

RPC API Reference — Bitcoin

Bitcoin - The Currency of the Internet

A community dedicated to Bitcoin, the currency of the Internet. Bitcoin is a distributed, worldwide, decentralized digital money. Bitcoins are issued and managed without any central authority whatsoever: there is no government, company, or bank in charge of Bitcoin. You might be interested in Bitcoin if you like cryptography, distributed peer-to-peer systems, or economics. A large percentage of Bitcoin enthusiasts are libertarians, though people of all political philosophies are welcome.
[link]

Blockchain Engineering - News & Technical Developments around Decentralized Ledger System

Blockchain Engineering is a Subreddit dedicated to News & Technical Development around Blockchains including Cryptocurrencies such as Bitcoin, Ethereum.
[link]

Bitcoin W Spectrum (BWS)

[link]

Write your own Bitcoin RPC API in Javascript (Node.js and React)

If you are running a full node, it's easy to setup an app that interfaces with it using a backend API such as Node, Python, etc. There's a good tutorial here about it if you want to build Node/React Javascript apps on top of Bitcoin Core! You can make a block explorer, testnet wallet, node dashboard, and more.
https://medium.com/@peterjd42/build-your-own-bitcoin-api-using-node-js-and-bitcoin-core-251e613623db
submitted by FunOptimizer42 to Bitcoin [link] [comments]

Peter McCormack makes his first Bitcoin RPC call...

(ring ring)
Woman: RPC Legal, how may I help you?
Peter: Hi, it's Peter McCormack can I speak to...
Woman (interrupts Peter): Ah hello Peter. Yes, we've all been expecting your call.
(woman laughs and some faint laughter of others is heard in the background)
Woman: I'll put you through to your solicitor.
(pause)
Solicitor: Peter. Good morning.
Peter: Hi I had a message to call you.
Solicitor: Yes. Not good news I'm afriad.
Peter: Oh?
Solicitor: Yes. I'm going to have to drop your case I'm afraid. Sorry, I can't represent you.
Peter: Huh? Why? What's happened?
Solicitor: Let me be blunt. Excuse the language. Are you a fucking idiot? What the heck were you doing on Twitter? Did you not think for one minute to actually go and investigate this Craig Wright yourself before slandering him?
Peter: Uh. Uh. But. But. What do you mean?
Solicitor: I can't represent you. Sorry.
Peter: What about the £100,000 I sent you? I want my money back.
Solicitor: Did you read the legal contract? I presume you didn't cause I did not Tweet it to you.
Peter: No. I want my money back.
Solicitor: Well if you read it you'll see that at this stage after our initial investigations of your case - or to be more honest what you seemed to think was a case, well you have to forefit 75% I'm afraid. It's in the contract.
Peter: That's not fair.
Solicitor: Life's not fair Peter. You did sign the contract. If you don't like it feel free to slander us here at RPC about it on Twitter and we'll collect a lot more from you.
Peter: So how much do I get back?
Solicitor: Well I can return £25,000 to you which is the 25%
Peter: Can you send me a cheque?
Solicitor: Hmmm. Well I didn't want to be sitting on the money so I invested it all. Is £25,000 worth of Bitcoin OK?
Peter: I guess so, as long as you pay the $5 transaction fee.
Solicitor: $5 transaction fee? What are you talking about? BSV transaction fee is less than a penny.
Peter: Whaaaaatttttt. You bought Bitcoin SV?
Solicitor: No I bought Bitcoin. Why do you call it Bitcoin SV? As far as I can see it is Bitcoin. I soon realised just how bad your case was Peter. But I kept reading and studying and I felt compelled to buy some.
Peter: What made you do that?
Solicitor: It's What Bitcoin Did Peter, it's What Bitcoin Did. Bye.
(click)
submitted by jim-btc to bitcoincashSV [link] [comments]

Searching for a GUI front-end for the bitcoin RPC protocol.

Following an old post that is outdated without useful referred projects: https://www.reddit.com/Bitcoin/comments/3cx061/looking_for_a_bitcoin_core_rpc_wallet_guimanage
There seems to be a large scarcity of such projects, all that I have found are dreadfully outdated or unkept. Pretty simple query, but I assume with little answers.
submitted by LaptonSpark to Bitcoin [link] [comments]

Peter McCormack makes his first Bitcoin RPC call...

(ring ring)
Woman: RPC Legal, how may I help you?
Peter: Hi, it's Peter McCormack can I speak to...
Woman (interrupts Peter): Ah hello Peter. Yes, we've all been expecting your call.
(woman laughs and some faint laughter of others is heard in the background)
Woman: I'll put you through to your solicitor.
(pause)
Solicitor: Peter. Good morning.
Peter: Hi I had a message to call you.
Solicitor: Yes. Not good news I'm afriad.
Peter: Oh?
Solicitor: Yes. I'm going to have to drop your case I'm afraid. Sorry, I can't represent you.
Peter: Huh? Why? What's happened?
Solicitor: Let me be blunt. Excuse the language. Are you a fucking idiot? What the heck were you doing on Twitter? Did you not think for one minute to actually go and investigate this Craig Wright yourself before slandering him?
Peter: Uh. Uh. But. But. What do you mean?
Solicitor: I can't represent you. Sorry.
Peter: What about the £100,000 I sent you? I want my money back.
Solicitor: Did you read the legal contract? I presume you didn't cause I did not Tweet it to you.
Peter: No. I want my money back.
Solicitor: Well if you read it you'll see that at this stage after our initial investigations of your case - or to be more honest what you seemed to think was a case, well you have to forefit 75% I'm afraid. It's in the contract.
Peter: That's not fair.
Solicitor: Life's not fair Peter. You did sign the contract. If you don't like it feel free to slander us here at RPC about it on Twitter and we'll collect a lot more from you.
Peter: So how much do I get back?
Solicitor: Well I can return £25,000 to you which is the 25%
Peter: Can you send me a cheque?
Solicitor: Hmmm. Well I didn't want to be sitting on the money so I invested it all. Is £25,000 worth of Bitcoin OK?
Peter: I guess so, as long as you pay the $5 transaction fee.
Solicitor: $5 transaction fee? What are you talking about? BSV transaction fee is less than a penny.
Peter: Whaaaaatttttt. You bought Bitcoin SV?
Solicitor: No I bought Bitcoin. Why do you call it Bitcoin SV? As far as I can see it is Bitcoin. I soon realised just how bad your case was Peter. But I kept reading and studying and I felt compelled to buy some.
Peter: What made you do that?
Solicitor: It's What Bitcoin Did Peter, it's What Bitcoin Did. Bye.
(click)
submitted by jim-btc to bitcoinsv [link] [comments]

Bitcoin RPC sends the remaining coins to random address?

I've send a couple of transactions using the RPC server from one of the generated addresses, the problem is that each time a transaction is sent the remaining coins end up being send to a random address, which seems to be also in control of the RPC server. Those address start with the number 3, although I don't know if that has something to do with the issue.
Does anyone know why is that happening?
Can that behavior be disabled, and if so, is it safe to do so?
submitted by rraallvv to Bitcoin [link] [comments]

Accessing Bitcoin's RPC service from PHP

Accessing Bitcoin's RPC service from PHP submitted by gr0kch8n to Bitcoin [link] [comments]

Are there any PHP-based Bitcoin RPC Libraries that are recommended? I am only trying to view transaction history / address-holdings.

Hello, I am aware of the dangers of trusting RPC calls for actually signing/broadcasting transactions -- I do not wish to do this!
I do wish to see the balance given a BTC address, and ideally the previous transactions leading up to the given address' balance.
A cursory google shows me there are a multitude of options. I figured asking you wonderful folks would help ensure I am using the right option!
Thank you very much my friends,
submitted by honestlyimeanreally to btc [link] [comments]

Bitcoin RPC sends the remaining coins to random address? /r/Bitcoin

Bitcoin RPC sends the remaining coins to random address? /Bitcoin submitted by ABitcoinAllBot to BitcoinAll [link] [comments]

Why am I getting exit code 1 after stopping bitcoin RPC server? /r/Bitcoin

Why am I getting exit code 1 after stopping bitcoin RPC server? /Bitcoin submitted by ABitcoinAllBot to BitcoinAll [link] [comments]

Bitcoin RPC

I'm creating a simple php script. When user send the payment, the payment is split and X% goes to fee wallet and Y% goes to another wallet.

Seems I can't use "sendfrom" twice even doing the right math:
feeWallet = $bitcoin->sendfrom($account, $addFee, $fee, 0); restWallet = $bitcoin->sendfrom($account, $addRest, $rest, 0); 
My code is:

getbalance($account, 1); #do a math to remove X% $feeMath = fee($tax, $balance); #I was receiving "invalid amount" error. Fixed with this, I was giving 9 instead of 8 after zero. See satoshis for more. $feeFormated = number_format($feeMath, 8); #remove the fee from current balance $restMath = $balance - $feeFormated; #send the fee to the address xxxx $sendingFee = $bitcoin->sendfrom($account, $addFee, $feeFormated, 0); #send the balance minus fee to the address yyy $sendingRest = $bitcoin->sendfrom($account, $addFee, $restMath, 0); $err = $bitcoin->error; #Print message for control print_r("Fee TXID = " . $sendingFee . " Amount sent = " . "" . $feeFormated . "

"); print_r("Rest TXID = " . $sendingRest . " Amount sent = " . "" . $restMath . "

"); print_r("It's not working because: " . $err); echo var_dump($sendingFee) . "

"; echo var_dump($sendingRest) . "

"; ?>
This code return:

Fee TXID = 052024dba72141d83653d0318f927c3268fd2b7a443e26215785dd40f22af97e Amount sent = 0.00867206 Rest TXID = Amount sent = 0.07804852 It's not working because: Invalid amount string(64) "052024dba72141d83653d0318f927c3268fd2b7a443e26215785dd40f22af97e" bool(false) 
But the problem is, I can send the fees but I can't send the "rest". What I'm doing wrong? Anybody can help?
submitted by JustinB1ber to Bitcoin [link] [comments]

Why am I getting exit code 1 after stopping bitcoin RPC server?

This is how I'm starting and stopping bitcoin from a service unit
[Service] ExecStart=/usbin/bitcoind -daemon=0 -datadir=/home/jsonrpc/bitcoin -conf=/home/jsonrpc/bitcoin/settings.conf ExecStop=/usbin/bitcoin-cli -datadir=/home/jsonrpc/bitcoin -conf=/home/jsonrpc/bitcoin/settings.conf stop 
And this is what I get when I stop the service:
Shutdown requested. Exiting. Interrupting HTTP RPC server Interrupting RPC Shutdown: In progress... Stopping HTTP RPC server Stopping RPC RPC stopped. scheduler thread interrupt Shutdown: done bitcoin.service: Main process exited, code=exited, status=1/FAILURE 
debug.log
2018-11-21T18:02:16Z Bitcoin Core version v0.17.0.0-ge1ed37edaedc85b8c3468bd9a726046344036243 (release build) 2018-11-21T18:02:16Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2018-11-21T18:02:16Z Assuming ancestors of block 0000000000000000002e63058c023a9a1de233554f28c7b21380b6c9003f36a8 have valid signatures. 2018-11-21T18:02:16Z Setting nMinimumChainWork=0000000000000000000000000000000000000000028822fef1c230963535a90d 2018-11-21T18:02:16Z Using the 'standard' SHA256 implementation 2018-11-21T18:02:16Z Default data directory /home/jsonrpc/.bitcoin 2018-11-21T18:02:16Z Using data directory /home/jsonrpc/bitcoin 2018-11-21T18:02:16Z Using config file /home/jsonrpc/bitcoin/settings.conf 2018-11-21T18:02:16Z Using at most 4 automatic connections (1024 file descriptors available) 2018-11-21T18:02:16Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements 2018-11-21T18:02:16Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements 2018-11-21T18:02:16Z Using 0 threads for script verification 2018-11-21T18:02:16Z HTTP: creating work queue of depth 16 2018-11-21T18:02:16Z Starting RPC 2018-11-21T18:02:16Z Starting HTTP RPC server 2018-11-21T18:02:16Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation. 2018-11-21T18:02:16Z HTTP: starting 2 worker threads 2018-11-21T18:02:16Z Using wallet directory /home/jsonrpc/bitcoin 2018-11-21T18:02:16Z init message: Verifying wallet(s)... 2018-11-21T18:02:16Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2018-11-21T18:02:16Z Using wallet wallet.dat 2018-11-21T18:02:16Z BerkeleyEnvironment::Open: LogDir=/home/jsonrpc/bitcoin/database ErrorFile=/home/jsonrpc/bitcoin/db.log 2018-11-21T18:02:16Z scheduler thread start 2018-11-21T18:02:24Z Cache configuration: 2018-11-21T18:02:24Z * Using 2.0MiB for block index database 2018-11-21T18:02:24Z * Using 8.0MiB for chain state database 2018-11-21T18:02:24Z * Using 40.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space) 2018-11-21T18:02:24Z init message: Loading block index... 2018-11-21T18:02:24Z Opening LevelDB in /home/jsonrpc/bitcoin/blocks/index 2018-11-21T18:02:25Z Opened LevelDB successfully 2018-11-21T18:02:25Z Using obfuscation key for /home/jsonrpc/bitcoin/blocks/index: 0000000000000000 2018-11-21T18:03:38Z LoadBlockIndexDB: last block file = 1425 2018-11-21T18:03:38Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=71, size=79377521, heights=549167...549288, time=2018-11-07...2018-11-08) 2018-11-21T18:03:38Z Checking all blk files are present... 2018-11-21T18:03:47Z Opening LevelDB in /home/jsonrpc/bitcoin/chainstate 2018-11-21T18:03:47Z Opened LevelDB successfully 2018-11-21T18:03:48Z Using obfuscation key for /home/jsonrpc/bitcoin/chainstate: XXXXXXXXXXXXXXXX 2018-11-21T18:03:50Z Loaded best chain: hashBestChain=0000000000000000001d43d5aeb32c7d5158e48da84b896413e6439d09e53081 height=548521 date=2018-11-03T01:39:02Z progress=0.989162 2018-11-21T18:03:50Z init message: Rewinding blocks... 2018-11-21T18:04:22Z init message: Verifying blocks... 2018-11-21T18:04:22Z Verifying last 6 blocks at level 3 2018-11-21T18:04:22Z [0%]...[16%]...ThreadRPCServer method=stop user=deploy 2018-11-21T18:17:13Z block index 889465ms 2018-11-21T18:17:13Z Shutdown requested. Exiting. 2018-11-21T18:17:14Z Interrupting HTTP RPC server 2018-11-21T18:17:14Z Interrupting RPC 2018-11-21T18:17:14Z Shutdown: In progress... 2018-11-21T18:17:15Z Stopping HTTP RPC server 2018-11-21T18:17:15Z Stopping RPC 2018-11-21T18:17:15Z RPC stopped. 2018-11-21T18:17:16Z scheduler thread interrupt 2018-11-21T18:17:19Z Shutdown: done 
submitted by rraallvv to Bitcoin [link] [comments]

Bitcoin RPC Remote Command Execution Exploit 2017 Secure your wallets, update!

submitted by BitcoinAllBot to BitcoinAllTV [link] [comments]

Bitcoin RPC sends the remaining coins to random address? /r/Bitcoin

Bitcoin RPC sends the remaining coins to random address? /Bitcoin submitted by cryptoanalyticabot to cryptoall [link] [comments]

Bitcoin RPC vs. Torify

I want to run joinmarket behind Tor and also have it query my local bitcoin node via RPC (instead of asking blockr.io). Is this possible? When I run, e.g., yield-generator with torify it complains that it cannot make the RPC calls.
submitted by eccentricitn_flattop to joinmarket [link] [comments]

Bitcoin RPC Remote Command Execution Exploit 2017 Secure your wallets, update!

Bitcoin RPC Remote Command Execution Exploit 2017 Secure your wallets, update! submitted by BitcoinAllBot to BitcoinAll [link] [comments]

complete newbie: "Problems communicating with bitcoin RPC 0 2" ?

i saw somewhere that the bitcoin client needs to download all blocks before i can start mining.. is this possibly the reason i'm getting this error right now, while the client is still retrieving blocks?
i can't seem to find a definitive answer anywhere else.
submitted by alefnull to mtred [link] [comments]

Introducing btcrpcclient — Bitcoin RPC Made Easy

Introducing btcrpcclient — Bitcoin RPC Made Easy submitted by davecgh to Bitcoin [link] [comments]

Bitcoin RPC No Longer Able To Estimate Next Block Inclusion Fee

bitcoin-cli estimatefee 1 
https://chainquery.com/bitcoin-api/estimatefee/1
Should return the estimated fee, now returns -1 because it is unable to make an estimate.
bitcoin-cli estimatefee 2 
https://chainquery.com/bitcoin-api/estimatefee/2
Is working as expected.
submitted by CoinCadence to Bitcoin [link] [comments]

"Problems communicating with Bitcoin RPC" even while mining?

I can't figure out what is going on. I am mining, and submitting shares, but even though I have the same hash rate, I'm submitting shares at a much slower rate than on other pools. I'd prefer to use MTRed, but unless I can get this solved I'm not sure I will.
So I was watching the miner, and where it shows a live stat of my hash count it will sometimes flash the text "Problems communicating with bitcoin RPC" and then continue mining. Everything I find on that error seems to be about not being able to connect at all, but I can connect and mine, just not as efficiently as I should be able to.
Here is the command I'm running (Win 7):
poclbm.exe --platform 1 -d 1 -v -w 128 -f 60 -a 15 --user=username --pass=pass -o mtred.com -p 8337 
I also tried this, which gives me a higher hashrate so I'd like to figure out why so I can keep mining at that rate, but frequent "long polls" and still gives the RPC error:
poclbm.exe --platform 1 -d 1 --user=username --pass=pass -o mtred.com -p 8337
Any help is greatly appreciated!
EDIT: It sounds like it is a known issue. Any ideas on the long polling? Is that even a problem?
submitted by ferrarisnowday to mtred [link] [comments]

Consistently getting the "Problem communicating with bitcoin RPC" error. Any suggestions?

I've tried a few different clients, but I always get the same sort of error. I know someone posted a day ago that had the same problem, but his solution didn't work for me. I've looked around the net for awhile for a solution, but nothing seems to fix it.
For simplicity's sake, I'll just describe my GUIMiner setup:
Server: Other
Website: n/a
Host: mtred.com
Port: 8337
Username: [username registered on mtred.com]
Password: [password for registered username on mtred.com]
Device: [0-0] ATI RV770 (it's an ATI 4870)
Extra flags: (nothing)
I've added the computer running the miner to my router's DMZ (running dd-wrt) so port access shouldn't be a problem. Anyone have any suggestions?
EDIT: Also, my firewall is disabled. Added "bitcoin.exe.", "guiminer.exe", and "poclbm.exe" to my Microsoft Security Essentials list of excluded processes. Still no dice :(
EDIT 2: Rawlsdeep solved my problem. I needed to create a worker on mtred.com and use my worker's credentials as my username and password for my mining program. Hopefully this will help someone else later on!
submitted by hyppo to mtred [link] [comments]

"Not enough funds" error only when running through bitcoin-rpc

So I am trying to run a full node through Whonix and use joinmarket. I have it set up to where it works just fine with blockr. When I switch the source to bitcoin-rpc, I get "ERROR Exception: Not enough funds". Any ideas as to why joinmarket can't recognize the bitcoin in my wallet when it's using bitcoin core as the source? Bitcoin core is running, bitcoin.conf is correct, joinmarket.cfg is correct. I checked 1000 times.
Here's my log: https://paste.fedoraproject.org/358746/13709111/
EDIT: So it appears something is wrong with mixing depth 0. If I use -m 1, and have coins in that mixing depth, it works. tumbler.py and sendpayment.py fail if I have -m 0 set, regardless of if there are coins in there or not.
submitted by hilltopbandaids to joinmarket [link] [comments]

11-18 22:23 - 'Bitcoin RPC Remote Command Execution Exploit 2017 Secure your wallets, update!' (youtube.com) by /u/mra707 removed from /r/Bitcoin within 16-26min

Bitcoin RPC Remote Command Execution Exploit 2017 Secure your wallets, update!
Go1dfish undelete link
unreddit undelete link
Author: mra707
submitted by removalbot to removalbot [link] [comments]

Bitcoin JSON-RPC Tutorial 2 - VPS Setup Programming Bitcoin-qt using the RPC api (1 of 6) JSON RPC Calls with Bitcoin qt (4 of 6) Bitcoin JSON-RPC Tutorial 6 - JSON Parameters and Errors Bitcoin RPC Remote Code Execution Exploit for BitcoinCore 0.9-0.15.1 CVE-2017-9230

The Bitcoin remote RPC Miner, also referred to as puddinpop's miner after the author's forum name, is a pool miner client.. There are four miner client binaries distributed: Bitcoin supports SSL (https) JSON-RPC connections beginning with version 0.3.14. See the rpcssl wiki page for setup instructions and a list of all bitcoin.conf configuration options. Allowing arbitrary machines to access the JSON-RPC port (using the rpcallowip configuration option ) is dangerous and strongly discouraged -- access should be ... bitcoin-python-async-rpc. Lightweight Bitcoin async JSON-RPC Python client. Serves as a tiny layer between an application and a Bitcoin daemon, its primary usage is querying the current state of Bitcoin blockchain, network stats, transactions... Bitcoin is an innovative payment network and a new kind of money. Find all you need to know and get started with Bitcoin on bitcoin.org. Bitcoin.org is a community funded project, donations are appreciated and used to improve the website. Make a donation How to Do RPC Calls with C++ Bitcoind . bitcoin deamon = core value of the software (bitcoind -printtoconsole -debug=1) Bitcoind provide the RPC "interface" in which user can query with bitcoin-cli (or a library in c++). You must run bitcoind before using bitcoin-cli.

[index] [3496] [1713] [4804] [308] [2971] [5385] [4219] [2122] [5217] [1431]

Bitcoin JSON-RPC Tutorial 2 - VPS Setup

Bitcoin JSON-RPC tutorial. How to set up bitcoind on a VPS. BTC: 1NPrfWgJfkANmd1jt88A141PjhiarT8d9U. Bitcoin JSON-RPC tutorial. Handling JSON, entering parameters and receiving error messages. BTC: 1NPrfWgJfkANmd1jt88A141PjhiarT8d9U. *****UPDATE***** Solo mining has been removed from client. I'll keep the video up for how it used to work, it might still work for some alt coins (unsure) yo... Bitcoin JSON-RPC Tutorial 5 - Your First Calls - Duration: 10:06. m1xolyd1an 11,838 views. 10:06. Building a Blockchain in Under 15 Minutes - Programmer explains - Duration: 14:28. Bitcoin JSON-RPC Tutorial 2 - VPS Setup - Duration: 6:28. m1xolyd1an 14,440 views. 6:28. Steve Jobs introduces iPhone in 2007 - Duration: 10:20. John Schroter Recommended for you.

#