Skip to main content
  • Snap
  • Website

wallet_requestSnaps

Description

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

Parameters

{ [x: string]: { version?: string | undefined; }; }

The request parameters for the wallet_requestSnaps method.

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

Returns

{ [x: string]: Snap | { error: JsonRpcError; }; }

The result returned by the wallet_requestSnaps method.

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