Initiate a Signature Request
Learn how to initiate a signature request from a user-controlled wallet with social logins or email authentication
This guide outlines initiating a signature request from a previously created user-controlled wallet with social logins or email authentication. To create a wallet, see Create Your First Wallet with Social Logins or Create Your First Wallet with Email.
If it has been over 14 days or you end the last trial attempt since you first ran the sample app, your session is logged out. You must run the sample app and acquire a new user token to proceed further. For instructions, see the perform login part of Create Your First Wallet with Social Logins or Create Your First Wallet with Email Authentication.
Step 1. Initiate a signature request
- Sign the EIP-191 message or EIP-712 typed structure data from a specified user-controlled wallet:
- For EIP-191, include
walletId
andmessage
in aPOST
request to the/user/sign/message
endpoint. - For EIP-712, include
walletId
anddata
in aPOST
request to the/user/sign/typedData
endpoint.
- For EIP-191, include
- From the response, copy
challengeId
for the next step.
Step 2. Perform signing
To perform signing on the sample app's confirmation UI, ensure you have obtained an active user token and encryption key.
From the Execute Challenge screen, paste the Challenge ID and select Execute.
Step 3. Confirm signature request
The sample app prompts a confirmation UI for the user to view the signing details and confirm it. You can customize confirmation UIs. For more, see Confirmation UIs .
Updated 29 days ago