LogoLogo
  • The Basics
    • Welcome
    • Fundamentals
    • Contracts Overview
    • Contracts Reference
    • Tutorials
  • Getting Data
    • Introduction
    • Solidity Integration
    • User Checklists
    • Local Testing
    • Testnet
    • Creating a Query
    • Funding a Feed
    • Tellor Functions
    • DataSpecs Registry
    • SnapShot Vote Results
  • Reporting Data
    • Introduction
    • Becoming a Reporter
    • Getting Paid
  • Disputing Data
    • Introduction
    • Monitoring
    • How to Dispute
    • Voting/Resolution
  • Vulnerability Disclosure
Powered by GitBook
On this page

Was this helpful?

  1. Getting Data

Testnet

Need testnet TRB?

  • How to get Testnet TRB

As seen in the local testing setup an address must be passed into the constructor. With local testing it was the playground address, but for testnets you'll need to use the Tellor oracle address corresponding to the testnet of your choice. For those please visit our Contracts Reference page.

reference example:

pragma solidity >=0.8.0;

import "usingtellor/contracts/UsingTellor.sol";

contract MyContract is UsingTellor {

  constructor(address payable _tellorAddress) UsingTellor(_tellorAddress) {

  }

  // ...

}

Unlike local testing and using the Tellor playground, where you simply mimic the data submitting yourself, testnet is a good place to simulate production use of Tellor. This requires the user to specify the data they want and incentivize Tellor's network of reporters to fetch it. You can even run your own reporter should you choose so.

Next Steps:

  • Create Query

  • Setting up a reporter (optional)

  • Incentivize reporting (funding a feed)

PreviousLocal TestingNextCreating a Query

Last updated 1 year ago

Was this helpful?