@symfoni/walletconnect-v2-ethers-signer
TypeScript icon, indicating that this package has built-in type declarations

0.3.0-beta.23 • Public • Published

Sponsor TypeScript version Node.js version APLv2 Build Status - Travis Build Status - GitHub Actions

Use

import { WalletConnectSigner } from '@symfoni/walletconnect-v2-ethers-signer';
// Create a signer with a RPC endpoint
return new WalletConnectSigner().connect(new ethers.providers.JsonRpcProvider(RPC_URL));

// Listen for URI
walletConnectSigner.on(SIGNER_EVENTS.uri, (uri) => {
  // Show URI so that a wallet can pair (not handled here yet)
});
await walletConnectSigner.open(); // This will trigger a session creation where an URI will be created or it will connect to old session.
const address = await walletConnectSigner.getAddress();

License

Licensed under the APLv2. See the LICENSE file for details.


Readme

Keywords

none

Package Sidebar

Install

npm i @symfoni/walletconnect-v2-ethers-signer

Weekly Downloads

2

Version

0.3.0-beta.23

License

Apache-2.0

Unpacked Size

59.3 kB

Total Files

19

Last publish

Collaborators

  • ramvi
  • robertosnap