newOS for Developers
Back to Payment Hub
Claim Watts
beginnerClaim engagement credits (WATTS) from activity and interactions.
Endpoint
POST /user/claimWattsClaims accumulated WATTS credits and adds them to user balance.
Request / Response
// Request
interface WattsClaimRequest {
claims: {
type: string; // Claim type identifier
amount?: number; // Optional specific amount
}[];
}
// Response
interface WattsClaimResponse {
claimed: number; // Amount of WATTS claimed
balance: number; // New total WATTS balance
}Implementation
import { claimWatts } from "newgraph-signals";
// Claim accumulated WATTS
const result = await claimWatts({
claims: [
{ type: "daily_login" },
{ type: "content_creation" }
]
});
console.log("Claimed:", result.claimed, "WATTS");
console.log("New balance:", result.balance, "WATTS");What are WATTS?
WATTS are computational credits in the newOS ecosystem that enable:
- Uploading content (images, videos)
- Creating new Moods/Spaces
- Accessing AI features
- Running agent tasks
WATTS regenerate over time and can be earned through engagement or purchased.
Claim Types
| Type | Description |
|---|---|
| daily_login | Daily login bonus |
| content_creation | Reward for creating content |
| engagement | Likes, comments, shares received |
Edge Cases
Nothing to claim — Returns claimed: 0
Already claimed — Each claim type has a cooldown period
Pro users — May have higher claim limits and rates