UNPKG

@bandprotocol/bandchain.js

Version:

Library for interacting with BandChain in browser and Node.js environments

12 lines (9 loc) 372 B
import { Client } from '../../lib' const grpcEndpoint = 'https://laozi-testnet6.bandchain.org/grpc-web' const client = new Client(grpcEndpoint) // This example demonstrates how to query price data from // Band's standard dataset export async function exampleGetReferenceData() { const rate = await client.getReferenceData(['BTC/USD', 'ETH/BTC'], 3, 4) return rate }