abridged

Abridged SDK

Usage no npm install needed!

<script type="module">
  import abridged from 'https://cdn.skypack.dev/abridged';
</script>

README

Abridged SDK

NPM version MIT licensed

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
});

Resources

License

MIT