Plans
Plan Claim Rewards
Create a plan to claim protocol rewards
POST
Plan Claim Rewards
Plan Claim Rewards
Creates a plan to claim earned protocol rewards (e.g., COMP tokens from Compound). Returns a plan ID and an EIP-712 digest that must be signed to authorize execution.Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
account_id | string | The sub-account ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Reward asset to claim (e.g., "COMP") |
Examples
Response (201 Created)
Response fields
| Field | Type | Description |
|---|---|---|
plan_id | string | Unique identifier for this plan (pln_ prefix) |
details | object | Transaction details including EIP-712 signing data |
details.eip712_data.digest | string | The hash to sign with the account’s signer key |
expires_at | string | ISO 8601 timestamp — plan must be executed before this time |
Errors
| Status | Code | Description |
|---|---|---|
| 400 | invalid_params | Missing required parameters |
| 400 | plan_failed | Could not generate a valid plan (e.g., no rewards to claim) |
| 400 | no_wallet | Account has no wallets |
| 408 | timeout | Folio computation timed out |
Notes
- Plans expire after 2 minutes. Sign and execute via Execute Plan before expiry.
- The resulting activity will have
action_type: "CLAIM_REWARDS"in its metadata.
Plan Claim Rewards