Have ideas to improve npm?Join in the discussion! »

authereum
TypeScript icon, indicating that this package has built-in type declarations

0.1.14 • Public • Published

authereum

The Authereum library

Documentation License dependencies Status NPM version

Install

npm install authereum

Getting started

Initializing SDK:

import Authereum from 'authereum'

const authereum = new Authereum(/* options */)

authereum.login()

Getting web3 provider:

import Web3 from 'web3'
import Authereum from 'authereum'

const authereum = new Authereum(/* options */)
const provider = authereum.getProvider()
const web3 = new Web3(provider)

Using Ethers.js Signer:

import { AuthereumSigner } from 'authereum'

const signer = new AuthereumSigner(/* options */)

const tx = {
  gasPrice: '0x2540be400',
  gasLimit: '0x186a0',
  to: '0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1',
  value: '0x00',
  data: '0x',
}

const result = await signer.sendTransaction(tx)
console.log(result.hash)

Options:

  • mainnet, kovan, rinkeby, ropsten, goerli

CDN

[https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js](jsDelivr CDN)

<script src="https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js"></script>

[https://unpkg.com/authereum@latest/authereum.js](unpkg CDN)

<script src="https://unpkg.com/authereum@latest/authereum.js"></script>

Full Documentation

Full documentation is available on our docs page.

Development

Watch and build:

npm run dev

Build:

npm run build

Lint:

npm run lint

Test

npm test

License

MIT

Keywords

none

Install

npm i authereum

DownloadsWeekly Downloads

6,397

Version

0.1.14

License

MIT

Unpacked Size

1.53 MB

Total Files

45

Last publish

Collaborators

  • avatar
  • avatar
  • avatar