@arianelabs/hweb3-providers-http
v1.0.33
Published
Module to handle Hweb3 transactions.
Downloads
70
Readme
hweb3-providers-http
This is a HTTP provider sub-package for hweb3.js.
Please read the documentation for more.
Installation
Node.js
npm install hweb3-providers-http
Usage
import { HttpProvider } from '@arianelabs/hweb3-providers-http'
const options = {
keepAlive: true,
timeout: 20000, // milliseconds,
headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],
withCredentials: false,
agent: {http: http.Agent(...), baseUrl: ''}
};
const provider = new HttpProvider(options);
Types
All the TypeScript typings are placed in the types
folder.