0.0.1 • Published 3 years ago
vocoin v0.0.1
node-vocoin
A NodeJS Client for the VoCoin API
Usage
const { Account, Transfer } = require("vocoin");
// Get an account by ID
const account = await Account.getById("GAMHGB");
// Get an account by Discord
const account = await Account.getByDiscord("269916553171042315");
// Get a transfer by ordinal ID
const transfer = await Transfer.getById(1);
// Iterate through transfers (first and last are inclusive)
// Defaults to 1 to Infinity
for await (const transfer of Transfer.iterate(1000, 1010)) {
console.log(transfer);
}
License
0.0.1
3 years ago