Transparent Calls
Standard Ethereum calls without encryption
Overview
When to Use Transparent Calls
Scenario
Use Transparent
Use Shielded
Contract Deployment
use seismic_prelude::client::*;
sol! {
#[sol(rpc, bytecode = "0x6080604052...")]
contract SeismicCounter {
function setNumber(suint256 newNumber) public;
function isOdd() public view returns (bool);
}
}
// Deploy with generated deploy() method
let contract = SeismicCounter::deploy(&provider).await?;
println!("Deployed to: {:?}", contract.address());
// Now interact with shielded calls
// isOdd has no shielded params, so use .seismic() for encryption
let is_odd = contract.isOdd().seismic().call().await?;Transparent Write
Transparent Read
Using an Unsigned Provider
Complete Example: Deploy and Interact
Transparent vs. Shielded
See Also
Last updated

