Authereum
  • Introduction
  • Getting started
  • Live demos
  • Dapps using Authereum
  • Install
  • Integration
  • Web3 provider
  • Ethers Signer
  • StarkWare Provider
  • SDK
  • API Keys
  • Batched transactions
  • Verifying signatures
  • Testing
  • Browser compatibility
  • Contributing
  • Bug reports
  • FAQ
  • Dictionary
  • On the Web
  • Telegram Admins
  • Assets
Powered by GitBook
On this page
  • Ethers Signer
  • Examples
  • Sending transaction

Was this helpful?

Ethers Signer

PreviousWeb3 providerNextStarkWare Provider

Last updated 5 years ago

Was this helpful?

Ethers Signer

Example showing how to instantiate the :

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)

Ethers.js Signer