UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

25 lines 852 B
import type { CaipChainId, Json, JsonRpcParams } from "@metamask/utils"; /** * The request parameters for the `snap_experimentalProviderRequest` method. * * NOTE: This implementation is experimental and may be removed or changed without warning. * * @property chainId - The CAIP-2 chain ID to make the request to. * @property request - The JSON-RPC request. */ export type ProviderRequestParams = { chainId: CaipChainId; request: { method: string; params: JsonRpcParams; } | { method: string; }; }; /** * The result returned by the `snap_experimentalProviderRequest` method, which will be a JSON serializable value. * * NOTE: This implementation is experimental and may be removed or changed without warning. */ export type ProviderRequestResult = Json; //# sourceMappingURL=provider-request.d.cts.map