Miden has a total of 9 tutorials, the first 6 are quite easy and most of you can do them. Most people encounter difficulties with the last 3, so I will provide detailed instructions for these three. Cost 0 USD Funding 25M USD Steps: Go to – Select Tutorials → Timelock P2ID note Click Create new script – Name it anything – Type: Note script – Example: P2ID Note – Click Create – Scroll down, click Next Step twice Add 3 lines between lines 19–21: let timelock_height = inputs[2]; let block_number = tx::get_block_number(); assert!(block_number >= timelock_height); – Click Compile – Click Next Step Create Note – Go to Notes ( on the left) – Add note → Create note – Recipient: Test wallet – Select the script you just created – Note type: Public – Add note assets – Asset: Miden – Amount: 10 – Add note input – Enter Prefix, suffix, and input as instructed on the right – Click Create – Confirm the transaction in Miden Wallet – Wait for processing – Next Step → Next Tutorial If you encounter an error at the last step: Remove the Miden extension → reinstall → import the wallet again → create the note again. Done with Tutorial 7. Prepare for Tutorial 8, everyone!
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
Guide for @0xMiden Testnet – Tutorial 7
Miden has a total of 9 tutorials, the first 6 are quite easy and most of you can do them. Most people encounter difficulties with the last 3, so I will provide detailed instructions for these three.
Cost 0 USD
Funding 25M USD
Steps:
Go to
– Select Tutorials → Timelock P2ID note
Click Create new script
– Name it anything
– Type: Note script
– Example: P2ID Note
– Click Create
– Scroll down, click Next Step twice
Add 3 lines between lines 19–21:
let timelock_height = inputs[2];
let block_number = tx::get_block_number();
assert!(block_number >= timelock_height);
– Click Compile
– Click Next Step
Create Note
– Go to Notes ( on the left)
– Add note → Create note
– Recipient: Test wallet
– Select the script you just created
– Note type: Public
– Add note assets
– Asset: Miden
– Amount: 10
– Add note input
– Enter Prefix, suffix, and input as instructed on the right
– Click Create
– Confirm the transaction in Miden Wallet
– Wait for processing
– Next Step → Next Tutorial
If you encounter an error at the last step:
Remove the Miden extension → reinstall → import the wallet again → create the note again.
Done with Tutorial 7. Prepare for Tutorial 8, everyone!