Claim Stipend
Path Parameters
The user identifier claiming the stipend
Response
Returns200 OK with no body on success. The stipend amount is minted directly to the user’s balance.
Example Request
Successful Claim
On success, the user receives 10 units (10,000,000 micro) added to their balance.Error Responses
Error message if the stipend claim fails
Stipend Not Available Yet
If the user attempts to claim before the 12-hour cooldown expires: Status Code:400 Bad Request
Next stipend not available yet
The cooldown period is 12 hours (43,200,000 milliseconds) from the last stipend claim.
Invalid User ID
If the user ID format is invalid: Status Code:400 Bad Request
Validation Errors
Since stipends are implemented as mints, they must pass mint validation: Status Code:400 Bad Request
Though unlikely in normal operation, validation ensures:
- The stipend has an amount (always 10 units)
- The recipient is specified
- The note is set (always “Stipend”)
Get Current Stipend
Response
Returns the stipend amount as a plain textuint64 integer representing micro-units.
The current stipend amount in micro-units
Example Request
Example Response
Stipend Mechanics
Amount
The current stipend is fixed at 10 units (10,000,000 micro-units).Cooldown
Users can claim a stipend once every 12 hours (43,200,000 milliseconds). The cooldown timer starts from the timestamp of the last successful stipend claim.First Claim
Users who have never claimed a stipend before can claim immediately, as their previous stipend timestamp is 0.Implementation
Stipends are implemented as Mint transactions with:- To: The claiming user
- Amount: 10 units (10,000,000 micro)
- Note: “Stipend”
- Time: Current Unix timestamp in milliseconds
Checking Eligibility
To determine if a user can claim a stipend:- Get the user’s last stipend timestamp from their transaction history
- Add 43,200,000 milliseconds (12 hours)
- Compare to the current time
- If current time is greater, the user can claim