Skip to main content

Wallet

Wallet interaction/object. We follow Keplr's API and add few value to the wallet type.

type Wallet = Pick<
Keplr,
| "enable"
| "getKey"
| "getOfflineSigner"
| "getOfflineSignerAuto"
| "getOfflineSignerOnlyAmino"
| "experimentalSuggestChain"
| "signDirect"
| "signAmino"
> & {
signArbitrary?: Keplr["signArbitrary"];
subscription?: (reconnect: () => void) => () => void;
init?: () => Promise<unknown>;
disable?: (chainIds?: string | undefined) => Promise<void>;
};