New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

king-coin-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

king-coin-api

Модуль для удобного использования KingCoin API

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-76.92%
Maintainers
1
Weekly downloads
 
Created
Source

Модуль для удобного использования King Coin API.

От AdepT-Hub с ❤.

📦 Установка

$ npm install king-coin-api

🚀 Использование

const { API } = require('king-coin-api')
const api = new API({ token: 'YOUR_TOKEN' }) // Ваш токен

// Получение баланса мерчанта
async getMyBalance() {
    const balance = await api.getMyBalance() // Получаем баланс
    console.log(balance) // Выводим результат в консоль
}

// Получение баланса пользователей
async getUserBalance() {
    const user_ids = [657023844] // Создаем массив пользователей (до 1000)
    const userBalance = await api.getUserBalance({ user_ids }) // Получаем балансы пользователей
    console.log(userBalance) // Выводим результат в консоль
}

// Получение историю переводов
async getHistory() {
    const history = await api.getHistory({ filter: "IN", count: 20 }) // Получаем 20 последних пополнений
    console.log(history) // Выводим результат в консоль
}

//Перевод коинов пользователю
async sendCoins() {
    const send = await api.sendCoins({ receiver: 657023844, amount: 1 }) // Делаем перевод 1 коин
    console.log(send) // Выводим результат в консоль
}

Keywords

FAQs

Package last updated on 14 May 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc