Set Autopilot Staking Policy
set_staking_policyHand Solentic a standing, signature-bound policy so it automatically stakes your IDLE SOL with Blueprint — zero custody. You sign the policy ONCE with your wallet key (Ed25519 over the exact canonical message below — NEVER your secret key). When idle SOL above keepLiquidSol exceeds minSweepSol, Solentic builds an UNSIGNED stake transaction and POSTs it to your callbackUrl for you to sign and submit; Solentic never holds your key. Native Solana stake already auto-compounds, so delegated rewards keep earning automatically. Amounts in the signed message are INTEGER LAMPORTS = round(SOL * 1e9), so there is no float ambiguity. Sign EXACTLY this newline-separated message, then pass the base58 signature: "solentic-autopilot-policy:v1\nwallet=\nkeepLiquidLamports=<round(keepLiquidSol*1e9)>\nminSweepLamports=<round(minSweepSol*1e9)>\ncallbackUrl=\npaused=<true|false>\nnonce=". nonce must strictly increase on each update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Strictly increasing replay guard | |
| paused | No | If true, the policy is stored but inactive | |
| signature | Yes | base58 Ed25519 signature over the canonical policy message | |
| callbackUrl | Yes | HTTPS URL to receive unsigned stake transactions | |
| minSweepSol | Yes | Only stake when idle surplus is at least this many SOL | |
| keepLiquidSol | Yes | SOL to always keep liquid (not staked) | |
| walletAddress | Yes | Wallet whose idle SOL is managed |