Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
king-coin-api
Advanced tools
Readme
Модуль для удобного использования King Coin API.
От AdepT-Hub с ❤.
$ npm install king-coin-api
const { KingCoinApi } = require('king-coin-api')
const api = new KingCoinApi({ 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 0 weekly downloads. As such, king-coin-api popularity was classified as not popular.
We found that king-coin-api 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.