Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-mathcoin-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mathcoin-api

Working with the MathCoin API

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

node-mathcoin-api

Working with the MathCoin API

Create an API token - https://m.vk.com/app6995668#create_merchant

Install

npm install node-mathcoin-api

Usage

const MathCoinAPI = require('node-mathcoin-api');
const api = new MathCoinAPI("userId", "API Token");

Methods

@amount - number of coins (optional)

api.txList(amount)
  .then((response) => console.log(response));

Get a list of translations

@txId - the number of the last transfer after which to show the transfers

api.txList(txId)
  .then((response) => console.log(response));

Find out the balance

@id - id of the user whose balance you need to find out

api.score(id)
  .then((response) => console.log(response));

Send coins

@to - id of the user to send to
@amount - number of coins sent

api.score(to, amount)
  .then((response) => console.log(response));

Keywords

FAQs

Package last updated on 13 May 2021

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