Crate rusnap_api

Source
Expand description

JSONRPC API to Metamask Snap

Modules§

ui
Helper function to create UiComponent.

Structs§

Bip32Entropy
Entropy for Bip32
Bip44Entropy
Entropy for Bip32

Enums§

Curve
Curve for Bip32
Error
Error
NotifyType
Type of Notify
UiComponent
Snap custom UI Component.

Functions§

alert
Create an alert dialog.
confirm
Create a confirmation dialog.
get_bip32_entropy
Get entropy in BIP32.
get_bip32_public_key
Get public key in BIP32.
get_bip44_entropy
Get entropy in EIP44.
get_entropy_v1
Create entropy v1
get_entropy_v1_salt
Create entropy v1 using salt
notify
Displays a notification in MetaMask or natively in the browser.
prompt
Create a prompt dialog
request
Call metamask using snap.request.
state_clear
Clear state
state_get
Get state
state_update
Update state.

Type Aliases§

Result
Result