3

Is there anything like that ? A way for a Solana program to execute one of its function automatically, based on time/event (such as : when PDA's SOL balance exceeds an amount).

Thank you

1 Answer 1

4

Solana Programs must have instructions invoked in order to have a function executed. This means there must be something sending transactions to invoke this function based on time/event.

Most people in the community run permissionless cranks to accomplish this task. This can be events such as liquidations, where the person who sent the liquidation transaction gets a small portion of the overall reward.

ZetaMarkets wrote up a post on cranks if you want to learn more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.