- Main branch should auto. deploy to: ponder.frankencoin.com
- test Deployment deploy to: ponder.test.frankencoin.com
check out ".env.local" file to adjust environment. For SQLite, REMOVE THE DATABASE_URL LINE.
# Select Profile/Chain
PONDER_PROFILE=polygon
# Mainnet RPC URL used for fetching blockchain data. Alchemy is recommended.
PONDER_RPC_URL_MAINNET=https://eth-mainnet.g.alchemy.com/v2/...
PONDER_RPC_URL_POLYGON=... # For testing purposes only
# (Optional) Postgres database URL. If not provided, SQLite will be used.
DATABASE_URL=
You can adjust the default chain and chain specific parameters in "ponder.config.ts".
// (add custom chain in ./ponder.address.ts)
// mainnet (default), ethereum3, polygon
const chain =
(process.env.PONDER_PROFILE as string) == 'polygon'
? polygon
: (process.env.PONDER_PROFILE as string) == 'ethereum3'
? ethereum3
: mainnet;
const CONFIG = {
[mainnet.id]: {
rpc: process.env.RPC_URL_MAINNET ?? mainnet.rpcUrls.default.http[0],
startBlockA: 18451518,
startBlockB: 18451536,
blockrange: undefined,
maxRequestsPerSecond: undefined,
pollingInterval: undefined,
},
Edit and add your custom chain: "ponder.chains.ts"
Example:
export const ethereum3 = {
id: 1337,
name: 'Ethereum3',
nativeCurrency: { name: 'Ethereum3', symbol: 'ETH3', decimals: 18 },
rpcUrls: {
default: { http: ['https://ethereum3.3dotshub.com'] },
},
blockExplorers: {
default: { name: 'Blockscout', url: 'https://blockscout3.3dotshub.com' },
},
} as const satisfies Chain;