Skip to content
neo-ngdPublic

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

7 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Neo CLI Docker Usage Examples

Example 1: Install CLI v3.10.1 (with matching plugins)

# Build the image (v3.10.1 is the default)
docker build -t v3.10.1 .

# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.1

# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'

Example 2: Install CLI v3.10.1 with Plugin v3.10.0

# Build the image
docker build -t v3.10.1-plugins-3.10.0 --build-arg PLUGIN_VERSION=v3.10.0 .

# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.1-plugins-3.10.0

# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'

Example 3: Install CLI v3.10.0 with Plugin v3.10.0

# Build the image
docker build -t v3.10.0-plugins-3.10.0 --build-arg CLI_VERSION=v3.10.0 --build-arg PLUGIN_VERSION=v3.10.0 .

# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.0-plugins-3.10.0

# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'

Quick Test Command

Once inside the container, you can also use:

curl http://localhost:10332 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'

This will return the current block count, confirming the CLI is running and responding to RPC calls.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages