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.
Your paymaster API key for authentication
Query Parameters
Start date for activity query (ISO 8601 date-time). Default: 7 days ago
End date for activity query (ISO 8601 date-time). Default: now
Response
Total number of executed transactions
Number of successful transactions
Number of reverted transactions
Total ETH paid for all transactions
ETH paid for successful transactions
ETH paid for reverted transactions
Total STRK paid for all transactions
STRK paid for successful transactions
STRK paid for reverted transactions
Remaining ETH credits (contact support to recharge when zero)
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