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 block by hash

Code samples

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

curl 'https://settla.net/api/v1/trx/block/hash/0000000004a573d60372b39d1a6e9c4d04e4a643a87f48d5cd25a184a3da2b0c' \
  -H 'X-API-Key: $SETTLA_API_KEY' \
  -H 'Accept: application/json'

Returns a full block by its blockID, verbatim from the node. The identifier is Tron's block ID: 64 hex characters whose first 8 encode the height, e.g. 0000000004a573d6โ€ฆ is block 77 951 958. An unknown hash answers 200 with an empty array [].

๐Ÿ› ๏ธ Parameters

NameInTypeRequiredDescription
blockHashpathstringtrueBlock ID as returned in the blockID field.

Example responses

200 Response

{
  "blockID": "0000000004a573d60372b39d1a6e9c4d04e4a643a87f48d5cd25a184a3da2b0c",
  "block_header": {
    "raw_data": {
      "timestamp": 1764517689000,
      "txTrieRoot": "1cc142c46f2a42f880a583bdd9e42137723951d4e7fe89c329e2593f888f019a",
      "parentHash": "0000000004a573d535c0092fe7ace8e7dcc30687ee3f2a049bee042e06c5f756",
      "number": 77951958,
      "witness_address": "4162398d516b555ac64af24416e05c199c01823048",
      "version": 32
    },
    "witness_signature": "0226e5514108705705f5ed0a406a7d04785a9a86f757214934824b844d6ca82e46d8d501e71fd9c59d772bf72fc5e41b39176e8b20d17b81df41a008cb8607b501"
  },
  "transactions": [
    {
      "txID": "8b5e5f9a99d65c0b3aac7f3cbc2ee3029a0d4225054fd99830236d96d853c503",
      "raw_data": {
        "ref_block_bytes": "73c3",
        "ref_block_hash": "0214af5c5729128e",
        "expiration": 1764517986000,
        "contract": [
          {
            "type": "TriggerSmartContract",
            "parameter": {
              "type_url": "type.googleapis.com/protocol.TriggerSmartContract",
              "value": {
                "owner_address": "4130760c7e10b1d3509d8d64a7e9eb9ab94bc83495",
                "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
                "data": "a9059cbb00000000000000000000000082dd6b9966724ae2fdc79b416c7588da67ff1b3500000000000000000000000000000000000000000000000000000000001e8480"
              }
            }
          }
        ],
        "timestamp": 1764517687800,
        "fee_limit": 50000000
      },
      "signature": [
        "4817931a156fa2e95fabac528daf33e1d09b34fb3ee2925beec879e40ce15c16a6ca9d2001524f29757fd9b57ada9432fac300aa21d8dfffa238c2a19232bb6c01"
      ],
      "ret": [
        {
          "contractRet": "SUCCESS"
        }
      ],
      "raw_data_hex": "0a0273c322080214af5c5729128e40d0fddeabad335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a154130760c7e10b1d3509d8d64a7e9eb9ab94bc83495121541a614f803b6fd780986a42c78ec9c7f77e6ded13c2244a9059cbb00000000000000000000000082dd6b9966724ae2fdc79b416c7588da67ff1b3500000000000000000000000000000000000000000000000000000000001e848070f8e3ccabad33900180e1eb17"
    }
  ]
}

500 Response

{
  "error": "Could not connect to TRX node."
}

๐Ÿ” Responses

StatusMeaningDescriptionSchema
200OKTRX block detailsInline
500Internal Server ErrorCould not connect to TRX nodeInline

๐Ÿ”„ Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
ยป blockIDstringfalsenonenone
ยป block_headerobjectfalsenonenone
ยปยป raw_dataobjectfalsenonenone
ยปยปยป numberintegerfalsenonenone
ยปยปยป txTrieRootstringfalsenonenone
ยปยปยป witness_addressstringfalsenoneBlock producer, in hex (41โ€ฆ) form.
ยปยปยป parentHashstringfalsenonenone
ยปยปยป versionintegerfalsenonenone
ยปยปยป timestampinteger(int64)falsenonenone
ยปยป witness_signaturestringfalsenonenone
ยป transactions[object]falsenonenone
ยปยป txIDstringfalsenonenone
ยปยป raw_dataobjectfalsenonenone
ยปยป raw_data_hexstringfalsenoneThe signable payload. txID is the SHA-256 of these bytes.
ยปยป signature[string]falsenonenone
ยปยป ret[object]falsenonenone
ยปยปยป contractRetstringfalsenonenone

Status Code 500

NameTypeRequiredRestrictionsDescription
ยป errorstringfalsenonenone
ยป detailsobjectfalsenonePresent only on a few validation errors.
To perform this operation, you must be authenticated by means of one of the following methods: ApiKeyAuth
Prev
๐ŸŸ  Get block by number