@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 647 B
Source Map (JSON)
{"version":3,"file":"invoke-snap.cjs","sourceRoot":"","sources":["../../../src/types/methods/invoke-snap.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `wallet_invokeSnap` method.\n *\n * @property snapId - The ID of the Snap to invoke.\n * @property request - The JSON-RPC request to send to the Snap.\n */\nexport type InvokeSnapParams = {\n snapId: string;\n request: Record<string, Json>;\n};\n\n/**\n * The result returned by the `wallet_invokeSnap` method, which is the result\n * returned by the Snap.\n */\nexport type InvokeSnapResult = Json;\n"]}