Bitcoin Forum
April 25, 2018, 12:13:08 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: very simple RPC client in python  (Read 1602 times)
tcatm
Sr. Member
****
qt
Offline Offline

Activity: 337
Merit: 250


View Profile
March 20, 2011, 10:19:37 PM
 #1

I found this (unfinished) code on my harddisk. It's basically a replacement for the built-in RPC client in bitcoind. host/port/user/pass is currently hardcoded.

http://pastebin.com/Nqhq1FUs
1524658388
Hero Member
*
Offline Offline

Posts: 1524658388

View Profile Personal Message (Offline)

Ignore
1524658388
Reply with quote  #2

1524658388
Report to moderator
1524658388
Hero Member
*
Offline Offline

Posts: 1524658388

View Profile Personal Message (Offline)

Ignore
1524658388
Reply with quote  #2

1524658388
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524658388
Hero Member
*
Offline Offline

Posts: 1524658388

View Profile Personal Message (Offline)

Ignore
1524658388
Reply with quote  #2

1524658388
Report to moderator
1524658388
Hero Member
*
Offline Offline

Posts: 1524658388

View Profile Personal Message (Offline)

Ignore
1524658388
Reply with quote  #2

1524658388
Report to moderator
1524658388
Hero Member
*
Offline Offline

Posts: 1524658388

View Profile Personal Message (Offline)

Ignore
1524658388
Reply with quote  #2

1524658388
Report to moderator
genjix
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1000


View Profile
March 20, 2011, 11:03:26 PM
 #2

I got over-excited seeing the title.

How comes you made a wrapper for bitcoind? Seems a bit superfluous :p Thanks for sharing.

btw, I improved ServiceProxy. You should use my version, https://en.bitcoin.it/wiki/API_tutorial_%28JSON-RPC%29#Python
tcatm
Sr. Member
****
qt
Offline Offline

Activity: 337
Merit: 250


View Profile
March 20, 2011, 11:34:05 PM
 #3

Reasons I wrote this:
* works across network without bitcoind binary
* makes testing RPC features easy
* could be enhanced to pretty print listtransactions or listaccounts
* could support user confirmation on sendfrom ("Are you sure you want to send 1000 BTC to 1Hs53...? (y/N)")
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!