Skip to main content
POST
Plan Earn

Plan Earn

Creates a plan to deposit assets into a DeFi yield protocol. Returns a plan ID and an EIP-712 digest that must be signed by the account’s signer to authorize execution.

Request

Path parameters

Body parameters

Examples

Response (201 Created)

Response fields

Errors

Notes

  • Plans are ephemeral — they’re stored temporarily and expire after 2 minutes
  • No on-chain state changes until you call Execute Plan
  • The amount is in the asset’s smallest unit. For USDC (6 decimals), "1000000" = 1 USDC
  • Use List Assets to check supported assets and their decimals
  • Use List Networks to check supported networks