Features
- Simulation API - Simulate transactions without broadcasting
- Virtual TestNets API - Create isolated blockchain environments
- Alerts API - Monitor on-chain activity with notifications
- Contract API - Manage and verify smart contracts
- Web3 Actions API - Deploy serverless functions
- Wallets API - Track and monitor wallet addresses
Installation
[]
= "0.3"
= { = "1", = ["full"] }
Quick Start
use Client;
use SimulationRequest;
async
Environment Variables
API Modules
Simulation
use ;
// Single simulation
let request = new
.network_id
.value_wei
.gas
.save;
let result = client.simulation.simulate.await?;
// Bundle simulation
let bundle = new;
let results = client.simulation.simulate_bundle.await?;
// List saved simulations
let sims = client.simulation.list.await?;
// Share a simulation
let url = client.simulation.share.await?;
Virtual TestNets
use ;
// Create a VNet
let request = new
.block_number
.sync_state;
let vnet = client.vnets.create.await?;
// List VNets
let vnets = client.vnets.list.await?;
// Delete VNets (CI cleanup)
client.vnets.delete_many.await?;
Alerts
Note: The Tenderly Alerts API uses an undocumented request format. Alert creation (
create()) may not work as expected. Read operations (list(),get(),history()) work correctly. See src/alerts/types.rs for details.
use AlertHistoryQuery;
// List existing alerts
let alerts = client.alerts.list.await?;
// Get alert history
let history = client.alerts
.history
.await?;
// Get a specific alert
let alert = client.alerts.get.await?;
Contracts
use ;
// Add a contract
let contract = client.contracts
.add
.await?;
// Verify source code
let result = client.contracts
.verify
.await?;
Web3 Actions
use ;
// Create an action
let action = client.actions
.create
.await?;
// View execution logs
let logs = client.actions.logs.await?;
Wallets
use ;
// Add a wallet to monitor
let wallet = client.wallets
.add
.await?;
// List all wallets
let wallets = client.wallets.list.await?;
// Update wallet metadata
client.wallets
.update
.await?;
// Remove a wallet
client.wallets.remove.await?;
Terms of Service
This is an unofficial client. By using this library, you agree to comply with Tenderly's Terms of Service.
Disclaimer
This crate is not affiliated with or endorsed by Tenderly.
License
MIT