Web3 module to interact with the Ethereum blockchain and smart contracts.
67
{
"context": "Evaluates how well the solution leverages web3-eth account and state inspection APIs to build the account snapshot tool, covering address selection, balance/nonce reads, code lookup, and storage slot retrieval at the latest block. Scoring rewards correct use of getAccounts/requestAccounts, getBalance, getTransactionCount, getCode, and getStorageAt instead of manual RPC calls or unrelated libraries.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Provider setup",
"description": "Initializes a web3-eth client with the supplied provider URL and reuses it for all queries (e.g., via Web3Eth or web3.eth) instead of manual RPC calls.",
"max_score": 15
},
{
"name": "Account discovery",
"description": "Selects the inspection address by calling getAccounts/requestAccounts when no target is provided and surfaces the checksum-normalized result before further reads.",
"max_score": 15
},
{
"name": "Balance read",
"description": "Retrieves the address balance in wei from the latest block using getBalance and returns it as a string without altering units.",
"max_score": 20
},
{
"name": "Nonce read",
"description": "Uses getTransactionCount at the latest block tag to obtain the address nonce and returns the numeric value in the snapshot.",
"max_score": 15
},
{
"name": "Code lookup",
"description": "Fetches runtime code with getCode at the latest block, returning a 0x-prefixed hex string and normalizing empty results to \"0x\".",
"max_score": 15
},
{
"name": "Storage lookup",
"description": "Reads the specified (or default 0) storage slot via getStorageAt at the latest block, ensuring the slot and returned value are 0x-prefixed and included in the snapshot.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-web3-ethdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10