The NeoBlocks node is a modified version of the official NEO node allowing event logs to be requested for each invocation transaction. The event logs contain details about a contract execution including notifications and contract storage manipulations. The NeoBlocks agent requires a NeoBlocks node.
git clone https://github.com/NeoBlocks/neoblocks-node.git
cd neoblocks-node
git submodule update --init
docker build -t neoblocks/neoblocks-node:2.12.1 .
docker tag neoblocks/neoblocks-node:2.12.1 neoblocks/neoblocks-node
docker network create -d bridge neoblocks
NEOBLOCKS=/usr/local/neoblocks
mkdir -p "${NEOBLOCKS}/Chain_00746E41"
mkdir -p "${NEOBLOCKS}/EventLogs_00746E41"
docker run -it -d \
--network=neoblocks \
--restart=unless-stopped \
--log-opt max-size=16m \
--name neoblocks-node \
-p 10332-10334:10332-10334 \
-v ${NEOBLOCKS}/Chain_00746E41:/app/Chain_00746E41 \
-v ${NEOBLOCKS}/EventLogs_00746E41:/app/EventLogs_00746E41 \
neoblocks/neoblocks-node
curl -s 'http://127.0.0.1:10332/' \
-H 'Content-Type: text/plain' \
-H 'Accept: application/json' \
--data-binary '{"jsonrpc":"2.0","id":1,"method":"getblockcount","params":[]}' | jq
curl -s 'http://127.0.0.1:10332/' \
-H 'Content-Type: text/plain' \
-H 'Accept: application/json' \
--data-binary '{"jsonrpc":"2.0","id":1,"method":"geteventlog","params":["0x69468ae7bd0df58a48155cb6a19f51b7671e5faed92e2523279e90ba574ad579"]}' | jq