Skip to content

Instantly share code, notes, and snippets.

@metachris
Last active June 27, 2018 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metachris/c8867a74c084bc2114a73f0c169b5f83 to your computer and use it in GitHub Desktop.
Save metachris/c8867a74c084bc2114a73f0c169b5f83 to your computer and use it in GitHub Desktop.

neo-privatenet-docker starting with v2.7.6 has a NEP-5 smart contract included and deployed. The smart contract is the NEX ICO template, with contract hash 0xa3640dd3c560c75528e5f861da5da98958d0d713

https://github.com/neonexchange/neo-ico-template (cloned into /neo-python/neo-ico-template/ inside the Docker container)

You can start the container with this command: docker run --rm -d --name neo-privatenet -p 20333-20336:20333-20336/tcp -p 30333-30336:30333-30336/tcp cityofzion/neo-privatenet:2.7.6

To open a bash in the container, use docker exec -it neo-privatenet /bin/bash

Run the neo-python prompt: np-prompt -p

The example wallet (neo-privnet.wallet) has 2.5m NXT2 tokens available.

neo> open wallet neo-privnet.wallet
[password]> coz

neo> wallet
...
"synced_balances": [
	"[NEO]: 100000000.0 ",
	"[NEOGas]: 74679.9999 ",
	"[NXT2]: 2500000 "
]
...

neo> contract search nex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment