crypto-coder / otapi-js

Node.js addon for interacting with Open Transactions through OTAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

otapi-js

Node.JS addon for interacting with Open Transactions using OTAPI. This module provides the ability to load an Open Transactions wallet, create/modify accounts, create/modify new digital currencies, and transfer digital currencies between accounts.`

API

  • boolean success = otapi.startOTAPI('PASSPHRASE');

  • otapi.stopOTAPI();

  • string encodedText = otapi.encodeText('TEXTTOENCODE');

  • string nymID = otapi.createNym('NYM NAME');

  • string nymID = otapi.createNym('NYM NAME', 'SERVER ID');

  • string nymID = otapi.createNym('NYM NAME', 'SERVER ID', true_false_registerOnServer);

  • boolean success = otapi.deleteNym('NYM ID');

  • boolean success = otapi.deleteNym('NYM ID', 'SERVER ID');

  • string accountID = otapi.createAccount('ACCOUNT NAME', 'NYM ID', 'ASSET ID');

  • string accountID = otapi.createAccount('ACCOUNT NAME', 'NYM ID', 'ASSET ID', 'SERVER ID');

  • boolean success = otapi.deleteAccount('ACCOUNT ID');

  • boolean success = otapi.deleteAccount('ACCOUNT ID', 'SERVER ID');

  • double accountBalance = otapi.getAccountBalance('ACCOUNT ID');

About

Node.js addon for interacting with Open Transactions through OTAPI


Languages

Language:C++ 55.1%Language:JavaScript 37.6%Language:CMake 7.4%