UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 676 B
{"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 to send to the Snap.\n */\nexport type InvokeSnapParams = {\n /**\n * The ID of the Snap to invoke.\n */\n snapId: string;\n\n /**\n * The JSON-RPC request to send to the Snap.\n */\n request: Record<string, Json>;\n};\n\n/**\n * The result returned by the Snap. The structure of this result will depend on\n * the specific method that was called on the Snap, and is not defined by the\n * API.\n */\nexport type InvokeSnapResult = Json;\n"]}