https://github.com/ostdotcom/xweb3
Ethereum interaction layer by extending web3.js
https://github.com/ostdotcom/xweb3
connection-pooling heartbeat openst ost simpletoken web3js
Last synced: 5 months ago
JSON representation
Ethereum interaction layer by extending web3.js
- Host: GitHub
- URL: https://github.com/ostdotcom/xweb3
- Owner: ostdotcom
- License: gpl-3.0
- Created: 2019-10-21T08:18:51.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-11-07T07:58:22.000Z (over 6 years ago)
- Last Synced: 2025-06-29T20:38:31.460Z (12 months ago)
- Topics: connection-pooling, heartbeat, openst, ost, simpletoken, web3js
- Language: JavaScript
- Homepage: https://ost.com
- Size: 70.3 KB
- Stars: 1
- Watchers: 11
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# xweb3
Ethereum interaction layer by extending web3.js
[](https://travis-ci.org/ostdotcom/xweb3)

# Install
```bash
npm install @ostdotcom/xweb3 --save
```
# OSTWeb3 Usage
```js
const xweb3 = require('@ostdotcom/xweb3'),
wsEndPoint = "ws://127.0.0.1:8546",
rpcEndPoint = "http://127.0.0.1:8545";
// The below instance of web3 uses OstWSProvider.
// OstWSProvider automatically tries to reconnect when connection is broken.
let wsWeb3 = new xweb3.OstWeb3( wsEndPoint );
// The below instance is same as new Web3( rpcEndPoint );
let rpcWeb3 = new xweb3.OstWeb3( rpcEndPoint );
```