Skip to main content
  • Snap
  • Website

wallet_invokeKeyring

Description

Invoke a keyring method of a Snap. This calls the onKeyringRequest handler of the Snap.

The Snap must be installed and the dapp must have permission to communicate with the Snap, or the request is rejected. The dapp can install the Snap and request permission to communicate with it using wallet_requestSnaps.

Parameters

object

The request parameters for the wallet_invokeKeyring method.

snapId

string
required

The ID of the Snap to invoke.

request

Record<string, Json>
required

The JSON-RPC request to send to the Snap.

Returns

Json

The result returned by the Snap.