New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iov/bns

Package Overview
Dependencies
Maintainers
4
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iov/bns

Transaction codec and BCP client to communicate with BNS blockchain

  • 2.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@iov/bns

npm version

This package is an implementation of the BlockchainConnection interface for the BNS blockchain (currently just as bcp-demo prototype). It should be able to adapt this code fairly easily to support any other weave based blockchain as well.

This provides a reference implementation of the full feature set of BlockchainConnection, so it is also a good read when starting support of another blockchain.

Simplest usage, to use auto-detecting tendermint client and standard bns transaction parser:

const connection = await BnsConnection.establish(
  "wss://rpc-private-a-x-exchangenet.iov.one",
);

Supported weave (bnsd) versions

IOV-Core versionSupported weave versions
2.2.51.0.4+
2.0.20.22.x, 0.24.x – 0.25.x, 1.0.0
1.20.22.x
1.10.21.x
1.00.21.x
0.170.21.x
0.160.19.x - 0.20.x
0.150.16.x
0.140.14.x
0.12 – 0.130.10.x - 0.11.x
0.9 – 0.110.4.x - 0.9.x
0.1 – 0.80.4.x - 0.8.x

API Documentation

https://iov-one.github.io/iov-core-docs/latest/iov-bns/

The main entry point is the BnsConnection, which creates a Tendermint client (from iov-tendermint-rpc) and a codec to parse transactions. The BNS codec for reading and writing transactions (also useful for MultiChainSigner) is exported as top-level bnsCodec.

License

This package is part of the IOV-Core repository, licensed under the Apache License 2.0 (see NOTICE and LICENSE).

FAQs

Package last updated on 17 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc