tessl install tessl/pypi-web3@7.13.0A Python library for interacting with Ethereum blockchain
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
87%
{
"context": "This criteria evaluates the engineer's proficiency in using web3.py to query Ethereum account balances, including proper connection setup, balance retrieval, unit conversion, and ENS name resolution.",
"type": "weighted_checklist",
"checklist": [
{
"name": "HTTP Provider Setup",
"description": "Uses Web3.HTTPProvider to establish a connection to an Ethereum node in the __init__ method",
"max_score": 15
},
{
"name": "Web3 Instance Creation",
"description": "Creates a Web3 instance with the configured provider",
"max_score": 10
},
{
"name": "Connection Check",
"description": "Uses web3.is_connected() method to verify the connection status in is_connected()",
"max_score": 15
},
{
"name": "Balance Query in Wei",
"description": "Uses web3.eth.get_balance() to retrieve account balance in wei in get_balance_wei()",
"max_score": 20
},
{
"name": "Wei to Ether Conversion",
"description": "Uses web3.from_wei() with 'ether' unit parameter to convert balance from wei to ether in get_balance_ether()",
"max_score": 20
},
{
"name": "ENS Name Support",
"description": "Properly handles ENS names in balance queries (web3.py automatically resolves ENS names when passed to get_balance)",
"max_score": 10
},
{
"name": "Return Type Correctness",
"description": "Returns correct types: int for wei, float for ether, bool for connection status",
"max_score": 10
}
]
}