Request Examples
Create or update a delegation:What Endorsements Do
Each endorsement allocates a share of your daily reward payout in basis points (ratioBps), where 2500 means 25%. Recipients are credited in the same daily payout cycle.
Payout history distinguishes a recipient’s own rewards from delegated rewards:
rewardsPayoutSatsfor their own rewards.endorsementsPayoutSatsfor delegated rewards received.payoutSatsas the total.
Example
Suppose your daily payout is10000 sats and you allocate 3000 bps (30%) to recipient A and 2000 bps (20%) to recipient B. A receives 3000 sats, B receives 2000 sats, and you keep 5000 sats.
Security Model
Every create, update, or delete request requires a UUIDv7timestampNonce and a secp256k1 signature from the endorser. The signature covers the SHA-256 hash of the canonical YAML payload.
The API enforces these constraints:
- Nonce timestamp must be within 5 minutes.
- Nonces are single-use (replay protection).
- You cannot endorse to yourself.
- Sum of all active ratios for one endorser cannot exceed
10000bps.
Endpoints
GET /v1/rewards/:pubkey/endorsementsPOST /v1/rewards/:pubkey/endorsementsDELETE /v1/rewards/:pubkey/endorsements/:toPubkey