> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Link External Wallet to User

> Link an external wallet address to a user. Optionally provide a proof to verify ownership.

**API scope required**: `users.create`



## OpenAPI

````yaml api-reference/_open-api/Users.json PUT /2025-06-09/users/{userLocator}/linked-wallets/{address}
openapi: 3.1.0
info:
  contact:
    email: support@crossmint.com
    name: Crossmint Support
    url: https://www.crossmint.com
  description: Crossmint Users API
  title: Crossmint Users API
  version: 1.0.0
servers:
  - description: Staging environment (testnets)
    url: https://staging.crossmint.com/api
  - description: Production environment (mainnets)
    url: https://www.crossmint.com/api
security: []
tags: []
paths:
  /2025-06-09/users/{userLocator}/linked-wallets/{address}:
    put:
      tags:
        - Users - Linked Wallets
      summary: Link External Wallet to User
      description: >-
        Link an external wallet address to a user. Optionally provide a proof to
        verify ownership.


        **API scope required**: `users.create`
      operationId: users.linkedWallets.link
      parameters:
        - description: |-
            A user locator can be of the format:
            - `email:<email>`
            - `userId:<userId>`
            - `phoneNumber:<phoneNumber>`
            - `twitter:<handle>`
            - `x:<handle>`
          in: path
          name: userLocator
          required: true
          schema:
            examples:
              - email:user@example.com
              - userId:507f1f77bcf86cd799439011
              - userId:did:example:cm4lr5piw0h6t1bjho0onryql
              - phoneNumber:+12125551234
              - twitter:johndoe
              - x:@johndoe
            type: string
        - in: path
          name: address
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            examples:
              EVM:
                description: >-
                  Link an EVM wallet on Base. The response has a
                  `verificationChallenge`. To verify ownership, sign it with the
                  wallet and send the request again with the signature as
                  `proof`.
                summary: EVM
                value:
                  chain: base
              Solana:
                description: >-
                  Link a Solana wallet. The response has a
                  `verificationChallenge`. To verify ownership, sign it with the
                  wallet and send the request again with the signature as
                  `proof`.
                summary: Solana
                value:
                  chain: solana
            schema:
              $ref: '#/components/schemas/LinkWalletBodyDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedWalletResponseDto'
          description: Wallet linked to user
      security:
        - apiKey: []
components:
  schemas:
    LinkWalletBodyDto:
      properties:
        chain:
          description: The blockchain of the wallet
          enum:
            - abstract
            - abstract-testnet
            - apechain
            - aptos
            - arbitrum
            - arbitrum-sepolia
            - arbitrumnova
            - arc
            - arc-testnet
            - astar-zkevm
            - avalanche
            - avalanche-fuji
            - base
            - base-goerli
            - base-sepolia
            - bsc
            - bsc-testnet
            - celo
            - celo-sepolia
            - chiliz
            - chiliz-spicy-testnet
            - coti
            - coti-testnet
            - curtis
            - ethereum
            - ethereum-goerli
            - ethereum-sepolia
            - flow
            - flow-testnet
            - hedera
            - hedera-testnet
            - hypersonic-testnet
            - lightlink
            - lightlink-pegasus
            - mantle
            - mantle-sepolia
            - mode
            - mode-sepolia
            - optimism
            - optimism-goerli
            - optimism-sepolia
            - plume
            - plume-testnet
            - polygon
            - polygon-amoy
            - polygon-mumbai
            - rari
            - rari-testnet
            - robinhood-chain
            - robinhood-chain-testnet
            - scroll
            - scroll-sepolia
            - sei-atlantic-2-testnet
            - sei-pacific-1
            - shape
            - shape-sepolia
            - skale-nebula
            - skale-nebula-testnet
            - solana
            - soneium
            - soneium-minato-testnet
            - space
            - space-testnet
            - stellar
            - story
            - story-testnet
            - sui
            - tempo
            - tempo-testnet
            - u2u-nebulas
            - u2u-solaris
            - verify-testnet
            - viction
            - viction-testnet
            - world-chain
            - world-chain-sepolia
            - xai
            - xai-sepolia-testnet
            - xion
            - zenchain-testnet
            - zkatana
            - zkyoto
            - zora
            - zora-goerli
            - zora-sepolia
          examples:
            - solana
          type: string
        proof:
          anyOf:
            - description: >-
                A Squads Smart Account vault's proof: its members sign the
                challenge.
              properties:
                accountIndex:
                  description: The index of the vault under the Settings account (a u8).
                  examples:
                    - 0
                  maximum: 255
                  minimum: 0
                  type: integer
                settings:
                  description: The base58 address of the smart account's Settings account.
                  examples:
                    - 41i3Jkdn93M6JxiVqzeL4J6MfJiLD9RyYYSF4oAsLEPZ
                  minLength: 1
                  type: string
                signatures:
                  description: >-
                    Signatures over the challenge, each a base58 member key and
                    a base64 ed25519 signature: one by a member holding the
                    Initiate, Vote and Execute permissions, or enough to reach
                    the smart account's threshold.
                  items:
                    properties:
                      signature:
                        minLength: 1
                        type: string
                      signer:
                        minLength: 1
                        type: string
                    required:
                      - signature
                      - signer
                    type: object
                  maxItems: 10
                  minItems: 1
                  type: array
                type:
                  const: solana-smart-account
                  type: string
              required:
                - accountIndex
                - settings
                - signatures
                - type
              type: object
            - minLength: 1
              type: string
          description: >-
            A signed message proving ownership of the wallet: a base64 signature
            by the wallet itself, or, for a Squads Smart Account vault on
            Solana, signatures by its members.
      required:
        - chain
      type: object
    LinkedWalletResponseDto:
      properties:
        address:
          description: The wallet address
          examples:
            - '0x1234567890abcdef1234567890abcdef12345678'
          type: string
        chain:
          description: The blockchain of the wallet
          enum:
            - abstract
            - abstract-testnet
            - apechain
            - aptos
            - arbitrum
            - arbitrum-sepolia
            - arbitrumnova
            - arc
            - arc-testnet
            - astar-zkevm
            - avalanche
            - avalanche-fuji
            - base
            - base-goerli
            - base-sepolia
            - bsc
            - bsc-testnet
            - celo
            - celo-sepolia
            - chiliz
            - chiliz-spicy-testnet
            - coti
            - coti-testnet
            - curtis
            - ethereum
            - ethereum-goerli
            - ethereum-sepolia
            - flow
            - flow-testnet
            - hedera
            - hedera-testnet
            - hypersonic-testnet
            - lightlink
            - lightlink-pegasus
            - mantle
            - mantle-sepolia
            - mode
            - mode-sepolia
            - optimism
            - optimism-goerli
            - optimism-sepolia
            - plume
            - plume-testnet
            - polygon
            - polygon-amoy
            - polygon-mumbai
            - rari
            - rari-testnet
            - robinhood-chain
            - robinhood-chain-testnet
            - scroll
            - scroll-sepolia
            - sei-atlantic-2-testnet
            - sei-pacific-1
            - shape
            - shape-sepolia
            - skale-nebula
            - skale-nebula-testnet
            - solana
            - soneium
            - soneium-minato-testnet
            - space
            - space-testnet
            - stellar
            - story
            - story-testnet
            - sui
            - tempo
            - tempo-testnet
            - u2u-nebulas
            - u2u-solaris
            - verify-testnet
            - viction
            - viction-testnet
            - world-chain
            - world-chain-sepolia
            - xai
            - xai-sepolia-testnet
            - xion
            - zenchain-testnet
            - zkatana
            - zkyoto
            - zora
            - zora-goerli
            - zora-sepolia
          examples:
            - ethereum
          type: string
        ownership:
          description: Ownership verification status of the wallet
          oneOf:
            - description: Ownership status for a verified wallet
              properties:
                verified:
                  const: true
                  description: Whether the wallet ownership has been verified
                  examples:
                    - true
                  type: boolean
              required:
                - verified
              type: object
            - description: Ownership status for a wallet that has not yet been verified
              properties:
                verificationChallenge:
                  description: >-
                    The challenge message that must be signed to verify
                    ownership
                  type: string
                verified:
                  const: false
                  description: Whether the wallet ownership has been verified
                  examples:
                    - false
                  type: boolean
              required:
                - verificationChallenge
                - verified
              type: object
        type:
          description: The type of linked wallet
          enum:
            - external-wallet
          examples:
            - external-wallet
          type: string
      required:
        - address
        - chain
        - ownership
        - type
      type: object
  securitySchemes:
    apiKey:
      description: API key required for authentication
      in: header
      name: X-API-KEY
      type: apiKey

````