This library isnt fully complete, and will include breaking changes often
OpenBlaze.js is a is a high level library that allows you to interact with OpenBlaze an appchain framework.
const OpenBlaze = require('openblaze'); // Place holder name
const config = require('./config.json');
(async () => {
// Turn your private key string into a keypair
let Vkey = OpenBlaze.PrivToKeypair(config.privkey);
const client = new OpenBlaze.Client({
node: config.node,
Keypair: Vkey,
});
let res = await client.broadcast({
transactionType: 'transfer',
Data: {
denom: 'ublaze',
reciever: 'burn',
amount: '1000', // exponent being 6
},
});
console.log(res);
})();
To:Do
OpenBlaze.js currently has no documentation, other than examples