Skip to content

seabed-labs/mock-helius

Repository files navigation

mock-helius

Mock Helius Webhooks for Local Development

Usage

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

docker build -t mock-helius .
docker run --network host --env-file ./.env mock-helius

Docker-Compose

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

About

Mock Helius Webhooks for Local Development

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published