Ethereum icon

Ethereum

Interact with Ethereum blockchain

Signature → Sign SIWE Message

AI-generated

Summary

Sign a SIWE message

Inputs

  • siweDomain (required) — The domain requesting the signature
  • siweStatement — Human-readable statement
  • siweUri (required) — URI of the requesting application
  • siweNonce — Random nonce for replay protection

Output shape

string

Returns the signed SIWE message; typically includes a signature field alongside the original message

Examples

Example 1: User signs a login request

Domain: example.com; Statement: Sign in to Example; URI: https://app.example.com; Nonce: random-nonce-123

Example 2: Session token acquisition

Domain: myapp.io; URI: https://auth.myapp.io; Nonce: 20230901-abc

Example 3: Custom application flow

Domain: api.service.com; Statement: Access user profile; URI: https://api.service.com/v1/profile; Nonce: generated-nonce

Links

Discussion