From 5beaab02b8aa4830bc7ec78eae4dd62580e5079b Mon Sep 17 00:00:00 2001 From: babybunn Date: Tue, 3 Dec 2024 14:37:29 +0700 Subject: [PATCH] update readme --- README.md | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 7dfa505..ae47eb8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ BandChain.js is a library for interacting with BandChain in browser and Node.js ## 📦 Installation -BandChain.js is currently supported on NodeJS 16.x, and 18.x. +BandChain.js is currently supported on Node.js 16.x, and 18.x. ### NPM @@ -26,33 +26,4 @@ yarn add @bandprotocol/bandchain.js ## Compatibility -Band 2.2.0, Cosmos SDK 0.44.0, IBC-go 1.1.0 - -## Usage - -#### Retrieving Price Data - -```js -const { Client } = require('@bandprotocol/bandchain.js') - -// BandChain's Proof-of-Authority REST endpoint -const endpoint = 'https://laozi-testnet6.bandchain.org/grpc-web' -const client = new Client(endpoint) - -// This example demonstrates how to query price data from -// Band's standard dataset -async function exampleGetReferenceData() { - const rate = await client.getReferenceData( - ['BTC/USD', 'BTC/ETH', 'EUR/USD', 'EUR/ETH'], - 3, - 4, - ) - return rate -} - -;(async () => { - console.log(await exampleGetReferenceData()) -})() -``` - -For more examples, please see [`example`](example/) folder. +BandChain v3.0.0, Cosmos SDK v0.50.0, IBC-go v8.5.2