Claim Tip Script ENV Config
This page contains a more advanced CLI version of the easier-to-use 'claim tips' section present in the Fetch Dashboard.
ACCT_PUBLIC_KEY=0x0000000000000000000000000000000000000000
The public address of the account you're scanning tips for.
ACCT_PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000000
The private key of the same account above.
REACT_APP_DATAFEED_FLEX_SUBGRAPH_BASEURL=https://graphqlhost/subgraphs/name/fetch-oracle/fetchflex
Fetch Flex subgraph URL for the environment you're scanning tips for.
REACT_APP_DATAFEED_AUTOPAY_SUBGRAPH_BASEURL=https://graphqlhost/subgraphs/name/fetch-oracle/autopay-pulse
AutoPay subgraph URL for the environment you're scanning tips for.
AUTOPAY_ADDRESS=0x0000000000000000000000000000000000000000
Auto Pay contract address for the environment you're scanning tips for.
PULSE_NETWORK_URL=https://rpc.v4.testnet.pulsechain.com
RPC URL for mainnet or testnet, according to the environment you're scanning.
LISTENER_TIMEOUT_DURATION=120 # 120 seconds
Time out for the tip listener. Can leave as is.
BUFFER_TIME=43200 # 12 hours in seconds
Buffer time to call the 'claim' function. Leave as is, as 12h is the minimum you need to wait to actually claim an available tip.
REPORT_TIMESTAMP_TIMEOUT=2419200 # 4 weeks in seconds
You can change this or leave as is, just keep in mind that you have to claim your tips within three months.
If this variable is met, it won't try to submit the 'claim' function when the threshold is set.
If the parameters to claim a tip are not met anyway, you'll just get a revert from the contract.
Last updated