@tubu/tubuio-sdk-node

JavaScript SDK for Tubu


Keywords
tubuio, sdk
License
MIT
Install
npm install @tubu/tubuio-sdk-node@0.1.5

Documentation

tubu.io logo

JavaScript SDK for tubu.io

Example Usage

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.

License

MIT