Skip to main content

Pharos

This section covers Pharos staking integrations using the Stakely Staking API. It includes Pharos-specific notes, transaction signing examples, and the staking flows supported by Stakely: native delegation and Faroo liquid staking.

What you will find in this section​

  • Native staking: end-to-end flows and endpoints for delegating, undelegating, withdrawing after the unlock window, claiming rewards, and compounding on Pharos, plus a complete worked integration example (craft, sign, prepare, broadcast) including signing with a local key or an external custodian.
  • Faroo liquid staking: flows and endpoints for staking PROS for stPROS, undelegating through the withdrawal queue, and withdrawing via the Faroo protocol, plus its own worked integration example.

Notes​

  • Pharos integrations use the optional X-NETWORK header to select the target network (typically the chain ID, e.g. 1672 for Pharos mainnet). The API provides a dedicated endpoint to list all available Pharos networks and their corresponding X-NETWORK values.
  • All staking operations are executed on-chain. Stakely prepares the transaction payloads, while signing is performed by your application using your preferred signing method.
  • For native staking, after undelegation the protocol enforces a withdraw window of 84 epochs (DEFAULT_WITHDRAW_WINDOW) before principal can be withdrawn; use the stake balance endpoint to inspect pendingUnstake and pendingWithdrawStake.