Get Siwe Message
Get Siwe Message
This GET route returns a Siwe Message that you can sign for auth purposes.
You can use a library like viem or a tool like etherscan to sign the message and recieve a signature
Parameters
address
(string): Your ethereum address. It should own the domain name you're planning to use with namestone.
Curl Example
curl -X GET \
'https://namestone.xyz/api/public_v1/get-siwe-message?address=0x57632Ba9A844af0AB7d5cdf98b0056c8d87e3A85'
Example Return
Siwe message: namestone.xyz wants you to sign in with your Ethereum account:
0x57632Ba9A844af0AB7d5cdf98b0056c8d87e3A85
Sign this message to access protected endpoints.
URI: https://namestone.xyz/api/public_v1/get-siwe-message
Version: 1
Chain ID: 1
Nonce: b10ffd444b0a2d810377a3900ba6cd0422141306d158520f24b2805952ea589f9bd1bcbf2e353a14105830183472de5f
Issued At: 2024-10-18T17:05:37.933Z