From e6fe82f944a2d5af08d0254544300e7a29896341 Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Sat, 30 Sep 2023 15:09:24 -0400 Subject: [PATCH] Update Dev3 SDK tutorial --- .../quickstarts/dev3-chainlink-sdk.mdx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/content/quickstarts/dev3-chainlink-sdk.mdx b/src/content/quickstarts/dev3-chainlink-sdk.mdx index 2d0745c83f9d..c7132927b3f3 100644 --- a/src/content/quickstarts/dev3-chainlink-sdk.mdx +++ b/src/content/quickstarts/dev3-chainlink-sdk.mdx @@ -84,22 +84,32 @@ Once the SDK is initialized, you can start consuming different feeds as outlined 1. The output should be similar to: `40104190000000000`. Compare this to the [AAVE / ETH price feed](https://data.chain.link/ethereum/mainnet/crypto-eth/aave-eth), which returns `Ξ0.04010419` at the time of writing. - Add the following code to your JavaScript or TypeScript file: + 1. Add the following code to your JavaScript or TypeScript file: ```ts // Azuki floor price - ethSDK.getFromOracle(ethSDK.feeds.AZUKI_FLOOR_ETH).then((res) => { + ethSDK.getFromOracle(ethSDK.feeds.COINBASE_AZUKI_FLOOR_PRICE_ETH).then((res) => { console.log(res.answer.toString()); }); ``` + 1. Run your file. For example: + ```sh + node index.js + ``` + 1. The output should be similar to: `3480450640000000000`. Compare this to the [Azuki floor price feed](https://data.chain.link/ethereum/mainnet/nft-floor-prices/coinbase-azuki-floor-price-eth), which returns `Ξ3.4805` at the time of writing. - Add the following code to your JavaScript or TypeScript file: + 1. Add the following code to your JavaScript or TypeScript file: ```ts - // EURS reserves - ethSDK.getFromOracle(ethSDK.feeds.EURS_RESERVES).then((res) => { + // eFIL reserves + ethSDK.getFromOracle(ethSDK.feeds.EFIL_POR).then((res) => { console.log(res.answer.toString()); }); ``` + 1. Run your file. For example: + ```sh + node index.js + ``` + 1. The output should be similar to: `126365967984000000000000`. Compare this to the [eFIL reserves price feed](https://data.chain.link/ethereum/mainnet/reserves/efil-por), which returns `126,366` at the time of writing.