Bitcoin Forum
July 12, 2024, 04:21:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPC access just with URL?  (Read 534 times)
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 04:52:39 PM
 #1

Can I access a -qt wallet by just sending a well defined URL?

e.g. something like
Code:
http://localhost:18490/?jsonrpc=1.0&id=urltest&params=[]&method=getinfo
which at the moment only gives an empty page. What is wrong with that?

I ask because with
Code:
http://localhost:18490
I do get a "parse error", which looks promising :-)


(Replace the portnumber 18490 with any other of any currency of which you are running a wallet, of course)


no sign of a signature
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 26, 2014, 04:54:02 PM
 #2

https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29#Command_line_.28cURL.29

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 26, 2014, 06:09:46 PM
 #3


Yes, thanks. That's exactly where I got my inspiration :-)


But how to do the same thing only in the address field of my browser?

e.g. something like
Code:
http://localhost:18490/?jsonrpc=1.0&id=urltest&params=[]&method=getinfo
which at the moment only gives an empty page. What is wrong with that?
I ask because with
Code:
http://localhost:18490
I do get a "parse error", which looks promising :-)


no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 27, 2014, 12:38:26 AM
 #4

But how to do the same thing only in the address field of my browser?
e.g. something like
Code:
http://localhost:18490/?jsonrpc=1.0&id=urltest&params=[]&method=getinfo
or http://localhost:18490/?jsonrpc=1.0&id=urltest&params=[]&method=getmininginfo
or http://localhost:18490/?jsonrpc=1.0&id=urltest&params=[]&method=getbalance
or http://localhost:18490/?jsonrpc=1.0&id=urltest&params=["CTVHuvvdJj61fC1mzFAQ4V1TrYBb8QTpiA","1","enjoy"]&method=sendtoaddress

Possible?  If so, where is my mistake? How to do it?  Anyone?

no sign of a signature
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
February 27, 2014, 01:05:41 AM
 #5

not possible because RPC doesn't accept GET requests.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!