Sign Message
Sign Message Widgets and Modals
Get Method Widgets and Modals
To use the widgets in React components you need to import the Widget
component:
Every widget has an optional parameter called settings
.
Name | Type | Required | Default | Description |
---|---|---|---|---|
fullScreen | Boolean | true | Should widget be shown fullscreen | |
hideMenu | Boolean | true | Deprecated | |
preventClose | Boolean | true | Hides close button |
You can provide them to the widget like this:
Sign message
Description
Sign on a message sent from another party. A widget will be shown to the user with the message itself, the user will be able to approve or cancel the signage.
Use /n
at the beginning of a new line.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | String | ✔️ | Blockchain ID | |
message | String | ✔️ | Message to sign |
Return type
Post Method Widgets and Modals
Mutation Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
widget parameters | Widget parameters |
Sign message
Description
Sign message mutation allows you to sign a message with your wallet. The message will be signed with the private key of the wallet. The signature can be verified by anyone with the public key of the wallet.
Callback Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | string | ✔️ | Blockchain id | |
message | string | ✔️ | Message to sign |
Last updated