Skip to main content
GET
Get gas spend
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

List of wallet IDs to query gas spend for. Maximum 100.

Required array length: 1 - 100 elements
start_timestamp
number
required

Unix timestamp in milliseconds, inclusive. Must be less than or equal to end_timestamp, and the range from start_timestamp to end_timestamp must not exceed 30 days.

end_timestamp
number
required

Unix timestamp in milliseconds, exclusive. Must be greater than or equal to start_timestamp, and the range from start_timestamp to end_timestamp must not exceed 30 days.

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