This GitHub Codespace provides a ready-to-use environment for working with Simplicity programs on Liquid testnet.
You can either:
- Option 1: Run the automated demo script:
./p2ms-demo.sh - Option 2: Follow the manual steps below to understand each step
The Codespace comes pre-configured with:
simc- Simplicity compilerhal-simplicity- HAL tools for Simplicitylwk_cli- Liquid Wallet Kit CLI
Follow these steps to compile a Simplicity program and fund it on Liquid testnet:
Run the compiler on the example P2PK (Pay-to-Public-Key) program:
simc p2pk.simfImportant: Take note of the entire program output. You'll need this for the next step.
Paste the program output from step 1 into the hal-simplicity info command:
hal-simplicity simplicity info <program>Replace <program> with the actual output from the simc command.
From the output of the previous command, take note of:
cmr- The commitment Merkle root (program identifier)liquid_testnet_address_unconf- The Liquid testnet address for this program
- Go to the Liquid Testnet Faucet
- Paste the
liquid_testnet_address_unconffrom step 3 - Click "Send"
- Take note of the transaction ID that appears after sending