Данная библиотека предназначена для удобного использования Paper Coin API
const PaperCoin = require('papercoin_api')
const paper = new PaperCoin({
token: vash_token
})
paper.onTransfer(info => {
console.log(info)
})
let info = await paper.getUserInfo(322861790)
console.log(info)
// {"response":[{"status":"ok","user_id":"322861790","balance":264252660.77611557,"speed":11.211019999999998,"name":"Даниил","photo":"https://sun2.beeline-kz.userapi.com/yQnOMesyQAkiNfnGZtKuOa_YZLk5hyDUiRuMHA/hkwMfvBPsqU.jpg?ava=1"}]}
let transfer = await paper.sendTransfer(322861790, 100)
console.log(transfer)
// {"response":[{"status":"ok"}]}
await paper.start()