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

# Generate a deposit address for a reference on a chain

> Returns the deposit address for the given network and reference. Repeating the same Idempotency-Key with the same body returns the same result; repeating it with a different body returns 409 idempotency_conflict. A new Idempotency-Key with the same network and reference returns the same address.




## OpenAPI

````yaml /openapi.yaml post /v1/crypto/addresses
openapi: 3.1.0
info:
  title: Taramiz Crypto API (live gateway)
  version: 0.1.0
  description: >
    Generate crypto deposit addresses. Draft: describes the endpoint built so
    far. Must be kept in step with the gateway by hand until it is generated.
servers:
  - url: http://127.0.0.1:44010
    description: Local development (task dev)
security:
  - bearerAuth: []
paths:
  /v1/crypto/addresses:
    post:
      summary: Generate a deposit address for a reference on a chain
      description: >
        Returns the deposit address for the given network and reference.
        Repeating the same Idempotency-Key with the same body returns the same
        result; repeating it with a different body returns 409
        idempotency_conflict. A new Idempotency-Key with the same network and
        reference returns the same address.
      operationId: createAddress
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          description: >-
            Unique per request, 1 to 128 printable ASCII characters. Safe to
            retry with the same value.
          schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[\x21-\x7E]{1,128}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAddressRequest'
            example:
              network: base-sepolia
              reference: wallet-1
      responses:
        '200':
          description: The deposit address (new, or replayed for a repeated request).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Address'
              example:
                network: base-sepolia
                chain: eip155:84532
                address: '0x260b9Af79220e1b08FcF51c01BD7Fe3db3003924'
                reference: wallet-1
        '400':
          description: >-
            Invalid request (bad body, bad chain, unsupported chain, or missing
            Idempotency-Key).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_request
                  message: >-
                    network: not a supported network name or CAIP-2 chain ID.
                    Supported names: ethereum-sepolia, base-sepolia, ...
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid API key.
        '403':
          description: >
            product_not_enabled: the crypto product is not enabled for this
            account. insufficient_scope: this API key is not allowed to create
            addresses.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >
            idempotency_conflict: the Idempotency-Key was used with a different
            body. request_in_progress: the same request is still running; retry
            shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request body larger than 10 KB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected error on our side.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            The crypto service is temporarily unavailable. Retry with the same
            Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateAddressRequest:
      type: object
      additionalProperties: false
      required:
        - network
        - reference
      properties:
        network:
          type: string
          description: >
            The blockchain network. Use a name such as base-sepolia, or the
            CAIP-2 chain ID (for example eip155:84532). Names today:
            ethereum-sepolia, base-sepolia, arbitrum-sepolia, polygon-amoy,
            avalanche-fuji, bnb-testnet, anvil-local (local development only).
          maxLength: 64
        reference:
          type: string
          description: >
            Your identifier for the wallet or customer the address belongs to. 1
            to 91 bytes. It is private to your account: another account using
            the same value gets a different address.
          minLength: 1
          maxLength: 91
    Address:
      type: object
      required:
        - network
        - chain
        - address
        - reference
      properties:
        network:
          type: string
          description: >-
            The network name. If the network has no friendly name yet, the
            CAIP-2 chain ID is returned.
        chain:
          type: string
          description: The CAIP-2 chain ID of the network, e.g. eip155:84532.
        address:
          type: string
          description: Deposit address (EIP-55 checksummed for EVM chains).
        reference:
          type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable machine-readable code.
              enum:
                - invalid_request
                - unauthorized
                - product_not_enabled
                - insufficient_scope
                - idempotency_conflict
                - request_in_progress
                - payload_too_large
                - not_found
                - service_unavailable
                - internal_error
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.