Skip to main content
GET
/
v1
/
apps
/
gas_spend
Get gas spend
curl --request GET \
  --url https://api.privy.io/v1/apps/gas_spend \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'privy-app-id: <privy-app-id>'
{
  "value": "12.345678",
  "currency": "usd"
}
Learn more about querying gas spend here.

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Headers

privy-app-id
string
required

ID of your Privy app.

Query Parameters

wallet_ids
string[]
required
Required array length: 1 - 100 elements
start_timestamp
number
required
end_timestamp
number
required

Response

200 - application/json

Aggregated gas credits charged.

Aggregated Privy gas credits charged for a set of wallets over a time range.

value
string
required

Total Privy credits charged as a decimal string.

currency
enum<string>
required

Currency represented by the value.

Available options:
usd