arg8-js
v1.0.0
Published
Arg8 Gateway SDK for Node.js and the browser
Downloads
4
Readme
Arg8-JS
const arg8 = new Arg8(wallet);
const balance = await arg8.getBalance();
console.log(await balance.text());
await deposit(quantity: 10000, target: "");
// "ehpRUY79EO_p0PZuNuZI2BAnVnSAC2fNgrsLyGp5JjI" contains 'Hello world'
const data = await arg8.getTxData(
'ehpRUY79EO_p0PZuNuZI2BAnVnSAC2fNgrsLyGp5JjI',
);
console.log(await r.text());
const tx = await arg8.getTx('ehpRUY79EO_p0PZuNuZI2BAnVnSAC2fNgrsLyGp5JjI');
console.log(await tx.json());