Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archergu/simple-blockchain-rpc
A simple blockchain wallet rpc package
https://github.com/archergu/simple-blockchain-rpc
blockchain rpc wallet
Last synced: 21 days ago
JSON representation
A simple blockchain wallet rpc package
- Host: GitHub
- URL: https://github.com/archergu/simple-blockchain-rpc
- Owner: ArcherGu
- License: mit
- Created: 2019-01-17T01:40:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T07:04:46.000Z (almost 2 years ago)
- Last Synced: 2024-12-14T03:15:30.202Z (about 2 months ago)
- Topics: blockchain, rpc, wallet
- Language: TypeScript
- Homepage:
- Size: 2.1 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Blockchain RPC
There are actually a lot of similar packages, but I always think they are too complicated. Maybe a small and simple core package will be more suitable for those original projects.
## Install
```
npm i simple-blockchain-rpc
```## Quick Start
```js
const { Client } = require("simple-blockchain-rpc");const rpcClient = new Client({
rpchost: 'Your rpc host',
rpcport: Your rpc port,
rpcuser: 'Your rpc username',
rpcpassword: 'Your rpc password',
})rpcClient.call('getblockhash', [100]).then(result => {
console.log(result)
})
```## License
The code in this project is licensed under MIT license.