Search content
Sort by

Showing 4 of 4 results by kangarooz
Post
Topic
Board Bitcoin Technical Support
Re: regex for bitcointransaction string
by
kangarooz
on 26/05/2014, 17:47:31 UTC
I got a string containing the "txid" which should be checked.

All the best;
Post
Topic
Board Bitcoin Technical Support
Topic OP
regex for bitcointransaction string
by
kangarooz
on 26/05/2014, 12:50:13 UTC
Dear guys;

Is there any RegEx for checking if a string could be a valid bitcointransaction?
A currently use gettransaction() to check the confirmations of the transaction, as you may know gettransaction() only accepts txids made by the wallet of the bitcoind running this command, so I want to check the entered txid before, to catch as many faults as I can.
Programming language: Python

All the best;
Post
Topic
Board Bitcoin Technical Support
Re: python-bitcoinrpc (jgarzik) problem calling gettransaction()
by
kangarooz
on 24/05/2014, 18:20:37 UTC
Sorry hombre:

Quote
   rawtx = access.getrawtransaction(txid)
  File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 116, in __call__
    raise JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException

Any other idea?
It's frustrating to work with documentations which aren't able to work ;O(.
Post
Topic
Board Bitcoin Technical Support
Topic OP
python-bitcoinrpc (jgarzik) problem calling gettransaction()
by
kangarooz
on 24/05/2014, 17:38:19 UTC
Dear guys;

I use this code:

Code:
from bitcoinrpc.authproxy import *

access = AuthServiceProxy("PRIVATEDETAILS")

print access.getbalance()
txid = 'aedf77851ee49a85857126b9003f8058c355c7e30e51a8ef5c74042a73ab247f'
printa = access.gettransaction(txid)

It doens't work.
Python gaves me this error:
Quote
   raise JSONRPCException(response['error'])
bitcoinrpc.authproxy.JSONRPCException

The call of function access.getbalance() works fine.
Any idea how to fix this?

Kind regards;