> For the complete documentation index, see [llms.txt](https://polkadot.novabloq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polkadot.novabloq.com/element-polkadot-wallet/actions/sign-a-message.md).

# Sign a message

Sign a simple message. Will return the signature when signed.

## Demo

Find an example in the demo app editor [here](https://bubble.io/page?version=test\&name=simple_connect\&id=polkadotjs\&tab=tabs-2)\
To see how it works in the workflow, find the Sign message folder in the Workflow folders, there you will see all related actions and events.

<details>

<summary>Where to find Workflow Folders?</summary>

![](https://2273326906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIMKdkPzZeUlk7WD5V4J8%2Fuploads%2Fw1bkCVd3LLI5JAG1o9fi%2FScreenshot%202022-01-16%20at%2013.42.43.png?alt=media\&token=1126bc4d-362e-4d06-8245-c08b5fb6d659)

![](https://2273326906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIMKdkPzZeUlk7WD5V4J8%2Fuploads%2FAjfYNUq5igFx4zRoDTBm%2FScreenshot%202022-01-16%20at%2013.47.14.png?alt=media\&token=86b64ecb-efdd-4506-9776-724e038794ff)

</details>

## Events

### Message Signed

If the user will sign the message, an event will be triggered **Message Signed**

The signature is available in the **state** **Signature**.

![](https://2273326906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIMKdkPzZeUlk7WD5V4J8%2Fuploads%2F6pxHLOeRv8oSXAvsI4bu%2FScreenshot%202022-01-16%20at%2013.55.15.png?alt=media\&token=e8695209-9d2f-4c7e-b69d-bd2f9a3254a6)

{% hint style="info" %}
Note: The state will be available only after the event Message Signed was triggered
{% endhint %}

### **User Canceled the Action**

If the user will deny (cancel) signing message, an event called **User Canceled the Action** will be triggered.\ <br>
