Website
Dashboard
Website
Dashboard
  • πŸ‘‰ Welcome
  • 🧐 How to set up an account
  • πŸ“ˆ Monitoring and analytics
  • πŸ” Introducing coins vs tokens
  • πŸ‘¨β€πŸ’Ό The meaning of owning crypto
  • πŸ’° Wallets
  • πŸ“œ Supported Blockchains
  • GITHUB
    • 🐘 SDK PHP
    • πŸ“ SDK Python
    • πŸ‘¨β€πŸ’» SDK GOLANG
    • ✳️ SDK NODE JS
    • ✳️ PHP Wallet
  • API REFERENCE
    • πŸ”‘ Authentication & base URL
    • Bitcoin
      • πŸ” Info
        • 🧐 Check BTC node health
        • πŸ“œ Get latest Bitcoin block
      • πŸ†Ž Block
        • πŸ“ˆ Get Bitcoin block by height
        • πŸ‘¨β€πŸ’» Get Bitcoin block by hash
        • πŸ“‘ Get transaction count in block by height
        • πŸ“‘ Get transaction count in block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get Bitcoin transaction by hash
        • πŸ“ Send pre-signed raw Bitcoin transaction
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ’° List BTC addresses managed by node wallet
        • πŸ†Ž Get BTC received amount for address
      • πŸ” Watch-only addresses
        • πŸ” Register an account zpub
        • πŸ“œ List registered extended public keys
        • πŸ†Ž Issue the next BTC address
        • πŸ“‘ History of issued BTC addresses
        • ❌ Delete a registered zpub
      • πŸ” JSON-RPC
        • πŸ” JSON-RPC
    • Ethereum
      • πŸ” Info
        • 🧐 Check ETH node health
        • πŸ“œ Get latest Ethereum block
      • πŸ†Ž Block
        • πŸ“ˆ Get Ethereum block by height
        • πŸ‘¨β€πŸ’» Get Ethereum block by hash
        • πŸ“‘ Get transaction count in block by height
        • πŸ“‘ Get transaction count in block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get Ethereum transaction by hash
        • πŸ‘¨β€πŸ’» Get Ethereum transaction receipt by hash
        • πŸ“ Send pre-signed raw Ethereum transaction
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ” List ETH accounts managed by node
        • πŸ†Ž Get ETH balance for address
        • πŸ†Ž Get transaction count (nonce) for address
        • πŸ‘‰ Estimate gas for transaction
        • πŸ“‘ Read-only contract call (eth_call)
        • πŸ‘¨β€πŸ’Ό Send transaction from node-managed account
      • πŸ” Watch-only addresses
        • πŸ” Register an account xpub
        • πŸ“œ List registered extended public keys
        • πŸ†Ž Issue the next ETH address
        • πŸ“‘ History of issued ETH addresses
        • ❌ Delete a registered xpub
      • πŸ” JSON-RPC
        • πŸ” JSON-RPC
    • Tron
      • πŸ” Info
        • πŸ“‘ Get TRX node info
        • 🧐 Check Tron node health
        • πŸͺ™ List supported TRC20 tokens
      • πŸ†Ž Block
        • πŸ“œ Get latest Tron block
        • πŸ“œ Get latest N blocks
        • 🟠 Get block by number
        • πŸ‘¨β€πŸ’» Get block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get transaction by hash
        • πŸ†Ž Get all transactions for an address
        • πŸ“ Create an unsigned transaction
        • πŸ“‘ Broadcast a signed transaction
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ†Ž Validate a Tron address
        • πŸ” Get account information
        • πŸ’° Get account balance
        • πŸ’° Get all asset balances
        • πŸ’΅ Get a single TRC20 balance
        • ⚠️ Create a new Tron address (deprecated)
        • ⚠️ Generate a private key from a mnemonic (deprecated)
        • ⚠️ Send TRX from one address to another (deprecated)
        • ⚠️ Send USDT (TRC20) from one address to another (deprecated)
      • πŸ“Š Schemas
      • πŸ” JSON-RPC
    • Webhooks
      • ✳️ Management
        • πŸ‘¨β€πŸ“œ List webhooks
        • 🧐 Create webhook
        • πŸ‘‰ Get webhook
        • πŸ‘¨β€πŸ” Update webhook
        • ❌ Delete webhook
        • πŸ”‘ Rotate signing secret
      • πŸ“¨ Receiving notifications

πŸ‘¨β€πŸ’» Get Ethereum block by hash

Code samples

GET /api/v1/eth/block/hash/{blockHash}

curl 'https://settla.net/api/v1/eth/block/hash/0x64b665414720230df4845b01ff7b9a5c7a5c5ad89ef398eb82ecb8e8138a82a8' \
  -H 'X-API-Key: $SETTLA_API_KEY' \
  -H 'Accept: application/json'

Returns a block by its hash using eth_getBlockByHash.

πŸ› οΈ Parameters

NameInTypeRequiredDescription
blockHashpathstringtrueEthereum block hash.

Example responses

200 Response

{
  "baseFeePerGas": "0x22d90ec",
  "blobGasUsed": "0x60000",
  "difficulty": "0x0",
  "excessBlobGas": "0xa360d0a",
  "extraData": "0x546974616e2028746974616e6275696c6465722e78797a29",
  "gasLimit": "0x3938700",
  "gasUsed": "0x37b7c5f",
  "hash": "0x64b665414720230df4845b01ff7b9a5c7a5c5ad89ef398eb82ecb8e8138a82a8",
  "logsBloom": "0xd9ffdefffdf83ffefc4ffa7bef7cfff77374aff7bfdd7bbc7ab99e9dfeb9e5ff3cdf75e5e7fdffd7f5f977ffdfbbafffefff7ff4fe3fedfddffaeff51fee7ddfffebbddefbdff8fbeffb6fabfff9fbbbfb727fb7bdff6dbf5f7cee5fffefdebaffec7d6e1effbf7f5ffffd737ecb3ffbfb7fe7faffedbf5d5eecefff77ffd635ff7fce79ffdcfb7ddf7f7fff9bffddfe8efbdfe1fff7fb8ff6ff53fabdb67df27f7e4f7bfefafab73efff3f2dffb95ef3fc5ce7d73abcfec77d9bb7fffbfd7fbff4fbfefffcefffb9e7dfeddcf7fff7ff75ff65fdf9ffcf33ffffdfb5bf3eeebbff7ff77b7ef79ff7b7bbff7fbff7ff7bdffff75ff7edceff25eff57fffdddff",
  "miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
  "mixHash": "0x03eb8816e93a170412ddb10e829478e31b2a4f4ab430ce16a5eb1fa657fe5ee7",
  "nonce": "0x0000000000000000",
  "number": "0x18ae5c0",
  "parentBeaconBlockRoot": "0xb4001eef49529137aea3f60b554a073bd8dbf83beec0ff3a5cc03fb1e1e9eea7",
  "parentHash": "0x90890313316f725635e9903f00aa0b35dfecb9444e12e96996a23985cebccdaa",
  "receiptsRoot": "0x4bbfa49444f93d2bab0b33b19be0471bc7d3dba3c6076b55098d30e1f62bb36d",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x55347",
  "stateRoot": "0xf3b48715b34d641042b4afbb4d9e8a1299ac15dba1d5454621aa034050608321",
  "timestamp": "0x6a96526f",
  "transactions": [
    "0x086740aabf9d0749ce8fb7257b334631457e33c85b547b347c7cf3e6cabe1c65",
    "0x034f561a3af0d2ea225dee1f9539fdb5c77769b85cecadf1bfda9bea8e178f01"
  ],
  "transactionsRoot": "0x6bb4f0b80d1d92bd47fa99d5416d925a05d48c6efc92675e04e577956793a146",
  "uncles": [],
  "withdrawals": [
    {
      "index": "0x86f6eeb",
      "validatorIndex": "0x18bc9a",
      "address": "0x446ce9a96c48d5e65a10556b66bae4e1f7afb634",
      "amount": "0xdb7d4e"
    }
  ],
  "withdrawalsRoot": "0xa6d13574daa8994ff8201a033ba7b9a8d500225afb6e81689eaf1c55a8438411"
}

πŸ” Responses

StatusMeaningDescriptionSchema
200OKEthereum blockInline
500Internal Server ErrorCould not connect to ETH nodeNone

πŸ”„ Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» numberstring¦nullfalsenoneBlock number as hex QUANTITY, or null for pending blocks.
» hashstring¦nullfalsenoneHash of the block, or null for pending blocks.
Β» parentHashstringfalsenoneHash of the parent block.
» noncestring¦nullfalsenonenone
Β» sha3Unclesstringfalsenonenone
» logsBloomstring¦nullfalsenonenone
Β» transactionsRootstringfalsenonenone
Β» stateRootstringfalsenonenone
Β» receiptsRootstringfalsenonenone
Β» minerstringfalsenoneAddress of the block proposer/miner.
Β» difficultystringfalsenonenone
Β» totalDifficultystringfalsenonenone
Β» extraDatastringfalsenonenone
Β» sizestringfalsenonenone
Β» gasLimitstringfalsenonenone
Β» gasUsedstringfalsenonenone
Β» timestampstringfalsenoneBlock timestamp as hex QUANTITY.
» baseFeePerGasstring¦nullfalsenonenone
Β» transactionsarrayfalsenoneArray of transaction hashes or transaction objects.
Β» uncles[string]falsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: ApiKeyAuth
Prev
πŸ“ˆ Get Ethereum block by height
Next
πŸ“‘ Get transaction count in block by height