Search
Preparing search index...
The search index is not available
@xmtp/xmtp-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@xmtp/xmtp-js
SnapProvider
Class SnapProvider
The Snap keystore provider will:
Check if the user is capable of using Snaps
Check if the user has already setup the Snap with the appropriate keys
If not, will get keys from the network or create new keys and store them in the Snap
Hierarchy
SnapProvider
Implements
KeystoreProvider
Index
Constructors
constructor
Properties
snap
Id
snap
Version
Methods
new
Keystore
Constructors
constructor
new
Snap
Provider
(
snapId
?:
string
, snapVersion
?:
string
)
:
SnapProvider
Parameters
snapId:
string
= SNAP_LOCAL_ORIGIN
Optional
snapVersion:
string
Returns
SnapProvider
Properties
snap
Id
snap
Id
:
string
Optional
snap
Version
snap
Version
?:
string
Methods
new
Keystore
new
Keystore
(
opts
:
KeystoreProviderOptions
, apiClient
:
ApiClient
, wallet
?:
Signer
)
:
Promise
<
Keystore
>
Parameters
opts:
KeystoreProviderOptions
apiClient:
ApiClient
Optional
wallet:
Signer
Returns
Promise
<
Keystore
>
Exports
Snap
Provider
constructor
snap
Id
snap
Version
new
Keystore
Generated using
TypeDoc
The Snap keystore provider will: