abridged
v2.0.0-beta.16
Published
Abridged SDK
Downloads
41
Readme
Abridged SDK
Installation
$ npm i abridged -S
Usage
import { createGoerliSdk } from 'abridged';
import WebSocket from 'ws'; // only for node.js
import fetch from 'node-fetch'; // only for node.js
const INFURA_PROJECT_ID = ''; // see: https://infura.io/
const sdk = createGoerliSdk({
queryProviderEndpoint: `https://goerli.infura.io/v3/${INFURA_PROJECT_ID}`,
authKeyModule: {
privateKey: '0x...', // optional
},
fetch, // only for node.js
WebSocket, // only for node.js
});