
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@bandprotocol/bandchain.js
Advanced tools
Library for interacting with BandChain in browser and Node.js environments
BandChain.js is a library for interacting with BandChain in browser and Node.js environments. It uses gRPC-web as protocol.
BandChain.js is currently supported on NodeJS 16.x, and 18.x.
npm install --save @bandprotocol/bandchain.js
yarn add @bandprotocol/bandchain.js
Band 2.2.0, Cosmos SDK 0.44.0, IBC-go 1.1.0
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 folder.
FAQs
TypeScript library for Cosmos SDK and BandChain
We found that @bandprotocol/bandchain.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.