OpenapiAuth
Prepare a SIWE message
API Docs with browser clientGET
Verify that a previously issued nonce still exists and return the canonical SIWE message payload to sign.
header
x-api-key<token>signerAddress*stringWallet address that will sign the SIWE message.
nonce*stringNonce previously issued by the server for this signer.
Length
1 <= lengthchainId?integerOptional EIP-155 chain ID to bind the SIWE session to.
Range
-9007199254740991 <= value <= 9007199254740991OK
application/json- response
Result of preparing a canonical SIWE message after verifying the nonce exists.
valid*unknownmessage*Wire-format SIWE message payload with ISO timestamps.
messageString*stringCanonical EIP-4361 message string to sign.
Length
1 <= lengthcurl -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"}