1.3.13420 • Published 4 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-httpUsage
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
4 years ago
1.3.13414
5 years ago
1.3.13416
5 years ago
1.2.136
5 years ago
1.2.135
5 years ago
1.3.13409
5 years ago
1.3.13408
5 years ago
1.3.134
5 years ago
1.3.13412
5 years ago
1.3.13401
5 years ago
1.3.133
5 years ago
1.3.2-alpha.0
5 years ago
1.3.1-alpha.1
5 years ago
1.0.0-beta.36
7 years ago