> ## 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 gas spend

> Get aggregated Privy gas credits charged for a set of wallets over a time range. Maximum 100 wallet IDs and 30-day range per request.

Learn more about querying gas spend [here](/wallets/gas-and-asset-management/gas/gas-spend).


## OpenAPI

````yaml get /v1/apps/gas_spend
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: Aggregations
    description: Operations related to aggregations for tracking and measuring metrics
  - name: Apps
    description: Operations related to app settings and allowlist management
  - 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 organization secret management
  - 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: 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: 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/apps/gas_spend:
    get:
      tags:
        - Apps
      summary: Get gas spend
      description: >-
        Get aggregated Privy gas credits charged for a set of wallets over a
        time range. Maximum 100 wallet IDs and 30-day range per request.
      operationId: getGasSpend
      parameters:
        - schema:
            type: array
            items:
              type: string
            minItems: 1
            maxItems: 100
          required: true
          name: wallet_ids
          in: query
        - schema:
            type: number
          required: true
          name: start_timestamp
          in: query
        - schema:
            type: number
          required: true
          name: end_timestamp
          in: query
        - schema:
            type: string
            description: ID of your Privy app.
          required: true
          name: privy-app-id
          in: header
      responses:
        '200':
          description: Aggregated gas credits charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GasSpendResponseBody'
              example:
                value: '12.345678'
                currency: usd
      security:
        - appSecretAuth: []
components:
  schemas:
    GasSpendResponseBody:
      type: object
      properties:
        value:
          type: string
          description: Total Privy credits charged as a decimal string.
        currency:
          allOf:
            - $ref: '#/components/schemas/GasSpendCurrency'
            - description: Currency represented by the value.
      required:
        - value
        - currency
      additionalProperties: false
      description: >-
        Aggregated Privy gas credits charged for a set of wallets over a time
        range.
      title: GasSpendResponseBody
      example:
        value: '12.345678'
        currency: usd
      x-stainless-model: apps.gas_spend_response_body
    GasSpendCurrency:
      type: string
      enum:
        - usd
      description: Currency for gas spend values.
      title: GasSpendCurrency
      x-stainless-model: apps.gas_spend_currency
  securitySchemes:
    appSecretAuth:
      type: http
      scheme: basic
      description: >-
        Basic Auth header with your app ID as the username and your app secret
        as the password.

````