1.13.13 • Published 2 years ago

@hashprotocol/jsonrpc-provider v1.13.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@hashprotocol/jsonrpc-provider

Build Status Coverage Status Standard Code Style MIT License @hashprotocol/jsonrpc-provider Gitter Telegram Greenkeeper badge

:warning: This project is under heavy development. Expect bugs & breaking changes.

:pencil: Introductory Blog Post: The Missing Tool to Cross-Chain Development

Query different blockchains with account management using a single and simple interface.

Installation

npm i @hashprotocol/jsonrpc-provider

or

<script src="https://cdn.jsdelivr.net/npm/@hashprotocol/jsonrpc-provider@0.2.3/dist/jsonrpc-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@hashprotocol/jsonrpc-provider@0.2.3/dist/jsonrpc-provider.min.js.map -->
<!-- available as window.JsonRpcProvider -->

Usage

import { JsonRpcProvider } from '@hashprotocol/jsonrpc-provider'

const jsonrpc = new JsonRpcProvider('https://jsonrpc.com', 'username', 'password')

await jsonrpc.jsonrpc('sendtoaddress', 'xxx')

License

MIT