Wondering what’s next for npm?Check out our public roadmap! »

    raiblocks-client

    1.0.0 • Public • Published

    Node RaiBlocks Client

    Raiblocks client for Node.js

    Install

    Install the module:

    npm install --save raiblocks-client

    Install the RaiBlocks node: https://github.com/clemahieu/raiblocks

    Example

    let { client } = require('./index');
     
    let raiClient = client({
        rai_node_host: 'http://127.0.0.1:7076'
    });
     
    let account = 'xrb_3xmhxujshtt51npreosm4afcy5gge31q9wryf571jbtwky8i99pstuamxsob';
     
    raiClient.account_balance({ account: account }).then(balance => {
        return raiClient.mrai_from_raw({ amount: balance.balance }).then(mrai => {
            console.log('Account', account, 'has', mrai.amount, 'raiblocks!');
        });
    });

    Available commands

    https://github.com/clemahieu/raiblocks/wiki/RPC-protocol

    Running tests

    npm test

    Install

    npm i raiblocks-client

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar