Skip to content
Alchemy Logo

Signature verification

The SignatureVerificationService provides methods for verifying user signatures.

Verifies a user signature against a message and address. Supports standard signatures and ZkLogin signatures (via the jwks parameter).

Request:

FieldTypeRequiredDescription
addressstringYesThe address that signed the message
signatureUserSignatureYesThe signature to verify
messageBcsYesThe BCS-encoded message that was signed
jwksrepeated ActiveJwkNoActive JSON Web Keys for ZkLogin signature verification

Response:

FieldTypeDescription
is_validboolWhether the signature is valid
reasonstringReason for failure if the signature is invalid
grpcurl \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -import-path proto \
  -proto sui/rpc/v2/signature_verification_service.proto \
  -d '{
    "address": "0xYOUR_ADDRESS",
    "signature": {"bcs": {"value": "BASE64_SIGNATURE"}},
    "message": {"bcs": {"value": "BASE64_MESSAGE"}}
  }' \
  sui-mainnet.g.alchemy.com:443 \
  sui.rpc.v2.SignatureVerificationService/VerifySignature
Was this page helpful?