Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pushtx error #189

Open
quinnoaj opened this issue Nov 15, 2017 · 1 comment
Open

pushtx error #189

quinnoaj opened this issue Nov 15, 2017 · 1 comment

Comments

@quinnoaj
Copy link

quinnoaj commented Nov 15, 2017

after constructing my code to push a transaction in to the network

I run pushtx(txt)

then I got this error:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/bitcoin-1.1.42-py2.7.egg/bitcoin/bci.py", line 311, in pushtx return f(*args) File "/usr/local/lib/python2.7/site-packages/bitcoin-1.1.42-py2.7.egg/bitcoin/bci.py", line 261, in bci_pushtx if not re.match('^[0-9a-fA-F]*$', tx): File "/usr/local/lib/python2.7/re.py", line 141, in match return _compile(pattern, flags).match(string) TypeError: expected string or buffer

Could it be there are problems with the serialize values?
By the way may private key is in base58(51 characters) format is it related with the error?

@primal100
Copy link

What type is mktx or mksend returning? In pytthon 2, mktx uses join so it should return a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants