Bitcoin Forum
June 17, 2024, 01:00:34 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: simple access to the bitcoind api(Python)  (Read 720 times)
kokjo (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
May 19, 2013, 06:47:32 PM
 #1

https://gist.github.com/kokjo/5608566

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
maaku
Legendary
*
expert
Offline Offline

Activity: 905
Merit: 1011


View Profile
May 20, 2013, 02:58:59 PM
 #2

Replace "from jsonrpc import ServiceProxy" with "from bitcoin.rpc import Proxy". You want to make sure you're using Decimal numbers, not floats for monetary amounts, and the JSON-RPC api has a few non-standard oddities:

https://github.com/monetizeio/python-bitcoin/blob/master/bitcoin/rpc.py

I'm an independent developer working on bitcoin-core, making my living off community donations.
If you like my work, please consider donating yourself: 13snZ4ZyCzaL7358SmgvHGC9AxskqumNxP
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 812
Merit: 1022

No Maps for These Territories


View Profile
May 20, 2013, 03:00:51 PM
 #3

https://github.com/laanwj/bitcoin-python

Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
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!