ens-avatar-worker

March 24, 2025 ยท View on GitHub

Install

pnpm install

Setup

cp .example.vars .dev.vars

Run

pnpm start

Publish

pnpm publish

Note

The WEB3_ENDPOINT_MAP needs to be manually set as a secret value. The value should be a JSON object of network name => endpoint.

Value structure:

{
    "mainnet": "<MAINNET_RPC>",
    "goerli": "<GOERLI_RPC>",
    "sepolia": "<SEPOLIA_RPC>",
    "holesky": "<HOLESKY_RPC>"
}

The value can be set by using:

echo <VALUE> | pnpm wrangler secret put WEB3_ENDPOINT_MAP