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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vipay-multichain

v3.1.1

Published

``` npm install vipay-multichain-wallet ``` ### import (es5) ```javascript const vipay = require('vipay-multichain-wallet/src'); ``` ### import (es6) ```javascript import vipay from 'vipay-multichain-wallet/src'; ``` ### functions (ethereum) -

Downloads

11

Readme

Vipay-Wallet

installation

npm install vipay-multichain-wallet

import (es5)

const vipay = require('vipay-multichain-wallet/src');

import (es6)

import vipay from 'vipay-multichain-wallet/src';

functions (ethereum)

  • Create Wallet
  • Recover wallet from phrase words
  • Import account from private key
  • Get ETH balance
  • Send ETH
  • Approve/Transfer Token

usage (ethereum)

//Create Wallet
const wallet = await vipay.Ethereum.createWallet({});

//Import Wallet
const wallet = await vipay.Ethereum.importWallet({
	mnemonic: 'sea glup tiger cup zoo ...', //phrase words
});

//Import Account
const account = await vipay.Ethereum.importAccount({
	privateKey: '0x....' //private key
});

//Get ETH balance
const balance = await vipay.Ethereum.getBalance({
	defaultProviderRpcUrl: 'https://https://bsc-dataseed1.defibit.io/', //this is bsc mainnet rpc url (put any ethereum network rpc url here)
	address: '0x...'
});

//Send ETH
const tx = await vipay.Ethereum.sendEther({
	rpcUrl: 'https://....',// (pur rpc url here)
	privateKey: '0x....',
	receiveAddress: '0x...',
	amount: '0.1', //ETH amount
	gasPrice: 'xxx', //transaction gas fee
	gasLimit: 'xxx', //gas limit
});

//Token Transfer
const tx = await vipay.Ethereum.tokenTransfer({
	rpcUrl: 'https://....',// (pur rpc url here)
	privateKey: '0x....',
	receiveAddress: '0x...',
	tokenAddress: '0x...',
	amount: '0.1', //Token amount
	gasPrice: 'xxx', //transaction gas fee
	gasLimit: 'xxx', //gas limit
});

//Token Approve
const tx = await vipay.Ethereum.tokenApprove({
	rpcUrl: 'https://....',// (pur rpc url here)
	privateKey: '0x....',
	receiveAddress: '0x...',
	tokenAddress: '0x...',
	amount: '0.1', //Token amount
	gasPrice: 'xxx', //transaction gas fee
	gasLimit: 'xxx', //gas limit
})

functions (solana)

  • Create Wallet
  • Recover wallet from phrase words
  • Import account from private key
  • Send SOL token
  • Get token info
  • Get availale token list
  • Get balance
  • Get transaction

usage (solana)

const wallet = await vipay.Solana.createWallet({});

const importWallet = await vipay.Solana.importWallet({
	mnemonic: 'xxx'//mnemonic
})

const importAccount = await vipay.Solana.importWallet({
	privateKey: 'xxx' //privatekey
})

const tx = await vipay.Solana.transfer({
	rpcUrl: 'https://api.devnet.solana.com', //rpcurl
	privateKey: 'xxx',
	from: 'xxx',
	to: 'xxx',
	amount: 0.1
})

// please refer library for more functions

More blockchains and networks will be added.

Estimated next update time: Aug 15 2022 :tw-1f551:

Enjoy your work ~!!!