1.1.1 • Published 6 years ago

discoin v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Discoin for NodeJS

const Discoin = require("discoin");
const discoin = new Discoin("token");

discoin.fetch().then(transactions => {
// Transactions = API return but parsed
});

discoin.request("1234567890", 100, "DTS").then(result => { // (user id in string, amount in integer, currency code in string)
// Result = API return but parsed
});

discoin.info("abcdefg").then(result => { // Look up a transaction. .info(receipt id in string)
// Result = API return but parsed
});

discoin.reverse("abcdefg").then(result => { // Refund a transaction (NOT FOR USERS). .reverse(receipt id in string)
// Result = API return but parsed
});

What is Discoin anyways?

Discoin is an universal currency exchange system between Discord bots. More info here.