UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

1 lines 736 B
{"version":3,"file":"invoke-method.mjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/invoke-method.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipChainId, Json, JsonRpcRequest } from '@metamask/utils';\n\n/**\n * The request parameters for the `wallet_invokeMethod` method.\n *\n * @property scope - The scope on which to invoke the method.\n * @property request - The request to send.\n */\nexport type InvokeMethodParams = {\n scope: CaipChainId;\n request: Pick<JsonRpcRequest, 'method' | 'params'>;\n};\n\n/**\n * The result returned for the `wallet_invokeMethod` method.\n *\n * This method returns the response of the wrapped request.\n */\nexport type InvokeMethodResult = Json;\n"]}