Fetch Oracle
  • Welcome to Fetch
  • THE BASICS
    • What Problem Does Fetch Solve?
    • What Can You Do With Fetch?
    • The FETCH Token
    • Staking
    • Contracts Overview
    • Contract Addresses
    • Contributing
    • Audits
  • REPORTING DATA
    • How to Report Data
    • Requirements
      • (Optional) Using Cloud Hosting
    • Installing Telliot
      • Adding Accounts
      • MAC Virtual Machine with UTM
    • Reporting With Telliot
      • Reporting Options
      • Discord Notifications
    • Gas Fees
    • Add support for a new spot price
  • GETTING DATA
    • Tipping
    • Receiving Data From Fetch
    • Solidity
    • User Checklists
    • Testnet
    • Creating a Query
  • VOTES & DISPUTES
    • Voting
    • Disputing
    • Introduction to DVM
      • Installing DVM
      • Monitoring
  • OPTIONAL CONFIGS
    • Claim Tip Script ENV Config
  • Connect
    • Whitepaper
    • Telegram
    • Twitter/X
    • YouTube
Powered by GitBook
On this page
  1. OPTIONAL CONFIGS

Claim Tip Script ENV Config

PreviousMonitoring

Last updated 9 months ago

This page contains a more advanced CLI version of the easier-to-use 'claim tips' section present in the .

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=

Fetch Flex subgraph URL for the environment you're scanning tips for.

REACT_APP_DATAFEED_AUTOPAY_SUBGRAPH_BASEURL=/

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=

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.

Fetch Dashboard
https://graphqlhost/subgraphs/name/fetch-oracle/fetchflex
https://graphqlhost
subgraphs/name/fetch-oracle/autopay-pulse
https://rpc.v4.testnet.pulsechain.com