tweb3-core-requestmanager

Web3 module to handle requests to external providers.

Usage no npm install needed!

<script type="module">
  import tweb3CoreRequestmanager from 'https://cdn.skypack.dev/tweb3-core-requestmanager';
</script>

README

tweb3-core-requestmanager

This is a sub package of [tweb3.js][repo]

The requestmanager package is used by most [tweb3.js][repo] packages. Please read the [documentation][docs] for more.

Installation

Node.js

npm install tweb3-core-requestmanager

In the Browser

Build running the following in the [tweb3.js][repo] repository:

npm run-script build-all

Then include dist/tweb3-core-requestmanager.js in your html file. This will expose the Web3RequestManager object on the window object.

Usage

// in node.js
var Web3WsProvider = require('tweb3-providers-ws');
var Web3RequestManager = require('tweb3-core-requestmanager');

var requestManager = new Web3RequestManager(new Web3WsProvider('ws://localhost:8546'));