Ethers Signer

Ethers Signer

Using Ethers.js Signer:

import { AuthereumSigner } from 'authereum'
const signer = new AuthereumSigner('kovan')

Examples

Sending transaction:

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)