Transparent Calls
Standard Ethereum calls without encryption
Overview
When to Use Transparent Calls
Scenario
Use Transparent
Use Shielded
Contract Deployment
use seismic_prelude::foundry::*;
use alloy::primitives::{Bytes, TxKind};
// Contract bytecode (from compilation)
let bytecode: Bytes = "0x6080604052...".parse()?;
// Build a standard (non-seismic) transaction for deployment
let tx = seismic_foundry_tx_builder()
.with_input(bytecode)
.with_kind(TxKind::Create) // Create transaction
.into();
// No .seismic() -- deployment is always transparent
// Send deployment transaction
let pending_tx = provider.send_transaction(tx).await?;
let receipt = pending_tx.get_receipt().await?;
// Extract deployed contract address
let contract_address = receipt.contract_address
.expect("deployment should return contract address");
println!("Deployed to: {:?}", contract_address);Transparent Write
Transparent Read
Using an Unsigned Provider
Complete Example: Deploy and Interact
Transparent vs. Shielded: The .seismic() Difference
.seismic() DifferenceSee Also
Last updated

