![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
eris-db-promise
Advanced tools
This is JavaScript JSON-RPC 2.0 client library for ErisDB
You will need ErisDB
installed and running
Also this library is using ES6 so you will have to use node.js > 4.0.0
$ npm i --save eris-db-promise
Finding out ErisDB IP
$ eris chains inspect <name of ErisDB server> NetworkSettings.IPAddress
After that you will be able to create new instance of library:
const erisFactory = require('eris-db-promise')
// For base HTTP JSON RPC
const erisDb = erisFactory.createInstance('http://<Your IP Address>:1337/rpc')
// For WebSocket RPC client
const erisDb = erisFactory.createInstance('ws://<Your IP Address>:1337/socketrpc')
This library uses Promise
so all methods will return promises:
erisDb.accounts
.getAccounts()
.then((list) => {
// working with list of accounts
})
Library contains this components:
Component Name | Accessor |
---|---|
Accounts | ErisDB.accounts |
Blockchain | ErisDB.blockchain |
Consensus | ErisDB.consensus |
Events | ErisDB.events |
NameReg | ErisDB.namereg |
Network | ErisDB.network |
Transactions | ErisDB.transactions |
Unsafe | ErisDB.unsafe |
All methods are made using documentation here
All methods usages are described in tests
This library has browser version into dist/index.js
you could download it and use in browser.
Example of usage is into dist/index.html
This library includes transaction signing mechanism.
Sample:
const tx = {
inputs: [
{
address: user.address,
amount: 101,
sequence: 1,
pub_key: user.pub_key
}
],
outputs: [
{
address: other_account.address,
amount: 100
}
]
}
const txForSign = {
chain_id: 'chainIdHere',
tx: [
2,
_.cloneDeep(tx)
]
}
erisdb.transactions
.sign(txForSign, config.account.privKey)
.then((signed) => {
tx.inputs[0].signature = signed
})
.then(() => {
return global.erisdb
.transactions
.broadcastTx(tx)
})
FAQs
This is JavaScript JSON-RPC 2.0 client library for ErisDB
The npm package eris-db-promise receives a total of 4 weekly downloads. As such, eris-db-promise popularity was classified as not popular.
We found that eris-db-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.