query-blocks

Retrieve and decode Ethereum blockchain data using Nethereum.NET.

2.3k|747|Updated Nov 23, 2015
One-click install
npx skills add https://github.com/Nethereum/Nethereum --skill query-blocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-blocks
Source: https://github.com/Nethereum/Nethereum/tree/main/plugins/nethereum-skills/skills/query-blocks
Command: npx skills add https://github.com/Nethereum/Nethereum --skill query-blocks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of retrieving various types of data directly from the Ethereum blockchain, eliminating the need for complex direct RPC calls or manual data parsing.

Core Features & Use Cases

  • Block Information: Fetch block numbers, details of blocks by number or hash, and transaction counts (nonces).
  • Transaction Details: Retrieve specific transaction information by hash, including sender, receiver, value, and gas details.
  • Account State: Query account balances (ETH and ERC20 tokens) at specific block heights.
  • Smart Contract Interaction: Decode event logs from transaction receipts and query ERC20 token balances using typed services.

Quick Start

Use the query-blocks skill to get the current block number on the Ethereum mainnet.

Frequently Asked Questions about query-blocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Ethereum blockchain data like transaction receipts and account balances?

Query Ethereum blockchain data by using Nethereum.NET to retrieve and decode block details, transaction receipts, account balances, and smart contract events without direct RPC calls. It supports fetching on-chain state and interacting with ERC20 tokens.

Can I retrieve ERC20 token balances for a specific Ethereum block height?

Yes, you can retrieve ERC20 token balances at specific block heights. The query-blocks Skill supports querying account state for both ETH and ERC20 tokens, using typed services to interact directly with smart contracts on the Ethereum blockchain.

What is the best way to get Ethereum block details and transaction nonces?

The best way to get Ethereum block details and transaction nonces is using Nethereum.NET to fetch block numbers, block details by hash or number, and transaction counts. This bypasses manual RPC calls and data parsing.

Does this Nethereum.NET Skill decode smart contract event logs automatically?

Yes, Nethereum.NET automatically decodes smart contract event logs from transaction receipts. The Skill retrieves specific transaction information by hash, including sender, receiver, value, gas details, and decoded event logs.

What Ethereum transaction details can I fetch using Nethereum without manual data parsing?

Using Nethereum, you can fetch transaction details including sender, receiver, value, and gas information by hash. The Skill eliminates manual data parsing by directly retrieving and decoding the requested Ethereum transaction data.

How do I get the current block number on the Ethereum mainnet using .NET?

Get the current block number on the Ethereum mainnet by executing the query-blocks Skill with Nethereum.NET. It directly retrieves the latest block details and on-chain state without requiring complex direct RPC calls.