> For the complete documentation index, see [llms.txt](/llms.txt).

- Snap
- Website

# wallet_invokeKeyring

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](https://metamask-docs-f8nytczy3-consensys-ddffed67.vercel.app/snaps/reference/snaps-api/wallet%5Frequestsnaps).

## Parameters[​](#parameters "Direct link to Parameters")

object

required

The request to send to the Snap.

### 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[​](#returns "Direct link to Returns")

JSON

The result returned by the Snap. The structure of this result will depend on the specific method that was called on the Snap, and is not defined by the API.
