Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vipay-multichain-wallet
Advanced tools
npm install vipay-multichain-wallet
const vipay = require('vipay-multichain-wallet');
import vipay from 'vipay-multichain-wallet';
common
functionconst mnemonic = vipay.Common.generateMnemonic();
console.log(mnemonic); //sea gulp tiger cup zoo ...
//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
})
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
FAQs
readme.md
The npm package vipay-multichain-wallet receives a total of 4 weekly downloads. As such, vipay-multichain-wallet popularity was classified as not popular.
We found that vipay-multichain-wallet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.