npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beon/jssdk

v1.0.10

Published

JS SDK to interact with BeOn plasma chain

Readme

A BeOn side chain of Ethereum network. The gateway is currently supporting the following functionalities:

  • ERC20 Token creation
  • ETH/ERC20 Token deposit
  • ETH/ERC20 Token transfer
  • ETH/ERC20 Token withdraw
  • Transaction confirmation
  • Balance checking

This document details functions that available within the gateway which can be called using jsonrpc.

BeOn chain also provides the JSSDK to interact with the gateway. Examples are provided below. Please note that this is an ongoing development of the side chain. We appreciate any issues reported.

Deployments

Rinkeby

Node Gateway: https://rinkeby.beon.network/
Root Contract Address: 0x62f23c4659bc327833c2c7bb4abe2cf2fdca9fe2 Block Explorer and DApp interface: https://dapp.beon.network/

Usages

Install beon jssdk

npm install @beon/jssdk

Setup SDK

const BeOnSDK = require("@beon/jssdk");
let sdk = new BeOnSDK({
  host: "https://rinkeby.beon.network/",
  networkId: "4",
  provider: `https://rinkeby.infura.io/${process.env.INFURA_APIKEY}`,
  gas: 7000000
});

GETTING INFURA APIKEY

Get Balances

let address = "0x...";
sdk.getBalances(address).then(console.log).catch(console.error);

Create Token

let account = "0x...";
let key = "0x...";
let initialAmount = 0;
let tokenName = "BeOn";
let decimalUnits = 18;
let tokenSymbol = "BEO";

sdk.createToken({
  account,
  key
}, {
  initialAmount,
  tokenName,
  decimalUnits,
  tokenSymbol
}).then((response)=>{
  let tokenAddress = response.result.result.logs[0].address;  
}).catch(console.error);

Mint Token

sdk.mintToken({
  account,
  key
}, {
  tokenAddress: "0x...",
  to: "0x...",
  amount: "10000000000000000",
}).then(console.log).catch(console.error);

Deposit

sdk.deposit({
  account,
  key
}, {
  token: "0x0", // token address. 0x0 is ETH.
  amount: "1" // in ether
}).then(console.log).catch(console.error);

Transact

sdk.transfer({
  account,
  key
}, {
  token: "0x0", // token address. 0x0 is ETH.
  to: "0x...",
  amount: "0.01" // in ether
}).then(console.log).catch(console.error);

Confirm Transaction

sdk.confirmTx({
  account,
  key
}, {
  blkNum: "100000",
  txIndex: "0"
}).then(console.log).catch(console.error);

Withdraw

sdk.withdraw({
  account: "0x...",
  key: "0x..."
}, {
  blkNum: "200000",
  txIndex: "1",  
  oIndex: "0"
}).then(console.log).catch(console.error);

GENERATE ETHEREUM ACCOUNT

let web3 = new Web3(new Web3.providers.HttpProvider(`https://rinkeby.infura.io/${process.env.INFURA_APIKEY}`));
let account = web3.eth.accounts.create();

INSTALL METAMASK AND CREATE RINKEBY ACCOUNT

FUND THE RINKEBY ACCOUNT