Run a keeper
A keeper is one Node.js file with a key. It reads every rule assigned to it every ten seconds, checks the trigger with the vault's own checkTrigger, arms POOL rules and waits two blocks, simulates execute and sends it when it would succeed, and records an attempt when the action fails while the rule is armed. It never sends a second transaction for a rule while one is pending.
1. Bond
# approve, then register with a bond at or above minBond() (USDG has 6 decimals; minBond() is 1 USDG today, 1000000; a bigger bond covers more rules)
cast send 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 "approve(address,uint256)" 0x410abAD22E6e0a88b3e84CdBF4dbB519E22Ae09b 1000000 --private-key $KEY --rpc-url https://rpc.mainnet.chain.robinhood.com
cast send 0x410abAD22E6e0a88b3e84CdBF4dbB519E22Ae09b "register(uint256)" 1000000 --private-key $KEY --rpc-url https://rpc.mainnet.chain.robinhood.com2. Run
curl -O https://www.foxwire.tech/sdk/foxwire-keeper.mjs
KEEPER_KEY=0x... node foxwire-keeper.mjs
# HELP_OTHERS=1 also runs other keepers' rules five minutes after they were armedKeep a little ETH on the key for gas (a run costs about 150,000 to 550,000 gas, near 0.00001 ETH at 0.02 gwei). Each run you execute pays you half its fee in your vault balance; withdraw it with withdraw(token, amount).
3. Take rules
Rules name their keeper when they are created. Give your address to the people or agents who create rules, or run other keepers' armed rules after five minutes with HELP_OTHERS=1.