logo
OpenapiAuth

Prepare a SIWE message

API Docs with browser client
GET
/siwe/message

Verify that a previously issued nonce still exists and return the canonical SIWE message payload to sign.

Authorization

headerx-api-key<token>

Query Parameters

signerAddress*string

Wallet address that will sign the SIWE message.

nonce*string

Nonce previously issued by the server for this signer.

Length1 <= length
chainId?integer

Optional EIP-155 chain ID to bind the SIWE session to.

Range-9007199254740991 <= value <= 9007199254740991

Response Body

OK

application/json
  1. response

Result of preparing a canonical SIWE message after verifying the nonce exists.

valid*unknown
message*

Wire-format SIWE message payload with ISO timestamps.

messageString*string

Canonical EIP-4361 message string to sign.

Length1 <= length
Example Request
curl -X GET 'https://example.com/v4/siwe/message?signerAddress=string&nonce=string'
Example Response
{  "valid": true,  "message": {    "address": null,    "chainId": -9007199254740991,    "domain": "string",    "expirationTime": "2019-08-24T14:15:22Z",    "issuedAt": "2019-08-24T14:15:22Z",    "nonce": "string",    "notBefore": "2019-08-24T14:15:22Z",    "requestId": "string",    "resources": [      "string"    ],    "scheme": "string",    "statement": "string",    "uri": "http://example.com",    "version": "1"  },  "messageString": "string"}