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 🙏

© 2025 – Pkg Stats / Ryan Hefner

indra-js

v1.0.8

Published

Selendra javascript SDK for intergration with selendra.

Readme

Indra JS

logo

Selendra javascript SDK for intergration with selendra.

Getting Started

Table of Contents

Installation

  • with Npm
npm install indra-js
  • with Yarn
yarn add indra-js

Feature

  1. Create Account
  2. Import Account
  3. Get Balance
  4. Transfer Balance
  5. Transfer Batch ( Transfer balance to many account at the same time )
  6. Transaction with ERC-20
  • Approve
  • Transfer
  • TransferFrom
  • Allowance
  • BalanceOf
  • Total Supply

Usage

  • Import
const { CreateAccount, ImportAccount, TransferBalance } = require('indra-js');
  • Create Account
CreateAccount({
   type
}).then((res) => {
   console.log(res.mnemonic, res.pair);
})
  • Import Account
ImportAccount({
   type
}).then((res) => {
   console.log(res.pair);
})
  • Get Balance
GetBalance({
   address
}).then((res) => {
   console.log(res.balances)
})
  • TransferBalance
TransferBalance({
   seed,
   receiverAddress, 
   amount
}).then((res) => {
   console.log(res.hash);
})
  • TransferBatch
TransferBatch({
   seed,
   data: [
      { receiverAddress: '', amount: '' }
   ]
}).then((res) => {
   console.log(res.hash);
})

Contract ERC-20

  • Approve
const { Approve } = require('indra-js')
Approve({
   abi,
   address, 
   call_from,
   spender,
   value
}).then((res) => {
   console.log(res.hash);
})
  • Transfer
const { Transfer } = require('indra-js')
Transfer({
   abi,
   address, 
   call_from,
   to,
   value
}).then((res) => {
   console.log(res.hash);
})
  • TransferFrom
const { TransferFrom } = require('indra-js')
TransferFrom({
   abi,
   address, 
   call_from,
   from,
   to,
   value
}).then((res) => {
   console.log(res.hash);
})
  • Allowance
const { Allowance } = require('indra-js')
Allowance({
   abi,
   address, 
   call_from,
   owner,
   spender
}).then((res) => {
   console.log(res.allowance);
})
  • BalanceOf
const { BalanceOf } = require('indra-js')
BalanceOf({
   abi,
   address, 
   call_from,
   owner
}).then((res) => {
   console.log(res.balanceOf);
})
  • Total Supply
const { TotalSupply } = require('indra-js')
TotalSupply({
   abi,
   address, 
   call_from
}).then((res) => {
   console.log(res.hash);
})

User Guide

Props

| Prop Name | Description | Default Value | Example | | ------------- | -------------- | --------------- | ----------- | | type | Account keys are keys that are meant to control funds. They can be either: 'sr25519' or 'ed25519' | sr25519 | type: 'sr25519' | | seed | The seed is your key to the account. Knowing the seed allows you, or anyone else who knows the seed, to re-generate and control this account. | null | seed: '//Alice' | | receiverAddress | The wallet address of the receiver. | null | receiverAddress: 'Bob ' | | amount | Amount to send. | null | amount: '10' | | Contract ERC-20 | | abi | The ABI for the WASM code. The ABI is required and stored for future operations such as sending messages. | null | .json file | | address | Address of the Contract. | null | address: 'Bob' | | call_from | Specify the user account to use for the contract call and fees will be deducted from this account.(Approve, Transfer, TransferFrom: 'call_from' must be a rawSeed) | null | call_from: 'Bob' |

License

Apache License 2.0