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

# Create wallets

> Provision HIFI custodial wallets for a user across one or more chains.
A user may hold at most one wallet per chain; requesting a chain the user
already has a wallet on returns a conflict error.




## OpenAPI

````yaml https://production.hifi.com/api/v3/openapi.json post /v3/users/{userId}/wallets
openapi: 3.0.0
info:
  title: Hifi API
  version: 3.0.0
  description: API documentation for HIFI
servers:
  - url: https://production.hifi.com
    description: Production server
  - url: https://sandbox.hifi.com
    description: Sandbox server
security:
  - bearerAuth: []
tags:
  - name: Common
    description: Common endpoints
  - name: User
    description: User endpoints
  - name: Counter Party
    description: Counter party endpoints
  - name: Crypto Transfer
    description: Crypto transfer and batch transfer endpoints
  - name: Wallet
    description: Wallet and wallet offer endpoints
  - name: External Account
    description: External bank account endpoints (under a counter party)
  - name: External Wallet
    description: External wallet endpoints (under a counter party)
  - name: External Card
    description: External card endpoints (under a counter party)
  - name: Token Swap
    description: Token swap endpoints
  - name: Bridge
    description: Bridge endpoints
  - name: Virtual Account
    description: Virtual account endpoints
  - name: Compliance
    description: Compliance and compliance link endpoints
  - name: Webhook Endpoint
    description: Webhook endpoint endpoints
  - name: File
    description: File upload endpoints
  - name: Onramp
    description: Onramp (fiat to crypto) endpoints
  - name: Offramp
    description: Offramp (crypto to fiat) endpoints
  - name: Orchestration Address
    description: Orchestration (liquidation) address endpoints
  - name: KYC Link
    description: Hosted and custom KYC/KYB link endpoints
  - name: Transfer Approval
    description: Transfer approval endpoints
  - name: Corridor
    description: Supported fiat/crypto transfer corridor endpoints
  - name: Migration
    description: v2-to-v3 ID mapping endpoints
paths:
  /v3/users/{userId}/wallets:
    post:
      tags:
        - Wallet
      summary: Create wallets
      description: >
        Provision HIFI custodial wallets for a user across one or more chains.

        A user may hold at most one wallet per chain; requesting a chain the
        user

        already has a wallet on returns a conflict error.
      operationId: v3CreateWallets
      parameters:
        - $ref: '#/components/parameters/UserIdPathParameter'
      requestBody:
        $ref: '#/components/requestBodies/CreateWalletsBody'
      responses:
        '200':
          $ref: '#/components/responses/CreateWalletsResponse'
        '400':
          $ref: '#/components/responses/BadRequestResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '409':
          $ref: '#/components/responses/ConflictResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  parameters:
    UserIdPathParameter:
      name: userId
      in: path
      schema:
        type: string
        pattern: ^user_[A-Za-z0-9]+$
      description: ID of the user.
      required: true
  requestBodies:
    CreateWalletsBody:
      required: true
      description: >-
        The chains to provision HIFI custodial wallets on. At least one chain is
        required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletCreateBody'
          examples:
            SingleChain:
              summary: Provision a single wallet
              value:
                chains:
                  - POLYGON
            MultipleChains:
              summary: Provision wallets on multiple chains
              value:
                chains:
                  - POLYGON
                  - SOLANA
                  - ETHEREUM
  responses:
    CreateWalletsResponse:
      description: Wallets provisioned successfully. Returns the newly created wallets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WalletListObject'
          example:
            data:
              - id: wlt_1aLcs3Kf9dQ2mNpXwZ7bV
                userId: usr_3Kf9dQ2mNpXwZ7bV1aLcs
                chain: POLYGON
                address: '0x1234567890abcdef1234567890abcdef12345678'
                createdAt: '2026-07-01T10:30:00.000Z'
                updatedAt: '2026-07-01T10:30:00.000Z'
              - id: wlt_7bV1aLcs3Kf9dQ2mNpXwZ
                userId: usr_3Kf9dQ2mNpXwZ7bV1aLcs
                chain: SOLANA
                address: 7EqQdEULxWcraVx3mXKFjc84LhCkMGZCkRuDpvcMwJeK
                createdAt: '2026-07-01T10:30:00.000Z'
                updatedAt: '2026-07-01T10:30:00.000Z'
            pagination:
              hasMore: false
              startCursor: wlt_1aLcs3Kf9dQ2mNpXwZ7bV
              endCursor: wlt_7bV1aLcs3Kf9dQ2mNpXwZ
    BadRequestResponse:
      description: Bad Request — the request was malformed or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            type: VALIDATION_ERROR
            message: One or more fields are invalid or missing.
            fields:
              - code: invalid_value
                message: Must be a valid email address
                field: email
    UnauthorizedResponse:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    ConflictResponse:
      description: >-
        Conflict — the request collides with the current state of the resource
        (e.g. idempotency-key reuse with a different payload).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            type: RESOURCE_CONFLICT
            message: Resource already exists or conflicts with current state
    InternalServerErrorResponse:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
  schemas:
    WalletCreateBody:
      type: object
      description: The chains to provision wallets on. At least one chain is required.
      required:
        - chains
      properties:
        chains:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - POLYGON
              - SOLANA
              - ETHEREUM
              - BASE
              - BSC
              - FLOW_EVM
              - CANTON
              - TRON
          example:
            - POLYGON
            - SOLANA
    WalletListObject:
      type: object
      description: Cursor-paginated list of wallets.
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WalletObject'
        pagination:
          $ref: '#/components/schemas/Pagination'
    ApiError:
      type: object
      description: >-
        Standard v3 error shape, returned by validation failures and
        business-logic errors alike.
      properties:
        type:
          type: string
          description: >-
            Machine-readable error type, e.g. VALIDATION_ERROR,
            ACTION_NOT_ALLOWED, RESOURCE_CONFLICT.
          example: VALIDATION_ERROR
        message:
          type: string
          description: Human-readable error message.
          example: One or more fields are invalid or missing.
        fields:
          type: array
          description: >-
            Present on field-level validation errors. One entry per problem
            field.
          items:
            type: object
            properties:
              code:
                type: string
                description: Error code related to the field issue.
              message:
                type: string
                description: Error message for the specific issue.
              field:
                type: string
                description: The name of the field that has an issue.
    Unauthorized:
      type: object
      properties:
        type:
          type: string
          description: Unauthorized enum
          example: UNAUTHORIZED
        message:
          type: string
          description: Unauthorized message
          example: Authentication required
    InternalServerError:
      type: object
      properties:
        type:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: Internal server error enum
        message:
          type: string
          example: An internal server error occurred
          description: Internal server error message
    WalletObject:
      type: object
      description: A HIFI-provisioned custodial wallet on a single chain.
      properties:
        id:
          type: string
          description: Public ID of the wallet (prefixed with `wlt_`).
          example: wlt_1aLcs3Kf9dQ2mNpXwZ7bV
        userId:
          type: string
          description: Public ID of the user this wallet belongs to (prefixed with `usr_`).
          example: usr_3Kf9dQ2mNpXwZ7bV1aLcs
        chain:
          type: string
          description: Blockchain the wallet is provisioned on.
          enum:
            - POLYGON
            - SOLANA
            - ETHEREUM
            - BASE
            - BSC
            - FLOW_EVM
            - CANTON
            - TRON
          example: POLYGON
        address:
          type: string
          description: On-chain wallet address.
          example: '0x1234567890abcdef1234567890abcdef12345678'
        createdAt:
          type: string
          format: date-time
          example: '2026-07-01T10:30:00.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-07-01T10:30:00.000Z'
    Pagination:
      type: object
      properties:
        hasMore:
          type: boolean
        startCursor:
          type: string
          nullable: true
        endCursor:
          type: string
          nullable: true
      required:
        - hasMore
        - startCursor
        - endCursor
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````