Create a new instance of SnapRpcSender.
The caller's origin.
The MetaMaskInpageProvider instance to use.
Send a request to the snap and return the response.
The JSON-RPC request to send to the snap.
Optional params?: Json[] | Record<string, Json>A promise that resolves to the response of the request.
Implementation of the
Senderinterface that can be used to send requests to a snap through the snap JSON-RPC API.