
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
A comprehensive Node.js library for interacting with the Toronet blockchain. This package simplifies wallet management, TNS setup, balance queries, fiat deposits, inter-wallet transfers, KYC verification, and smart contract deployment on Toronet's EVM-com
The Toronet SDK is a TypeScript-based toolkit for interacting with the Toronet blockchain. It empowers developers to manage wallets, query blockchain data, handle fiat transactions, verify user identity, manage virtual wallets, and more — all from a developer-friendly interface.
Wallet Management
Blockchain Queries
Token Balance Queries
Fiat Deposits (Multi-Currency)
KYC Verification
Exchange Rate Queries
Comprehensive Query Endpoints
Virtual Wallet System
Address Validation Utility
npm install torosdk
import { createWallet } from "torosdk";
const walletAddress = await createWallet({
username: "myuser123",
password: "securePassword123"
});
console.log("Wallet Address:", walletAddress);
import { importWalletFromPrivateKeyAndPassword } from "torosdk";
const address = await importWalletFromPrivateKeyAndPassword({
pvKey: "yourPrivateKeyHere",
password: "yourPasswordHere"
});
console.log("Imported Wallet Address:", address);
import { verifyWalletPassword } from "torosdk";
const isValid = await verifyWalletPassword({
address: "0xYourAddress",
password: "yourPassword"
});
console.log("Password is correct:", isValid);
import { getWalletKey } from "torosdk";
const key = await getWalletKey({
address: "0xYourWalletAddress"
});
console.log("Wallet Key:", key);
import { getBlockchainStatus, getLatestBlockData } from "torosdk";
const status = await getBlockchainStatus();
console.log("Blockchain Status:", status);
const block = await getLatestBlockData();
console.log("Latest Block:", block);
import { getBalance } from "torosdk";
const balances = await getBalance({
address: "0xYourWalletAddress"
});
console.log("Token Balances:", balances);
🔹 Before using this feature, ensure that you have the correct admin credentials.
KYC is required for transactions.
import { performKYCForCustomer, isAddressKYCVerified } from "torosdk";
const kycparams = {
firstName: "John",
middleName: "Doe",
lastName: "Doe",
bvn: "123456789",
currency: "NGN",
phoneNumber: "08012345678",
dob: "1990-01-01",
address: "0xYourWalletAddress",
admin: "yourWhitelistedAdminAddress",
adminpwd: "yourAdminPassword",
};
const isKYCSuccessful = await performKYCForCustomer(kycparams);
console.log("KYC Successful:", isKYCSuccessful);
const isVerified = await isAddressKYCVerified({
address: "0xYourWalletAddress"
});
console.log("KYC Verified:", isVerified);
🔹 Before using this feature, you must register as a project at https://payments.connectw.com/ to get admin credentials.
import { depositFunds } from "torosdk";
import { Currency } from "torosdk/types";
const depositDetails = await depositFunds({
userAddress: "0xYourWalletAddress",
username: "testUser",
amount: "1000",
currency: Currency.Kenyan_Shilling,
admin: "adminAddr",
adminpwd: "@adminPassword"
}, {
payeraddress: "123 Main St",
payercity: "Lagos",
payerstate: "Lagos",
payercountry: "Nigeria",
payerzipcode: "100001",
payerphone: "+2348012345678",
description: "Initial deposit",
success_url: "https://example.com/success",
cancel_url: "https://example.com/cancel",
paymenttype: "deposit",
feetype: "1",
exchange: "72",
reusewallet: "0",
});
console.log("Deposit Info:", depositDetails);
import {
getSupportedAssetsExchangeRates,
getBlocksData,
getBlockchainTransactions,
getAddressRole,
getAddressBalance,
getBlockById,
getTransactionById,
getTransactionReceiptById,
getEventById,
getAddressTransactions,
getTransactionsToroWrapper,
getAddressTransactionsToro,
getTransactionsDollarWrapper,
getAddressTransactionsDollar,
getTransactionsNairaWrapper,
getAddressTransactionsNaira,
getTransactionsEuroWrapper,
getAddressTransactionsEuro,
getTransactionsPoundWrapper,
getAddressTransactionsPound,
getTransactionsEGPWrapper,
getAddressTransactionsEGP,
getTransactionsKSHWrapper,
getAddressTransactionsKSH,
getTransactionsZARWrapper,
getAddressTransactionsZAR,
getTransactionsETHWrapper,
getAddressTransactionsETH,
getTransactionsRangeWrapper,
getAddressTransactionsAuth,
isAddressUtil
} from "torosdk";
const rates = await getSupportedAssetsExchangeRates();
console.log("Exchange Rates:", rates);
const blocks = await getBlocksData(5); // last 5 blocks
console.log("Blocks:", blocks);
const txs = await getBlockchainTransactions(10);
console.log("Transactions:", txs);
const addrRole = await getAddressRole("0xYourWalletAddress");
console.log("Address Role:", addrRole);
const addrBalance = await getAddressBalance("0xYourWalletAddress");
console.log("Address Balance:", addrBalance);
const blockById = await getBlockById("latest");
console.log("Block By ID:", blockById);
const txById = await getTransactionById("0xYourTxHash");
console.log("Transaction By ID:", txById);
const txReceiptById = await getTransactionReceiptById("0xYourTxHash");
console.log("Transaction Receipt By ID:", txReceiptById);
const eventById = await getEventById("event123");
console.log("Event By ID:", eventById);
const addrTxs = await getAddressTransactions("0xYourWalletAddress", 5);
console.log("Address Transactions:", addrTxs);
const txsToro = await getTransactionsToroWrapper(5);
console.log("Transactions Toro:", txsToro);
const addrTxsToro = await getAddressTransactionsToro("0xYourWalletAddress", 5);
console.log("Address Transactions Toro:", addrTxsToro);
const txsDollar = await getTransactionsDollarWrapper(5);
console.log("Transactions Dollar:", txsDollar);
const addrTxsDollar = await getAddressTransactionsDollar("0xYourWalletAddress", 5);
console.log("Address Transactions Dollar:", addrTxsDollar);
const txsNaira = await getTransactionsNairaWrapper(5);
console.log("Transactions Naira:", txsNaira);
const addrTxsNaira = await getAddressTransactionsNaira("0xYourWalletAddress", 5);
console.log("Address Transactions Naira:", addrTxsNaira);
const txsEuro = await getTransactionsEuroWrapper(5);
console.log("Transactions Euro:", txsEuro);
const addrTxsEuro = await getAddressTransactionsEuro("0xYourWalletAddress", 5);
console.log("Address Transactions Euro:", addrTxsEuro);
const txsPound = await getTransactionsPoundWrapper(5);
console.log("Transactions Pound:", txsPound);
const addrTxsPound = await getAddressTransactionsPound("0xYourWalletAddress", 5);
console.log("Address Transactions Pound:", addrTxsPound);
const txsEGP = await getTransactionsEGPWrapper(5);
console.log("Transactions EGP:", txsEGP);
const addrTxsEGP = await getAddressTransactionsEGP("0xYourWalletAddress", 5);
console.log("Address Transactions EGP:", addrTxsEGP);
const txsKSH = await getTransactionsKSHWrapper(5);
console.log("Transactions KSH:", txsKSH);
const addrTxsKSH = await getAddressTransactionsKSH("0xYourWalletAddress", 5);
console.log("Address Transactions KSH:", addrTxsKSH);
const txsZAR = await getTransactionsZARWrapper(5);
console.log("Transactions ZAR:", txsZAR);
const addrTxsZAR = await getAddressTransactionsZAR("0xYourWalletAddress", 5);
console.log("Address Transactions ZAR:", addrTxsZAR);
const txsETH = await getTransactionsETHWrapper(5);
console.log("Transactions ETH:", txsETH);
const addrTxsETH = await getAddressTransactionsETH("0xYourWalletAddress", 5);
console.log("Address Transactions ETH:", addrTxsETH);
const txsRange = await getTransactionsRangeWrapper(0, 10);
console.log("Transactions Range:", txsRange);
const addrTxsAuth = await getAddressTransactionsAuth("0xYourWalletAddress", 5);
console.log("Address Transactions Auth:", addrTxsAuth);
// Address validation
const isAddrValid = await isAddressUtil("0xYourWalletAddress");
console.log("Is Address Valid:", isAddrValid);
import {
createVirtualWallet,
fetchVirtualWallet,
fetchVirtualWalletByAddress,
updateVirtualWalletTxs
} from "torosdk";
const virtualWallet = await createVirtualWallet({
address: "0xYourWalletAddress",
payername: "Demo User",
currency: Currency.Naira,
admin: "0xadminaddress",
adminpwd: "adminpassword",
});
console.log("Created Virtual Wallet:", virtualWallet);
const fetchedVirtualWallet = await fetchVirtualWallet({
virtualwallet: "8900610225",
admin: "0xadminaddress",
adminpwd: "adminpassword",
});
console.log("Fetched Virtual Wallet:", fetchedVirtualWallet);
const fetchedVirtualWalletByAddress = await fetchVirtualWalletByAddress({
address: "0xYourWalletAddress",
admin: "0xadminaddress",
adminpwd: "adminpassword",
});
console.log("Fetched Virtual Wallet By Address:", fetchedVirtualWalletByAddress);
const updatedVirtualWalletTxs = await updateVirtualWalletTxs({
walletaddress: "8900610225",
admin: "0xadminaddress",
adminpwd: "adminpassword",
});
console.log("Updated Virtual Wallet Transactions:", updatedVirtualWalletTxs);
export enum Currency {
Naira = "NGN",
Euro = "EUR",
Dollar = "USD",
Pound = "GBP",
Kenyan_Shilling = "KSH",
South_African_Rand = "ZAR",
}
src/
├── api/
│ ├── account.ts
│ ├── balance.ts
│ ├── blockchain.ts
│ ├── keystore.ts
│ ├── payments.ts
│ ├── kyc.ts
│ └── config.ts
│
├── query/ # On-chain data queries
│ └── queries.ts
│
├── services/ # Business logic
│ ├── walletService.ts
│ ├── balanceService.ts
│ ├── paymentService.ts
│ ├── kycService.ts
│ ├── blockchainService.ts
│ └── utils.ts
│
├── virtualwallet/ # Virtual wallet business logic
│ └── virtualwallet.ts
│
├── types/ # Global types and enums
├── utils/
├── index.ts # SDK entry
We welcome contributions from the community!
MIT License – see LICENSE file.
Join our developer community on Discord.
---
FAQs
A comprehensive Node.js library for interacting with the Toronet blockchain. This package simplifies wallet management, TNS setup, balance queries, fiat deposits, inter-wallet transfers, KYC verification, and smart contract deployment on Toronet's EVM-com
We found that torosdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.