Shielded Calls
Encrypted writes and signed reads using seismic-alloy
Overview
Defining a Contract Interface
use seismic_prelude::client::*;
// The prelude includes both SeismicCallExt (adds .seismic() to SolCallBuilder)
// and ShieldedCallExt (adds .call(), .send(), .eip712() to ShieldedCallBuilder).
// You don't need to import them individually.
sol! {
#[sol(rpc)]
contract SeismicCounter {
event setNumberEmit();
event incrementEmit();
function setNumber(suint256 newNumber) public;
function increment() public;
function isOdd() public view returns (bool);
}
}Shielded Write
Complete Example
Signed Read
Complete Example
SecurityParams (Per-Call Overrides)
Method
Description
Default
EIP-712 (Browser Wallet Compatibility)
How Encryption Works
Shielded Write vs. Signed Read
Aspect
Shielded Write
Signed Read
Low-Level Alternative
Important Notes
See Also
Last updated

