Payers
Anchor currently does not support PDAs as payers for account initialization. This means that if one of your automated instructions initializes a new account, you must specify a keypair signer as the payer
. For this, we provide a special Clockwork payer address:
C1ockworkPayer11111111111111111111111111111
You can import that address with the Typescript SDK:
import { PAYER_PUBKEY } from "@clockwork-xyz/sdk";
You can import that address with the Rust SDK:
use clockwork_sdk::utils::PAYER_PUBKEY;
If an account in your automated instruction references the Clockwork payer account, workers will automatically inject their address in its place. By doing this, the worker node will pay for any account initializations your program needs to do, and Clockwork will reimburse the worker from your thread's account balance.
Last updated
Was this helpful?