You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/data-feeds/tron/index.mdx
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,7 @@ metadata:
11
11
12
12
import { Aside, CopyText } from"@components"
13
13
14
-
This tutorial demonstrates how to read Chainlink Data Feeds on the TRON blockchain. You will learn to deploy a smart contract on TRON Nile Testnet using [TronBox](https://tronbox.io/) and interact with it offchain using [TronWeb](https://tronweb.network/).
15
-
16
-
## Overview
14
+
This tutorial demonstrates how to read Chainlink Data Feeds on the TRON blockchain. You will learn how to deploy a smart contract on TRON Nile Testnet using [TronBox](https://tronbox.io/) and interact with it offchain using [TronWeb](https://tronweb.network/).
17
15
18
16
Chainlink Data Feeds on TRON provide reliable, decentralized price data for your applications. This tutorial covers:
19
17
@@ -34,7 +32,7 @@ Before you begin, ensure you have:
34
32
```
35
33
-**TronBox** (version 3.3 or higher) - Install globally with <CopyTexttext="npm install -g tronbox"code/>
36
34
37
-
Verify your installation:
35
+
Verify your installation using <CopyTexttext="tronbox version"code/>:
The `reader.js` script demonstrates how to interact with your deployed contract using [TronWeb](https://tronweb.network/). The script provides several key features:
161
159
162
160
-**TronWeb Configuration**: Connects to TRON Nile Testnet with proper endpoints
163
-
-**Contract Interaction**: Calls all four functions from your deployed DataFeedReader contract
161
+
-**Contract Interaction**: Calls all four functions from your deployed `DataFeedReader` contract
164
162
-**Data Formatting**: Handles BigInt values and formats prices with proper decimals
165
163
-**Error Handling**: Comprehensive error handling and troubleshooting guidance
166
164
-**Multiple Examples**: Shows both detailed and simplified price reading patterns
@@ -175,7 +173,9 @@ Edit `offchain/reader.js` and replace `YOUR_DEPLOYED_CONTRACT_ADDRESS_HERE` with
175
173
176
174
### Run the Price Reader
177
175
178
-
<CopyTexttext="node offchain/reader.js"code />
176
+
```
177
+
node offchain/reader.js
178
+
```
179
179
180
180
### Expected Output
181
181
@@ -233,7 +233,3 @@ Now that you have successfully deployed and interacted with Chainlink Data Feeds
233
233
234
234
-**Browse All Available Feeds**: Check out the complete list of [price feeds available on TRON](/data-feeds/price-feeds/addresses?network=tron)
235
235
-**Access Historical Data**: Getting the latest price is not the only data that aggregators can retrieve. You can also retrieve historical price data. To learn more, see the [Historical Price Data](/data-feeds/historical-data) page.
236
-
237
-
### Learn Advanced Use Cases
238
-
239
-
To understand different use cases for Chainlink Price Feeds, refer to [Other Tutorials](/getting-started/other-tutorials).
Copy file name to clipboardExpand all lines: src/content/data-feeds/using-data-feeds.mdx
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,5 +98,3 @@ If you require a denomination other than what is provided, you can use two data
98
98
## More aggregator functions
99
99
100
100
Getting the latest price is not the only data that aggregators can retrieve. You can also retrieve historical price data. To learn more, see the [Historical Price Data](/data-feeds/historical-data) page.
101
-
102
-
To understand different use cases for Chainlink Price Feeds, refer to [Other Tutorials](/getting-started/other-tutorials).
0 commit comments