How do I test a Silverscript covenant before deploying to Kaspa testnet?

Use sil-debug to verify your covenant's state transitions locally before sending anything to testnet. You launch it with: cargo run -p cli-debugger -- [file] --function [name] --ctor-arg [values] --arg [values], where you supply the script file, the specific function you want to exercise, any constructor arguments that set up initial state, and the call arguments for the function itself. The debugger then lets you step through execution and confirm that each transition produces the expected output script. This matters because catching a logic error in a local debug session costs nothing, while a bug discovered after deploying to testnet means rewriting and redeploying the covenant.

Learn more ›