Bitcoin Forum
May 25, 2024, 12:35:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: regex for bitcointransaction string on: May 26, 2014, 05:47:31 PM
I got a string containing the "txid" which should be checked.

All the best;
2  Bitcoin / Bitcoin Technical Support / regex for bitcointransaction string on: May 26, 2014, 12:50:13 PM
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;
3  Bitcoin / Bitcoin Technical Support / Re: python-bitcoinrpc (jgarzik) problem calling gettransaction() on: May 24, 2014, 06:20:37 PM
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(.
4  Bitcoin / Bitcoin Technical Support / python-bitcoinrpc (jgarzik) problem calling gettransaction() on: May 24, 2014, 05:38:19 PM
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;
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!