Installing frontend NPM packages
npm i zero-wallet-wagmi-connectorZero wallet connector
import { chain } from 'wagmi'
import {
ZeroWalletConnector,
ZeroWalletConnectorOptions }
from 'zero-wallet-wagmi-connector'
const zeroWalletConnectorOptions: ZeroWalletConnectorOptions;
const connector = new ZeroWalletConnector({
chains: [chain.goerli],
options: zeroWalletConnectorOptions
});Parameters
{
chains?: Chain[];
options: ZeroWalletConnectorOptions;
}Zero wallet signer
How to interact with Zerowallet Signer
signer.authorize() => Promise<void>
signer.deployScw() => Promise<void>
signer.refreshNonce() => Promise<void>
signer.getNonce() => Promise<string>
Last updated