Skip to content

tubuarge/tubuio-sdk-node

Repository files navigation

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