Code Monkey home page Code Monkey logo

Comments (1)

maaku avatar maaku commented on July 25, 2024

You need to make Jeff Garzik's python-bitcoinrpc available on the python
path. There are two modules one which handles the Bitcoin side, and another
which handles the json-rpc, which you don't seem to have. the built-in
json-rpc won't work.
On Jun 17, 2015 9:30 AM, "Brian Muhia" [email protected] wrote:

I've followed all the steps in alpha-README.md, but fail to see the
expected result in Step 6 of To Move Money into Elements Alpha.

$ ./contrib/sidechain-manipulation.py send-to-sidechain 2MuCWkMxPNLoV2qxCKXUSnmeZpz8VMtEzjz 1

Sending 1 to 2N82VPmsiZRC3xbDX9fxgiTKgkiY8BFjKZt...
(nonce: 4483e3dccfef99bc6e350a9665fc1ee5)

Traceback (most recent call last):
File "./contrib/sidechain-manipulation.py", line 121, in
txid = bitcoin.sendtoaddress(send_address, Decimal(sys.argv[3]))
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 107, in call
'id': self.id_count})
File "/usr/lib/python2.7/json/__init
.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py", line 178, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: Decimal('1') is not JSON serializable

β€”
Reply to this email directly or view it on GitHub
#30.

from elements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.