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

# Get next crypto deposit account order

> Fetch the earliest crypto deposit-account sweep into the path wallet after a timestamp.



## OpenAPI

````yaml get /v1/wallets/{wallet_id}/deposit_accounts/crypto/next_order
openapi: 3.1.0
info:
  version: 0.0.1
  title: Privy API
  description: >-
    REST API for Privy's wallet infrastructure — provision and manage wallets
    across EVM, Solana, and Bitcoin, authenticate users, sign transactions, and
    configure programmable policies and authorization intents.
  contact:
    name: Privy
    url: https://www.privy.io/
    email: support@privy.io
servers:
  - url: https://api.privy.io
security: []
tags:
  - name: Accounts
    description: Operations related to asset accounts
  - name: Actions
    description: Operations related to looking up wallet actions across an app
  - name: Aggregations
    description: Operations related to aggregations for tracking and measuring metrics
  - name: Apps
    description: Operations related to app settings and allowlist management
  - name: Cards
    description: Operations related to stablecoin-backed card issuing
  - name: Client Auth
    description: OAuth token exchange and device authorization operations
  - name: Condition Sets
    description: Operations related to condition sets
  - name: Embedded wallets
    description: Operations related to embedded wallet creation and authentication
  - name: Fiat
    description: Operations related to fiat onramping and offramping
  - name: Intents
    description: Operations related to authorization intents for wallet actions
  - name: Key quorums
    description: Operations related to key quorums
  - name: Kraken Embed
    description: >-
      Operations for Kraken Embed integration, including quotes, trades, user
      management, and portfolio operations
  - name: OAuth
    description: >-
      OAuth 2.0 endpoints including Device Authorization Grant (RFC 8628) for
      CLI and limited-input device login flows
  - name: Organizations
    description: Operations related to organizations
  - name: Policies
    description: Operations related to policies
  - name: Shared
    description: Common schemas shared across resources
  - name: Swaps
    description: Operations for swapping tokens within wallets
  - name: Teams
    description: Operations related to dashboard team management
  - name: Transactions
    description: Operations related to transactions
  - name: User signers
    description: Operations related to user signers
  - name: Users
    description: Operations related to users
  - name: Wallet Actions
    description: Operations related to wallet actions
  - name: Wallet Automations
    description: Operations related to wallet automations
  - name: Wallets
    description: Operations related to wallets
  - name: Webhooks
    description: >-
      Webhook events that Privy sends to your configured endpoint when specific
      actions occur in your app
  - name: Yield
    description: >-
      Operations for depositing and withdrawing funds from ERC-4626 yield vaults
      (Morpho, Aave)
paths:
  /v1/wallets/{wallet_id}/deposit_accounts/crypto/next_order:
    get:
      tags:
        - Wallets
      summary: Get next crypto deposit account order
      description: >-
        Fetch the earliest crypto deposit-account sweep into the path wallet
        after `after`. Returns `{order: {id, status} | null}` — the same order
        object as GET order. The path wallet is the destination (same as
        create). Accepts an app secret or a user / wallet-signer JWT
        (`privy-app-id`).
      operationId: getCryptoDepositAccountNextOrder
      parameters:
        - schema:
            type: string
            description: ID of the wallet.
          required: true
          name: wallet_id
          in: path
        - schema:
            type: string
            format: date-time
            description: Return the earliest sweep strictly after this timestamp.
          required: true
          description: Return the earliest sweep strictly after this timestamp.
          name: after
          in: query
        - schema:
            type: string
            description: ID of your Privy app.
          required: true
          name: privy-app-id
          in: header
      responses:
        '200':
          description: >-
            The next sweep, with the same `{id, status}` object as GET order, or
            null if none after `after`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCryptoDepositAccountNextOrderResponse'
              example:
                order:
                  id: f7e8d9c0-b1a2-4344-8566-778899aabbcc
                  status: pending
      security:
        - appSecretAuth: []
components:
  schemas:
    GetCryptoDepositAccountNextOrderResponse:
      type: object
      properties:
        order:
          anyOf:
            - $ref: '#/components/schemas/GetCryptoDepositAccountOrderResponse'
            - type: 'null'
      required:
        - order
      additionalProperties: false
      description: >-
        The next crypto deposit-account sweep into the path wallet after
        `after`, or null if none. The order object matches GET order.
      title: GetCryptoDepositAccountNextOrderResponse
      x-stainless-model: wallets.get_crypto_deposit_account_next_order_response
    GetCryptoDepositAccountOrderResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Wallet action ID of the deposit sweep.
        status:
          $ref: '#/components/schemas/WalletActionStatus'
      required:
        - id
        - status
      additionalProperties: false
      description: >-
        A crypto deposit-account sweep identified by its wallet action ID.
        Status is the wallet-action status.
      title: GetCryptoDepositAccountOrderResponse
      x-stainless-model: wallets.get_crypto_deposit_account_order_response
    WalletActionStatus:
      type: string
      enum:
        - pending
        - succeeded
        - rejected
        - failed
      description: Status of a wallet action.
      title: WalletActionStatus
      x-stainless-model: wallets.actions.wallet_action_status
  securitySchemes:
    appSecretAuth:
      type: http
      scheme: basic
      description: >-
        Basic Auth header with your app ID as the username and your app secret
        as the password.

````