JavaScript SDK for tubu.io
const Tubu = require('@tubu/tubuio-sdk-node');
// Create a new Tubu instance with api key
const app = new Tubu('APP_API_KEY');
// Create a new contract instance with the shortID
const contract = app.contract('CONTRACT_SHORTID');
// Call a send method from contract
contract
.send('METHOD_NAME', { args: [], account: 'ACCOUNT_ADDRESS' })
.then((result) => {
console.log(result);
})
.catch((err) => {
console.log(err);
});
For more details visit the docs page.