User

Link a wallet to the authenticated user

Link a wallet to the authenticated user

post/api/user/wallet/link

Request body

walletAddressstring

The wallet address to link to the user

Example request

{
  "walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
}

Response

Wallet linked successfully

successboolean

Example response

{
  "success": true,
  "user": {
    "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "embeddedWalletAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "privyId": "1234567890abcdef1234567890abcdef12345678",
    "name": "John Doe",
    "email": "john@example.com",
    "isSubscribed": true,
    "imageUrl": "https://example.com/avatar.jpg",
    "metadata": {
      "foo": "bar"
    }
  }
}

Changes