Continuing from Part 1 of the series where we introduced Sapphire and explored confidential transactions.
#2: Signed View CallsThis section is about impersonation and view calls. Let’s go through this step by step.
Based on what you’ve learned so far, try setting the message in the browser with MetaMask.
#4: PrecompilesFor EVMs, the coding language in use is Solidity. So, precompiles are built-in functions that extend the EVM.
Be careful here as these are complex operations that are difficult to implement efficiently.
Examples of Ethereum precompiles:
Sapphire precompiles:
pnpm install -D @oasisprotocol/sapphire-contractsThe list here is not an exhaustive one:
Check our docs here.
Sapphire-Localnet
Random Number Generator (RNG)
Based on what you’ve learned so far, try implementing on-chain CAPTCHA (e.g. add two numbers) to prevent spam attacks.
Curious what comes next? We’ll take it up in the next part of the series.
In the meantime, you should check these out:
Sapphire docs
Sapphire repository
Have a question or need help? Join our Discord and head over to the #dev-central channel.
Originally published at https://dev.to on July 29, 2025.
Sapphire 101: A Technical Workshop For Blockchain Devs Part 2 was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.
All Rights Reserved. Copyright , Central Coast Communications, Inc.