Automated Subscriptions
Learn how to set up recurring, automated payments for STX and sBTC.
Automated Subscription Payments
The Turnkey Stacks Wallet allows you to set up recurring, automated payments using delegated wallets and serverless functions. This is perfect for subscriptions, dollar-cost averaging (DCA), or any other regular transfer.
How It Works
The subscription system uses a delegated wallet architecture:
- Delegate a Wallet: You select one of your accounts to be a "delegated wallet." This creates a special-purpose API key for that account.
- Set a Policy: A security policy is applied to the delegated user, which can restrict its permissions (e.g., only allow sending to a specific address).
- Create a Subscription: You define the parameters of your subscription, such as the recipient address, amount, token, and day of the month.
- Automated Execution: Our backend, powered by Inngest, runs a daily check. If your subscription is due, it uses the delegated credentials to sign and broadcast the transaction automatically.
Security First
Your main passkey is never used for automated transactions. Only the restricted, delegated API key is used, minimizing risk.