Socket
Socket
Sign inDemoInstall

mathcoin-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathcoin-api

MathCoin Api Wrapper


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

mathcoin-api

MathCoin API Node js package

Создать апи ключ - https://m.vk.com/app6995668#create_merchant

Установить

npm i mathcoin-api

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

const MathCoinAPI = require ('mathcoin-api');
const api = new MathCoinAPI('апи ключ','vk id бота');

Функции

Получить ссылку на перевод

@summa - сумма

let transfer_link = api.get_link(summa);

Получить список переводов

@last_tx_id - номер последнего перевода после которого показать переводы

api.txList(last_tx_id,(err,resp)=>{
if(err) return;
if(resp.length>0){
  console.log('Получено '+resp.length+' транзакций');
}
});

Узнать баланс

@id - чей баланс узнать @cb - ответ от сервера

  api.score(1234 ,(score)=>{
    console.log('Получен баланс: '+score);
  });

Отправить коины

api.send(1234, 10000, (res)=>{
  console.log('Результат отправки: '+res['success']);
});

Keywords

FAQs

Package last updated on 03 Apr 2020

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