Apps

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.

get/v1/apps/gas_spend

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/apps/gas_spend
  • Auth
    HTTP basic

Query parameters

wallet_idsstring[] required
start_timestampnumber required
end_timestampnumber required

Headers

privy-app-idstring required

ID of your Privy app.

Response

Aggregated gas credits charged.

valuestring required

Total Privy credits charged as a decimal string.

currency'usd' required

Currency represented by the value.

Example response

{
  "value": "12.345678",
  "currency": "usd"
}

Changes

No recorded changes to this operation across all 60 revisions of this API.