Skip to main content
Use these endpoints to monitor how your API keys are being used. REST base URL: https://api.solami.fast

Get usage summary

Returns aggregate request counts and a per-method breakdown for your account.
GET /v1/usage

Query parameters

from
number
Start of the time range as a Unix timestamp (seconds). Defaults to 24 hours ago.
to
number
End of the time range as a Unix timestamp (seconds). Defaults to now.
curl "https://api.solami.fast/v1/usage?from=1700000000&to=1700086400&api_key=YOUR_API_KEY"

Response

{
  "request_count": 16126,
  "methods": [
    {
      "method": "getBalance",
      "count": 15234,
      "errors": 12
    },
    {
      "method": "sendTransaction",
      "count": 892,
      "errors": 3
    }
  ],
  "from": 1700000000,
  "to": 1700086400
}
request_count
number
Total number of requests made during the time range.
methods
array
Breakdown of requests by RPC method.
methods[].method
string
The JSON-RPC method name.
methods[].count
number
Total requests for this method during the time range.
methods[].errors
number
Number of requests for this method that returned an error.
from
number
The start of the queried time range (Unix seconds).
to
number
The end of the queried time range (Unix seconds).

Get usage by key

Returns request counts and a per-method breakdown for a specific API key.
GET /v1/usage/{keyId}
keyId
string
required
The key ID to retrieve usage for. Find key IDs via the List API keys endpoint.
from
number
Start of the time range as a Unix timestamp (seconds). Defaults to 24 hours ago.
to
number
End of the time range as a Unix timestamp (seconds). Defaults to now.
curl "https://api.solami.fast/v1/usage/key_abc123?from=1700000000&to=1700086400&api_key=YOUR_API_KEY"

Response

{
  "key_id": "key_abc123",
  "request_count": 4201,
  "methods": [
    {
      "method": "getAccountInfo",
      "count": 3100,
      "errors": 2
    },
    {
      "method": "sendTransaction",
      "count": 1101,
      "errors": 0
    }
  ],
  "from": 1700000000,
  "to": 1700086400
}
key_id
string
The API key ID the stats are scoped to.
request_count
number
Total requests made with this key during the time range.
methods
array
Per-method breakdown for this key. Same structure as the summary endpoint.
from
number
Start of the queried time range (Unix seconds).
to
number
End of the queried time range (Unix seconds).
You can also view usage visually in the Dashboard.