Web3 module to interact with the Ethereum blockchain and smart contracts.
Agent Success
Agent success rate when using this tile
67%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
68%
Build a utility that summarizes an Ethereum node's identity and network status from a given provider.
Hex responses should be normalized to base-10 values for the snapshot (protocolVersion as a string, chainId as a number).
0x41, chain id 0x1, node description Geth/v1.13.6, and reports not syncing, produce a snapshot containing protocolVersion '65', chainId 1, nodeInfo Geth/v1.13.6, and syncing set to false. @test1, current block 5, and highest block 10, return a snapshot where syncing is that progress object and the chain id and protocol version fields are still populated. @test@generates
export type SyncState =
| false
| {
startingBlock: number;
currentBlock: number;
highestBlock: number;
};
export interface NetworkSnapshot {
protocolVersion: string;
chainId: number;
nodeInfo: string;
syncing: SyncState;
}
export type ProviderLike = string | object;
/**
* Builds a network identity snapshot from the provided endpoint or provider instance.
*/
export async function getNetworkSnapshot(provider: ProviderLike): Promise<NetworkSnapshot>;Ethereum RPC helper used to retrieve protocol version, chain identity, node metadata, and syncing status.
tessl i tessl/npm-web3-eth@4.8.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10