.tread
Transparent read namespace for standard contract calls
Overview
Usage Pattern
result = contract.tread.functionName(arg1, arg2, ...)Parameters
Function Arguments
No Transaction Options
Examples
Sync Usage
Async Usage
Reading with Arguments
Multiple Return Values
Array and Struct Returns
Return Value
Decoding Results
Key Limitation: No msg.sender
Problem Example
When .tread Works
When .tread Fails
Privacy Implications
What's Visible
Example
When to Use .tread
Good Use Cases
Examples
When NOT to Use .tread
Use .read Instead When
.read Instead WhenExamples (Use .read for these)
.read for these)Comparison with Other Namespaces
Namespace
Encryption
Proves Identity
Gas Cost
Use Case
Error Handling
Best Practices
When to Choose .tread
When to Choose .read
Common Mistakes
Async Patterns
Concurrent Reads
Read with Timeout
Standard Web3.py Behavior
Block Number
Low-Level Alternative
Performance
See Also
Last updated

