v2 - Profiles

Register Wallet Rails

Register wallet rails (Privy wallet) for the authenticated user.

Writes wallet_rails structured metadata and appends the address to wallet_addresses for fast array-contains lookups. Both fields are written in a single Firestore update.

Idempotent: returns 200 if already registered with the same privy_user_id. Returns 409 if wallet_rails.evm exists with a different privy_user_id.

post/v2/profiles/wallet-rails

Request

  • Base URL
    https://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

Authorizationstring
X-JubJub-Service-Keystring
X-JubJub-Agent-Keystring
X-JubJub-Platform-Keystring
Originstring
Refererstring
X-JubJub-Trial-Tokenstring

Request body

wallet_addressstring required

Primary EVM address (smart wallet if available, else embedded EOA)

privy_user_idstring nullable

Privy DID e.g. did:privy:xxxx (Privy path)

embedded_addressstring nullable

Embedded EOA signer address (if different from primary)

wallet_typestring nullable

'smart_wallet', 'embedded', or 'external'

signaturestring nullable

EIP-191 signature over the SIWE message from /v2/auth/wallet-nonce (external path)

noncestring nullable

Nonce previously issued by /v2/auth/wallet-nonce (external path)

Response

Successful Response

wallet_railsobject nullable
messagestring nullable

Changes

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