ZKsync webhook service for local testing. Runs the webhook service and Postgres via Docker Compose, with a configurable webhook receiver target.
make mock-server)make docs-serve / make docs-build)1) Copy the env file and fill in required values:
cp .env-example .env
Set:
DOCKER_USERNAME, DOCKER_PASSWORDPRIVIDIUM_SIGNER_KEY, ENCRYPTION_KEY2) Log in to Quay and start the stack:
make login
make up
3) (Optional) Run a local receiver:
make mock-server
http://localhost:8081Key routes:
POST /v1/event-webhookGET /v1/event-webhookGET /v1/event-webhook/:idPATCH /v1/event-webhook/:idDELETE /v1/event-webhook/:idPOST /v1/address-webhookGET /v1/address-webhookGET /v1/address-webhook/:idDELETE /v1/address-webhook/:idGET /v1/address-webhook/:id/addressesPOST /v1/address-webhook/:id/addressesDELETE /v1/address-webhook/:id/addressesRun make docs-serve for the full docs site, including API examples (default: http://localhost:3000).
config/config.prividium.docker.toml (mounted read-only into the container).HOST_CONFIG_PATH in .env.WEBHOOK_DESTINATION_URL (defaults to http://host.docker.internal:9000/webhook).make up # start services
make down # stop services
make reset # stop and remove data volume
make logs # follow webhook-service logs
make status # container status
make get-token ADDRESS=0xYourAddress
make docs-serve
make docs-build