@anzerr/banano.rpc
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

Typescript interface to call the nano rpc

Install

npm install --save git+https://git@github.com/anzerr/banano.rpc.git
npm install --save @anzerr/banano.rpc

Example

import {Rpc} from 'banano.rpc';

let api = new Rpc(`http://localhost:7072`); // {number: 'bigInt|raw'} or {number: (n: string) => any}
api.account('ban_1fundm3d7zritekc8bdt4oto5ut8begz6jnnt7n3tdxzjq3t46aiuse1h7gj').balance().then((res) => {
	console.log(res); // {balance: number, pending: number}
})

Package Sidebar

Install

npm i @anzerr/banano.rpc

Weekly Downloads

0

Version

1.0.21

License

MIT

Unpacked Size

37 kB

Total Files

46

Last publish

Collaborators

  • anzerr