Verify and link wallet
Verifies a signed EIP-4361 message and links the wallet to the authenticated Shodai account. OAuth bearer tokens require agreements.write; API keys require the equivalent account entitlement. Verification proves control only: it does not transfer custody or authorize Shodai to sign agreement inputs.
agreements.write scope, or provide X-API-Key as the alternative credential. Verification proves control and links the wallet to the authenticated Shodai account; it does not transfer custody or authorize Shodai to sign agreement inputs. See Authentication for delegated OAuth access and Link a wallet and access agreements for the creator and participant access model.
TypeScript with viem
Authorizations
Canonical API-key credential. Send X-API-Key: cns_pk_..., or Authorization: Bearer cns_pk_... only as an API-key compatibility alias.
Body
Wallet address claimed by the EIP-4361 message.
^0x[0-9a-fA-F]{40}$Complete EIP-4361 message containing the issued nonce, wallet, domain, URI, chain ID, and issued-at timestamp.
Hexadecimal signature over the complete EIP-4361 message.
^0x[0-9a-fA-F]+$Optional assertion that must exactly match the domain in the signed message.
Optional assertion that must match the chain ID in the signed message.