Plugin Feed - End data consumers - Mainnet

(If you are a price feed consumer then follow below steps)

Explore https://feeds.goplugin.co & check which contract fulfills your requirement for the required price index pairs (Example: XDC-USDT, PLI-USDT, BTC-USDT, etc.,).

STEP 1:

Click on "Data Feeds" on the navigation bar and then click on “All Feeds”.

STEP 2:

Choose the Index Pair and click "view" as shown in the image below.

We’ll take PLI/USDT as an example

STEP 3:

Click on “View” on the above page for “PLI/USDT” and then you’ll find the screen below

STEP 4:

This screen will pop up as shown below :

 

The area highlighted in “red” shows the Oracle address/addresses used for this data feed pair, for example here, we have 3 oracles with a minimum of 2 responses needed to fetch the current answer.

The area highlighted in “blue” shows the “Network” and “Source Type” used for this data feed pair

The area highlighted in “green” and “Source of Trust” shows the sources used for this data feed pair with 2 sources for PLI/USDT.

STEP 5:

To retrieve the price of the PLI/USDT, to integrate the contract, copy-paste the contract to remix.

STEP 6:

Copy the constructor address (highlighted in pink), pass this address, and deploy the contract.

STEP 7:

Once your contract is deployed,” click on “fetchLatestAnswer”. And you’ll get the current value of “PLI/USDT”.

 

We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies

More