This repository contains the xk6 extension for interacting with the VeChain blockchain.
To build the executable:
CGO_ENABLED=1 xk6 build --with github.com/darrenvechain/xk6-vechain=. --with github.com/grafana/xk6-dashboard@latest --with github.com/grafana/xk6-output-influxdb@latestStart thor solo:
thor solo
Optional: Start Grafana + InfluxDB:
docker compose up -d --waitTo run the tests:
K6_INFLUXDB_ORGANIZATION=vechain \
K6_INFLUXDB_BUCKET=vechain \
K6_INFLUXDB_TOKEN=admin-token \
./k6 run -o xk6-influxdb=http://localhost:8086 test.js