Skip to main content

KeyGeneratorKeystoreProvider

Class: KeyGeneratorKeystoreProvider

KeyGeneratorKeystoreProvider will create a new XMTP PrivateKeyBundle and persist it to the network This provider should always be specified last in the list of keystoreProviders on client creation, as it will overwrite any XMTP identities already on the network

Implements

Constructors

constructor

new KeyGeneratorKeystoreProvider()

Methods

newKeystore

newKeystore(opts, apiClient, wallet?): Promise<Keystore>

Parameters

NameType
optsKeystoreProviderOptions
apiClientdefault
wallet?Signer

Returns

Promise<Keystore>

Implementation of

KeystoreProvider.newKeystore

Defined in

keystore/providers/KeyGeneratorKeystoreProvider.ts:18

Was the information on this page helpful?