Authereum
Search…
Ethers Signer

Ethers Signer

Example showing how to instantiate the Ethers.js Signer:
1
import { AuthereumSigner } from 'authereum'
2
3
const signer = new AuthereumSigner('kovan')
Copied!

Examples

Sending transaction

Example showing how to send a transaction using the ethers signer:
1
import { AuthereumSigner } from 'authereum'
2
3
const signer = new AuthereumSigner('kovan')
4
5
const tx = {
6
gasPrice: '0x2540be400',
7
gasLimit: '0x186a0',
8
to: '0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1',
9
value: '0x00',
10
data: '0x'
11
}
12
13
const result = await signer.sendTransaction(tx)
14
console.log(result.hash)
Copied!
Last modified 1yr ago