Docs/Guides
Run a keeper
Reveal bids, settle launches and relay private transactions.
A keeper is a small program that performs the permissionless steps that move a launch forward.
#What a keeper does
- Reveal bids once the drand round has passed.
- Settle launches and batch rounds.
- Relay private transactions and pay their gas.
#Why it is safe to run one
Keepers have no special powers. They cannot read bids early, change a bid or move funds. They only call functions that anyone can call, and they are paid through the fees those functions generate where applicable.
#Running several
Several keepers can run at once. If one goes offline another continues, and duplicate calls are harmless.
#Requirements
- A funded account on Elysium to pay gas.
- A reliable connection and access to the drand beacon.
- The SDK:
npm install @provenapp/sdk viem.
#Minimal example
ts
import { Proven } from "@provenapp/sdk";
const proven = new Proven(publicClient, walletClient, FACTORY);
for (const launch of await proven.listLaunches()) {
await proven.revealAll(launch.auction);
await proven.settle(launch.auction);
}Run it on a schedule, for example every minute. See the API reference for each call.