1.3.13420 • Published 3 years ago
xdc3-providers-http v1.3.13420
xdc3-providers-http
This is a HTTP provider sub-package for xdc3.
Please read the documentation for more.
Installation
Node.js
npm install xdc3-providers-http
Usage
const http = require('http');
const Web3HttpProvider = require('xdc3-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 Web3HttpProvider('http://localhost:8545', options);
Types
All the TypeScript typings are placed in the types
folder.
1.3.13420
3 years ago
1.3.13414
3 years ago
1.3.13416
3 years ago
1.2.136
3 years ago
1.2.135
3 years ago
1.3.13409
3 years ago
1.3.13408
3 years ago
1.3.134
3 years ago
1.3.13412
3 years ago
1.3.13401
3 years ago
1.3.133
3 years ago
1.3.2-alpha.0
3 years ago
1.3.1-alpha.1
3 years ago
1.0.0-beta.36
5 years ago