stack_stx
Locks STX in PoX-5 with a chosen signer manager to earn sBTC rewards over 1–96 reward cycles, starting the next cycle.
Instructions
Lock STX in PoX-5 with a signer manager to earn sBTC rewards.
The lock starts next reward cycle and lasts numCycles cycles (1-96). Pick a signer manager with list_stacking_signers. Refused during the prepare phase and if the address is already staking (use extend_stacking). Locking is not a transfer: the transaction carries a staking post-condition for exactly the locked amount.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to lock, in micro-STX | |
| numCycles | Yes | Reward cycles to lock (1-96; one cycle is about two weeks) | |
| signerManager | Yes | Signer manager contract id, e.g. SP8HK160YD5GHXP69VGA0TC7AQJ1X4CDW3XVERSE.xverse-signer-manager-2 | |
| btcRewardAddress | No | Optional Bitcoin address to receive rewards. Encoded as `{ pox-addr, max-fee }` signer calldata, the shape reference signer managers (e.g. Xverse, Fast Pool) use to pay rewards to BTC via an sBTC withdrawal. Some managers require it (PlanBetter), some ignore it (native-pool). Omit to receive sBTC where the manager supports that. | |
| signerCalldataHex | No | Advanced: raw signer calldata (hex, max 500 bytes) for managers with a custom format. Cannot be combined with btcRewardAddress. | |
| maxWithdrawalFeeSats | No | Max sBTC withdrawal fee (sats) per payout when btcRewardAddress is set. Default 3000. |