Skip to main content
If you do not pass a provider, the SDK exposes the SIWE message so you can sign it yourself and submit the signed payload. This is useful when you sign in a different context than you upload, or when you use a signer the SDK does not recognize.

1. Request the SIWE message

The SDK uses the domain from initialization, so you only pass the address:

2. Sign the message

Sign the message with your wallet:

3. Upload or delete with the signature

The equivalent delete method is deleteAvatarWithSignature. For headers, use uploadHeaderWithSignature and deleteHeaderWithSignature.

SIWEMessageOptions

An explicit chainId must match the configured network for the Metadata Service to accept the mutation. The SDK uses 1 for mainnet and 11155111 for sepolia by default.