A Python library for interacting with Ethereum blockchain
88
Pending
Does it follow best practices?
Impact
88%
1.01xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10