Skip to main content
POST
https://api.0xkey.io
/
public
/
v1
/
query
/
get_gas_usage
Get gas usage and limits.
curl --request POST \
  --url https://api.0xkey.io/public/v1/query/get_gas_usage \
  --header 'Content-Type: application/json' \
  --header 'X-Stamp: <api-key>' \
  --data '
{
  "organizationId": "<string>"
}
'
{
  "windowDurationMinutes": 123,
  "windowLimitUsd": "<string>",
  "usageUsd": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization.

Response

A successful response.

windowDurationMinutes
integer<int32>
required

The window duration (in minutes) for the organization or sub-organization.

windowLimitUsd
string
required

The window limit (in USD) for the organization or sub-organization.

usageUsd
string
required

The total gas usage (in USD) of all sponsored transactions processed over the last window_duration_minutes