GET /v1/apps/gas_spend endpoint.
This is useful for tracking gas credit consumption per wallet, reconciling costs, and building internal usage dashboards.
Request
Send aGET request to https://api.privy.io/v1/apps/gas_spend with the following query parameters:
Array of wallet IDs to query. Must contain between 1 and 100 IDs.
Start of the time range in milliseconds (inclusive).
End of the time range in milliseconds (exclusive). The range between
start_timestamp and
end_timestamp must not exceed 30 days.Response
Total Privy gas credits charged in USD, as a decimal string (e.g.
"12.345678").The currency of the value. Always
"usd".Example
Response
Errors
| Status | Description |
|---|---|
| 400 | Missing or invalid query parameters, or the date range exceeds 30 days |
| 401 | Missing or invalid app secret |
| 404 | One or more wallet IDs do not belong to the app |

