@tubu/tubuio-sdk-node

0.1.8 • Public • Published

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

/@tubu/tubuio-sdk-node/

    Package Sidebar

    Install

    npm i @tubu/tubuio-sdk-node

    Weekly Downloads

    11

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    20.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • tubuarge
    • safakoks
    • berkaykorkmaz