Skip to main content

eth_getBlockByHash

Retrieve comprehensive block information by its hash on the Bittensor network. This method provides detailed block data including transactions, block metadata, and all network-specific properties for the Bittensor blockchain.

Parameters​

ParameterTypeRequiredDescription
blockHashstringYesThe hash of the block to retrieve (32-byte hex string with 0x prefix)
fullTransactionObjectsbooleanYesIf true, returns full transaction objects; if false, returns only transaction hashes

Returns​

Returns a block object with the following fields:

FieldTypeDescription
numberstringBlock number (hex-encoded)
hashstringBlock hash (32 bytes)
parentHashstringHash of the parent block (32 bytes)
noncestringProof-of-work nonce (8 bytes)
sha3UnclesstringSHA3 hash of the uncles data in the block
logsBloomstringBloom filter for block logs (256 bytes)
transactionsRootstringRoot of the transaction trie (32 bytes)
stateRootstringRoot of the final state trie (32 bytes)
receiptsRootstringRoot of the receipts trie (32 bytes)
minerstringAddress of the block validator/miner
difficultystringDifficulty level for this block
totalDifficultystringTotal difficulty of the chain until this block
extraDatastringExtra data field of this block
sizestringSize of this block in bytes
gasLimitstringMaximum gas allowed in this block
gasUsedstringTotal gas used by all transactions in this block
timestampstringUnix timestamp for when the block was collated
transactionsarrayArray of transaction objects or hashes (depending on fullTransactionObjects parameter)
unclesarrayArray of uncle hashes
baseFeePerGasstringBase fee per gas (EIP-1559, if applicable)
mixHashstring256-bit hash for proof-of-work verification

Implementation Example​

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x7a8f2c5b9d3e6f1a4c7b9e2f5d8a1b4c7f0e3a6d9c2b5e8f1a4d7c0b3e6f9a2",
true
],
"id": 1
}'

Response Example​

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x2d4",
"hash": "0x7a8f2c5b9d3e6f1a4c7b9e2f5d8a1b4c7f0e3a6d9c2b5e8f1a4d7c0b3e6f9a2",
"parentHash": "0x3f5e8d2a1b7c9e4f6a0d3c8b5e7f1a4c9d2b6e8f0a3c7d5e9b2f4a7c0e3b6f9",
"nonce": "0x0000000000000123",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0xa4b2c9e8f5d7a1c6e9b3f8d2a7c5b8e1f4d7a0c3b6e9f2a5d8c1b4e7f0a3c6",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"miner": "0x0000000000000000000000000000000000000000",
"difficulty": "0x800000000",
"totalDifficulty": "0x800000000",
"extraData": "0x426974746e736f72",
"size": "0x298",
"gasLimit": "0x2625a00",
"gasUsed": "0x0",
"timestamp": "0x64f5a2e1",
"transactions": [],
"uncles": [],
"baseFeePerGas": "0xa",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}

Use Cases​

  • Network Analysis: Analyze Bittensor network performance and block propagation
  • TAO Tracking: Monitor TAO token transactions and network activity
  • Subnet Validation: Verify subnet-related transactions and validator activity
  • AI Development: Integrate Bittensor blockchain data into AI/ML applications
  • Mining Analytics: Track mining/validation performance on the Bittensor network

Bittensor-Specific Features​

The Bittensor network includes unique characteristics:

  • Subnet Architecture: Blocks may contain subnet-specific transaction data
  • Validator Networks: Mining addresses represent validators in the TAO ecosystem
  • AI Incentives: Transactions often relate to AI model training and validation rewards
  • Decentralized Intelligence: Block data reflects the network's AI-focused consensus mechanism

Need help? Contact our support team or check the Bittensor documentation.