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.
king-coin-api
Advanced tools
Модуль для удобного использования King Coin API.
От AdepT-Hub с ❤.
$ npm install king-coin-api
const { API } = require('king-coin-api')
const api = new API({ token: 'YOUR_TOKEN' }) // Ваш токен
// Получение баланса мерчанта
async function getMyBalance() {
const balance = await api.getMyBalance() // Получаем баланс
console.log(balance) // Выводим результат в консоль
}
getMyBalance() // Вызов функции
// Получение баланса пользователей
async function getUserBalance() {
const user_ids = [657023844] // Создаем массив пользователей (до 1000)
const userBalance = await api.getUserBalance({ user_ids }) // Получаем балансы пользователей
console.log(userBalance) // Выводим результат в консоль
}
getUserBalance() // Вызов функции
// Получение историю переводов
async function getHistory() {
const history = await api.getHistory({ filter: "IN", count: 20 }) // Получаем 20 последних пополнений
console.log(history) // Выводим результат в консоль
}
getHistory() // Вызов функции
//Перевод коинов пользователю
async function sendCoins() {
const send = await api.sendCoins({ receiver: 657023844, amount: 1 }) // Делаем перевод 1 коин
console.log(send) // Выводим результат в консоль
}
sendCoins() // Вызов функции
FAQs
Модуль для удобного использования KingCoin API
The npm package king-coin-api receives a total of 2 weekly downloads. As such, king-coin-api popularity was classified as not popular.
We found that king-coin-api 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.