The Paymaster Policy Manager is a management tool for creating, editing, and monitoring Paymaster policies. It’s designed for ecosystem and dApp managers who need fine-grained control over gas sponsorship rules and visibility into how those policies are being used.
To run the Paymaster Management App using Docker Compose, follow the instructions below.
Prerequisites:
- Docker and Docker Compose must be installed on your system.
Before running the app, make sure to create and configure the required .env files:
- Copy example files:
cp apps/backend/.env.example apps/backend/.env cp packages/prisma/.env.example packages/prisma/.env
- Edit
apps/backend/.envto provide the necessary values. Required configuration forapps/backend/.envincludes:-
Blockchain Configuration:
ETHEREUM_RPC_URL- Ethereum Mainnet RPC endpoint URLSEPOLIA_RPC_URL- Ethereum Sepolia testnet RPC endpoint URL
-
Paymaster Signer Configuration:
PAYMASTER_SIGNER_PRIVATE_KEY- Private key for signing paymaster operations (with 0x prefix)PAYMASTER_SIGNER_ADDRESS- Address derived from the signer private keyPAYMASTER_ADDRESS- Deployed paymaster contract address
-
EIP-712 Domain Configuration:
PAYMASTER_EIP712_DOMAIN_NAME- Domain name for EIP-712 signing (e.g., "MyPaymasterECDSASigner")PAYMASTER_EIP712_DOMAIN_VERSION- Domain version for EIP-712 signing (e.g., 1)PAYMASTER_EIP712_DOMAIN_SIGNATURE_TTL_SECONDS- Signature validity duration in seconds (e.g., 600)
-
docker compose up --build- Frontend: http://localhost:3001
- Backend API: http://localhost:3000
- API Documentation: http://localhost:3000/docs
docker compose up -d --builddocker compose downSee README.local-dev.md for instructions on running the app locally as a
contributor or maintainer.