Skip to main content
  • Snap
  • Website

wallet_requestSnaps

Description

wallet_requestSnaps installs the requested Snaps and requests permission to use them if necessary.

Parameters

Record<string, { version?: string }>

The request parameters for the wallet_requestSnaps method.

It consists of a map of Snap IDs to optional version strings to request.

Returns

Record<string, { error: JsonRpcError } | Snap>

The result returned by the wallet_requestSnaps method.

It consists of a map of Snap IDs to either the Snap object or an error.