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

# Create a Blockchain Deposit Address

> Creates a Blockchain Deposit Address.



## OpenAPI

````yaml openapi.json POST /beta/blockchain_deposit_addresses
openapi: 3.0.1
info:
  title: Lead Bank
  description: Lead Bank's APIs
  version: v1.0
servers:
  - url: https://api.sandbox.lead.bank
  - url: https://api.lead.bank
security:
  - bearerAuth: []
tags:
  - name: ACH
  - name: ACHv2
  - name: Account Number
  - name: OAuth
  - name: Events
  - name: Instant Payments
  - name: Lending
  - name: Simulation
  - name: Sandbox
  - name: Internal Transfer
  - name: Disbursement
  - name: Entity
  - name: Wire
  - name: Originator
  - name: Funding
  - name: Receivable Sale
  - name: Balances
  - name: Compliance
  - name: Application
  - name: User Account
  - name: Blockchain Payment
  - name: Core Account
  - name: Core Balance
  - name: Core Transaction
  - name: Event Subscription
  - name: Receivable
  - name: User Credit Transaction
  - name: Files
paths:
  /beta/blockchain_deposit_addresses:
    post:
      tags:
        - Blockchain Deposit Address Beta
      summary: Create a Blockchain Deposit Address Beta
      description: Creates a Blockchain Deposit Address.
      operationId: create-a-blockchain-deposit-address-beta
      parameters:
        - name: Idempotency-Key
          in: header
          description: Idempotency key
          required: true
          schema:
            $ref: '#/components/schemas/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBlockchainDepositAddressRequestBeta'
      responses:
        '200':
          description: The created Blockchain Deposit Address object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockchainDepositAddressBeta'
        '400':
          description: >-
            The request body is malformed, or `account_identifier` does not name
            an active account in your program.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Missing or invalid authentication token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '403':
          description: Idempotency key has already been used with a different request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '404':
          description: Your program is not configured to receive deposits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '409':
          description: A request with this idempotency key is already in progress.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '422':
          description: Your request parameters did not validate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '429':
          description: Too many requests. Please retry after some time.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '502':
          description: >-
            Address assignment is temporarily unavailable. Retry with a new
            idempotency key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '503':
          description: Address assignment timed out. Retry with a new idempotency key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
components:
  schemas:
    IdempotencyKey:
      type: string
      description: >-
        A unique key for this request, up to 255 characters. Retrying with the
        same key and body returns the original response instead of performing
        the operation again.
      minLength: 1
      maxLength: 255
      example: 3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14
    CreateBlockchainDepositAddressRequestBeta:
      type: object
      title: CreateBlockchainDepositAddressRequestBeta
      required:
        - account_identifier
        - chain
        - is_debtor_self
      properties:
        account_identifier:
          description: The account that arriving funds are credited to.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierBeta'
        chain:
          $ref: '#/components/schemas/BlockchainDepositAddressChainBeta'
        token:
          allOf:
            - $ref: '#/components/schemas/BlockchainDepositAddressTokenBeta'
          default: USDC
        is_debtor_self:
          type: boolean
          description: Whether the sending wallets belong to the account holder.
          example: true
    BlockchainDepositAddressBeta:
      type: object
      description: An on-chain address that receives stablecoins.
      required:
        - account_identifier
      properties:
        id:
          $ref: '#/components/schemas/BlockchainDepositAddressID'
        status:
          $ref: '#/components/schemas/BlockchainDepositAddressStatusBeta'
        account_identifier:
          description: The account that arriving funds are credited to.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierBeta'
        chain:
          $ref: '#/components/schemas/BlockchainDepositAddressChainBeta'
        token:
          $ref: '#/components/schemas/BlockchainDepositAddressTokenBeta'
        wallet_address:
          type: string
          description: The on-chain address to send funds to.
          example: '0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c'
        is_debtor_self:
          type: boolean
          description: Whether the sending wallets belong to the account holder.
          example: true
        created_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 format timestamp representing when the blockchain deposit
            address was created.
          example: '2024-06-27T11:22:33Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 format timestamp representing when the blockchain deposit
            address was last updated.
          example: '2024-06-27T11:22:33Z'
    APIError:
      type: object
      properties:
        code:
          type: string
          description: The error code.
        title:
          type: string
          description: The error title.
        detail:
          type: string
          description: A detailed error description.
        status:
          type: string
          description: The HTTP status code.
        invalid_parameters:
          type: array
          description: Invalid request parameters with reasons, if applicable.
          items:
            $ref: '#/components/schemas/InvalidParameterDetail'
        instance:
          type: string
          description: >-
            The object causing this specific occurrence of the error, if
            applicable.
    BlockchainPaymentAccountIdentifierBeta:
      type: object
      description: Identifies an account.
      required:
        - type
        - value
      properties:
        type:
          $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierTypeBeta'
        value:
          type: string
          description: The account identifier value.
          example: account_number_xyz123
    BlockchainDepositAddressChainBeta:
      description: The blockchain network.
      type: string
      example: base
      enum:
        - base
        - ethereum
        - solana
        - arbitrum
        - optimism
    BlockchainDepositAddressTokenBeta:
      description: >-
        The token the address receives. OUSD is available on base, ethereum and
        solana for programs whose wallet holds OUSD.
      type: string
      example: USDC
      enum:
        - USDC
        - OUSD
    BlockchainDepositAddressID:
      type: string
      description: The ID of the Blockchain Deposit Address object.
      example: blockchain_deposit_address_2GvQ9cTn4HsWq7JkLp1RzYe8Bx3
      pattern: ^blockchain_deposit_address_[0-9A-Za-z]{27}$
    BlockchainDepositAddressStatusBeta:
      description: The status of the Blockchain Deposit Address.
      type: string
      example: active
      enum:
        - active
        - closed
    InvalidParameterDetail:
      type: object
      properties:
        parameter:
          type: string
          description: Which parameter is invalid.
          example: transaction_type
        reason:
          type: string
          description: Why the parameter is invalid.
    BlockchainPaymentAccountIdentifierTypeBeta:
      description: The type of account identifier.
      type: string
      example: account_number_id
      enum:
        - account_number_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````