aws-kms-ethers-signer
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

aws-kms-ethers-signer

npm version

Install

$ npm install aws-kms-ethers-signer

Examples

import * as ethers from "ethers";
import { KmsEthersSigner } from "aws-kms-ethers-signer";

async function main() {
  const rpcUrl = "http://localhost:8501";
  const keyId = "xxxxx-xxxx-xxxx-xxxx-xxxxxxxx";
  const provider = new ethers.providers.JsonRpcProvider(rpcUrl);
  const signer = new KmsEthersSigner({ keyId }).connect(provider);

  console.log(await signer.getAddress());
}

main().catch((e) => console.error(e));

Readme

Keywords

none

Package Sidebar

Install

npm i aws-kms-ethers-signer

Weekly Downloads

820

Version

0.1.3

License

MIT

Unpacked Size

38.6 kB

Total Files

11

Last publish

Collaborators

  • odanado