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