Bitcoin Forum
September 17, 2025, 11:46:18 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: simple access to the bitcoind api(Python)  (Read 743 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: 1014


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
laanwj
Hero Member
*****
qt
Offline Offline

Activity: 826
Merit: 1030


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

https://github.com/laanwj/bitcoin-python
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!