Create a new instance of KeyringSnapControllerClient.
The handlerType argument has a hard-coded default string value instead
of a HandlerType value to prevent the @metamask/snaps-utils module
from being required at runtime.
Constructor arguments.
The SnapController instance to use.
Optional handler?: HandlerTypeThe handler type (default: 'onKeyringRequest').
Optional origin?: stringThe sender's origin (default: 'metamask').
Optional snapThe ID of the snap to use (default: 'undefined').
Optional options: Record<string, Json>Optional params?: Json[] | Record<string, Json>Create a new instance of KeyringSnapControllerClient with the specified
snapId.
A new instance of KeyringSnapControllerClient with the
specified snap ID.
The ID of the snap to use in the new instance.
A
KeyringClientthat allows the communication with a snap through theSnapController.