Check Credits
The Check Credits endpoint is useful for checking how many credits are left for a specific pubkey. To ensure privacy, credit information is going to be provided only after authentication has been fulfilled.
Check Credits with Nostr
- Connect to our relay
wss://relay.vertexlab.io - Perform a successful NIP-42 Authentication with one or more pubkeys.
- Fetch
kind 22243to get the credit info associated to all authed pubkeys.
["REQ", "<sub_id>", { "kinds": [22243] } ]Check Credits with the API
- Send a
GETrequest tohttps://relay.vertexlab.io/api/v1/creditswith NIP-98 Authentication Header for exactly one pubkey. - Read the event from the response’s body.
Response
In both cases, the response will be a Nostr event.
{
"kind": 22243,
"tags": [
["credits", "9847"],
["lastRequest", "1746466043"]
],
// ...
}