Mock Helius Webhooks for Local Development
Expose the following env vars:
RPC_REST_URL="http://localhost:8899"
RPC_WEBSOCKET_URL="ws://localhost:8900"
SHOULD_BACKFILL_ACCOUNTS="true"
SHOULD_BACKFILL_TRANSACTIONS="true"
PROGRAM_ID="Vote111111111111111111111111111111111111111"
# Your path
ACCOUNT_WEBHOOK_URL="http://localhost:3000/account"
TRANSACTION_WEBHOOK_URL="http://localhost:3000/tx"
yarn run ts-node src/index.ts
docker build -t mock-helius .
docker run --network host --env-file ./.env mock-helius
version: "3"
services:
mock_helius:
build: [email protected]:dcaf-labs/mock-helius.git#main
environment:
- RPC_REST_URL=http://localhost:8899
- RPC_WEBSOCKET_URL=ws://localhost:8900
- SHOULD_BACKFILL_ACCOUNTS=true
- SHOULD_BACKFILL_TRANSACTIONS=true
- PROGRAM_ID=74XYB4agZ83msRxmTGvNDc8D2z8T55mfGfz3FAneNSKk
- ACCOUNT_WEBHOOK_URL=http://localhost:3000/webhook/account
- TRANSACTION_WEBHOOK_URL=http://localhost:3000/webhook/tx
networks:
default:
name: local