1.0.17 • Published 6 days ago

@bananocoin/banano-ts-cli v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

banano-ts-cli

a command line interface for the banano cryptocurrency that uses the bananojs TypeScript bindings.

simple TypeScript functions

import * as index from './index';
import * as crypto from 'crypto';
import * as httpsRateLimit from 'https-rate-limit';

const bananodeUrl = 'https://kaliumapi.appditto.com/api';

const run = async () => {
  httpsRateLimit.setUrl(bananodeUrl);
  const seed: string = crypto.randomBytes(32).toString('hex');
  console.log('seed', seed);
  const privateKey: string = index.getPrivateKeyFromSeed(seed, 0);
  console.log('privateKey', privateKey);
  const publicKey: string = await index.getPublicKeyFromPrivateKey(privateKey);
  console.log('publicKey', publicKey);
  const account: string = index.getAccountFromPublicKey(publicKey);
  console.log('account', account);
  const accountInfoReq = {
    action: 'account_info',
    account: account,
    count: 1,
  };
  console.log(accountInfoReq);
  const accountInfoResp = await httpsRateLimit.sendRequest(accountInfoReq);
  console.log(accountInfoResp);
};
run();

examples of most functions as part of the cli

https://github.com/BananoCoin/banano-ts-cli/blob/master/src/main.ts

complete documentation of banano CLI functions

https://github.com/BananoCoin/banano-ts-cli/blob/master/docs/banano-cli.md

1.0.17

6 days ago

1.0.16

3 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.11

6 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago