Ethers Signer

Ethers Signer

Example showing how to instantiate the Ethers.js Signer:

import { AuthereumSigner } from 'authereum'

const signer = new AuthereumSigner('kovan')

Examples

Sending transaction

Example showing how to send a transaction using the ethers signer:

import { AuthereumSigner } from 'authereum'

const signer = new AuthereumSigner('kovan')

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

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

Last updated