Skip to main content
GET
https://starknet.api.avnu.fi
/
paymaster
/
v1
/
sponsor-activity
curl "https://starknet.api.avnu.fi/paymaster/v1/sponsor-activity?startDate=2024-11-01T00:00:00Z&endDate=2024-12-01T00:00:00Z"
{
    "name": "my app",
    "succeededTxCount": 8297,
    "revertedTxCount": 0,
    "txCount": 8297,
    "succeededGasFees": "0x0",
    "revertedGasFees": "0x0",
    "gasFees": "0x0",
    "succeededStrkGasFees": "0x9b4bc7d495ab90fe0",
    "revertedStrkGasFees": "0x0",
    "strkGasFees": "0x9b4bc7d495ab90fe0",
    "remainingCredits": "0x0",
    "remainingStrkCredits": "0x8de42a4ed5ea442ee"
}

Overview

Returns detailed usage metrics for your API key’s sponsored transactions including transaction counts, gas fees consumed in ETH and STRK, and remaining credits.
This endpoint requires an API key and returns data for that specific key only.

Headers

api-key
string
required
Your paymaster API key for authentication

Query Parameters

startDate
string
Start date for activity query (ISO 8601 date-time). Default: 7 days ago
endDate
string
End date for activity query (ISO 8601 date-time). Default: now

Response

name
string
The sponsor’s name
txCount
integer
Total number of executed transactions
succeededTxCount
integer
Number of successful transactions
revertedTxCount
integer
Number of reverted transactions
gasFees
string
Total ETH paid for all transactions
succeededGasFees
string
ETH paid for successful transactions
revertedGasFees
string
ETH paid for reverted transactions
strkGasFees
string
Total STRK paid for all transactions
succeededStrkGasFees
string
STRK paid for successful transactions
revertedStrkGasFees
string
STRK paid for reverted transactions
remainingCredits
string
Remaining ETH credits (contact support to recharge when zero)
remainingStrkCredits
string
Remaining STRK credits (contact support to recharge when zero)
curl "https://starknet.api.avnu.fi/paymaster/v1/sponsor-activity?startDate=2024-11-01T00:00:00Z&endDate=2024-12-01T00:00:00Z"
{
    "name": "my app",
    "succeededTxCount": 8297,
    "revertedTxCount": 0,
    "txCount": 8297,
    "succeededGasFees": "0x0",
    "revertedGasFees": "0x0",
    "gasFees": "0x0",
    "succeededStrkGasFees": "0x9b4bc7d495ab90fe0",
    "revertedStrkGasFees": "0x0",
    "strkGasFees": "0x9b4bc7d495ab90fe0",
    "remainingCredits": "0x0",
    "remainingStrkCredits": "0x8de42a4ed5ea442ee"
}

Need More Credits?

Contact Support

Reach out to recharge your sponsorship credits