1.0.0-alpha.13 • Published 6 years ago
multichain-api v1.0.0-alpha.13
MultiChain API
MultiChain API is an unofficial MultiChain client for Node.js written in TypeScript.
💡 The
alpha
status only denotes that the unit tests are incomplete, but the client should be fully functional.
Features
Promise
-based functional API- Optimized for serverless architecture
Installation
npm install --save multichain-api
Examples
TypeScript example:
import { GetBlock } from 'multichain-api/Commands/GetBlock'
import { RpcClient } from 'multichain-api/RpcClient'
const client = RpcClient({
protocol: 'http',
host: '127.0.0.1',
port: 8570,
username: 'multichainrpc'
password: '...'
})
client(GetBlock(42))
.then(response => console.log(response))
.catch(error => console.log(error))
JavaScript example:
const { GetBlock } = require('multichain-api/Commands/GetBlock')
const { RpcClient } = require('multichain-api/RpcClient')
const client = RpcClient({
protocol: 'http',
host: '127.0.0.1',
port: 8570,
username: 'multichainrpc'
password: '...'
})
client(GetBlock(42))
.then(response => console.log(response))
.catch(error => console.log(error))
Resources
License
1.0.0-alpha.13
6 years ago
1.0.0-alpha.11
6 years ago
1.0.0-alpha.10
6 years ago
1.0.0-alpha.9
7 years ago
1.0.0-alpha.8
7 years ago
1.0.0-alpha.7
7 years ago
1.0.0-alpha.6
7 years ago
1.0.0-alpha.5
7 years ago
1.0.0-alpha.4
7 years ago
1.0.0-alpha.3
7 years ago
1.0.0-alpha.2
7 years ago
1.0.0-alpha.1
7 years ago