> ## 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 put /2025-06-09/users/{userLocator}/linked-wallets/{address}
openapi: 3.0.0
info:
  title: Crossmint Users API
  description: Crossmint Users API
  version: 1.0.0
  contact:
    name: Crossmint Support
    url: https://www.crossmint.com
    email: support@crossmint.com
servers:
  - url: https://staging.crossmint.com/api
    description: Staging environment (testnets)
  - url: https://www.crossmint.com/api
    description: Production environment (mainnets)
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: LinkedWalletsController-linkWallet-2
      parameters:
        - name: X-API-KEY
          in: header
          description: API key required for authentication
          required: true
          schema:
            type: string
        - name: userLocator
          required: true
          in: path
          description: |-
            A user locator can be of the format:
            - `email:<email>`
            - `userId:<userId>`
            - `phoneNumber:<phoneNumber>`
            - `twitter:<handle>`
            - `x:<handle>`
          schema:
            type: string
          example: email:user@example.com
        - name: address
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkWalletBodyDto'
      responses:
        '200':
          description: Wallet linked to user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedWalletResponseDto'
components:
  schemas:
    LinkWalletBodyDto:
      type: object
      properties:
        chain:
          type: string
          enum:
            - solana
            - sui
            - aptos
            - xion
            - stellar
            - arbitrum-sepolia
            - arc-testnet
            - avalanche-fuji
            - curtis
            - base-goerli
            - base-sepolia
            - bsc-testnet
            - chiliz-spicy-testnet
            - coti-testnet
            - ethereum-goerli
            - ethereum-sepolia
            - hedera-testnet
            - hypersonic-testnet
            - lightlink-pegasus
            - mantle-sepolia
            - optimism-goerli
            - optimism-sepolia
            - polygon-amoy
            - polygon-mumbai
            - crossmint-private-testnet-ethereum
            - crossmint-private-testnet-polygon
            - rari-testnet
            - scroll-sepolia
            - sei-atlantic-2-testnet
            - shape-sepolia
            - skale-nebula-testnet
            - soneium-minato-testnet
            - space-testnet
            - story-testnet
            - verify-testnet
            - viction-testnet
            - xai-sepolia-testnet
            - zkatana
            - zkyoto
            - zora-goerli
            - zora-sepolia
            - mode-sepolia
            - u2u-nebulas
            - zenchain-testnet
            - abstract-testnet
            - world-chain-sepolia
            - plume-testnet
            - flow-testnet
            - tempo-testnet
            - ethereum
            - polygon
            - bsc
            - optimism
            - arbitrum
            - base
            - zora
            - arbitrumnova
            - astar-zkevm
            - apechain
            - hedera
            - coti
            - lightlink
            - mantle
            - skale-nebula
            - sei-pacific-1
            - chiliz
            - avalanche
            - xai
            - shape
            - rari
            - scroll
            - viction
            - mode
            - space
            - soneium
            - story
            - u2u-solaris
            - abstract
            - world-chain
            - plume
            - flow
            - tempo
          description: The blockchain chain
          example: ethereum
        proof:
          description: A signed message proving ownership of the wallet
          type: string
          minLength: 1
      required:
        - chain
    LinkedWalletResponseDto:
      type: object
      properties:
        address:
          type: string
          description: The wallet address
          example: '0x1234567890abcdef1234567890abcdef12345678'
        chain:
          type: string
          enum:
            - solana
            - sui
            - aptos
            - xion
            - stellar
            - arbitrum-sepolia
            - arc-testnet
            - avalanche-fuji
            - curtis
            - base-goerli
            - base-sepolia
            - bsc-testnet
            - chiliz-spicy-testnet
            - coti-testnet
            - ethereum-goerli
            - ethereum-sepolia
            - hedera-testnet
            - hypersonic-testnet
            - lightlink-pegasus
            - mantle-sepolia
            - optimism-goerli
            - optimism-sepolia
            - polygon-amoy
            - polygon-mumbai
            - crossmint-private-testnet-ethereum
            - crossmint-private-testnet-polygon
            - rari-testnet
            - scroll-sepolia
            - sei-atlantic-2-testnet
            - shape-sepolia
            - skale-nebula-testnet
            - soneium-minato-testnet
            - space-testnet
            - story-testnet
            - verify-testnet
            - viction-testnet
            - xai-sepolia-testnet
            - zkatana
            - zkyoto
            - zora-goerli
            - zora-sepolia
            - mode-sepolia
            - u2u-nebulas
            - zenchain-testnet
            - abstract-testnet
            - world-chain-sepolia
            - plume-testnet
            - flow-testnet
            - tempo-testnet
            - ethereum
            - polygon
            - bsc
            - optimism
            - arbitrum
            - base
            - zora
            - arbitrumnova
            - astar-zkevm
            - apechain
            - hedera
            - coti
            - lightlink
            - mantle
            - skale-nebula
            - sei-pacific-1
            - chiliz
            - avalanche
            - xai
            - shape
            - rari
            - scroll
            - viction
            - mode
            - space
            - soneium
            - story
            - u2u-solaris
            - abstract
            - world-chain
            - plume
            - flow
            - tempo
          description: The blockchain chain
          example: ethereum
        type:
          type: string
          enum:
            - external-wallet
          description: The type of linked wallet
          example: external-wallet
        ownership:
          oneOf:
            - type: object
              properties:
                verified:
                  type: boolean
                  description: Whether the wallet ownership has been verified
                  enum:
                    - false
                  example: false
                verificationChallenge:
                  type: string
                  description: >-
                    The challenge message that must be signed to verify
                    ownership
              required:
                - verified
                - verificationChallenge
              description: Ownership status for a wallet that has not yet been verified
            - type: object
              properties:
                verified:
                  type: boolean
                  description: Whether the wallet ownership has been verified
                  enum:
                    - true
                  example: true
              required:
                - verified
              description: Ownership status for a verified wallet
          description: Ownership verification status of the wallet
      required:
        - address
        - chain
        - type
        - ownership

````