auth
siwe

Verify a SIWE signature

Verify a signed SIWE message, consume its nonce, and return a session token plus stored session details.

post/siwe/verify

Request

  • Base URL: https://api.namefi.io/v-next
  • URL: https://api.namefi.io/v-next/siwe/verify
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Headers

x-namefi-eip7702-accountstring

Optional delegated account address to authenticate as when the signer is an approved signer. Preferred header name.

x-namefi-eip1271-accountstring

Legacy alias for x-namefi-erc1271-account. When multiple delegated account headers are present, x-namefi-eip7702-account takes precedence, then x-namefi-erc1271-account.

x-namefi-erc1271-accountstring

Optional delegated account address to authenticate as when the signer is an approved signer. Preferred ERC-1271 header name.

Request body

signaturestring required

Hex-encoded signature produced for the SIWE message.

addressstring required

Expected signer wallet address used to cross-check the SIWE message.

Response

OK

OR

Changes

No recorded changes to this operation across all 1 revision of this API.