New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

10 min read

Method (block_get)

block_get

info-circle-fill

Utilize the GetBlock Explorer API to retrieve detailed information about a specific block on the blockchain. Leverage blockchain data for your applications.

Example

POST /block/get

Request

curl --location --request POST 'https://near.getblock.io/explorer/block/get' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-api-key: YOUR-API-KEY' \
--data-raw '{
  "hash": "",
  "height": 67851339
}'

Response

{
  "author": "bzam6yjpnfnxsdmjf6pw.poolv1.near",
  "created_at": 1655390203442722000,
  "gas_limit": "1000000000000000",
  "gas_price": "100000000",
  "gas_used": "65762634519528",
  "hash": "F98BtBgQKTYD9VB36ArLLVkt6rhepdis3MUHyHnhSvvo",
  "height": 67851339,
  "prev_hash": "D4cs6wxKNrkZCY8cRm6Jt2LN6jepGVtRZGYesmho9Y1N",
  "receipt_count": 12,
  "receipts": [
    {
      "actions": [
        {
          "AddKey": {
            "access_key": {
              "nonce": 0,
              "permission": "string"
            },
            "public_key": "string"
          },
          "CreateAccount": "string",
          "DeleteAccount": {
            "beneficiary_id": "string"
          },
          "DeleteKey": {
            "public_key": "string"
          },
          "DeployContract": {
            "code": "string"
          },
          "FunctionCall": {
            "args": "string",
            "deposit": "string",
            "gas": "string",
            "method_name": "string"
          },
          "Stake": {
            "public_key": "string",
            "stake": "string"
          },
          "Transfer": {
            "amount": "string"
          }
        }
      ],
      "block_hash": "string",
      "block_height": 0,
      "child": [
        "string"
      ],
      "executor_id": "string",
      "gas_used": "string",
      "id": "string",
      "logs": [
        "string"
      ],
      "predecessor_id": "string",
      "result": "string",
      "successful": true,
      "tokens_burnt": "string",
      "tx_hash": "string"
    }
  ],
  "status": "finalized",
  "transactions": [
    {
      "actions": [
        "Transfer"
      ],
      "block_hash": "39F3yvyJJAaZ3RPHVVWNKeqrBRTKq9iXbQCAqSqtFQGq",
      "block_height": 67909065,
      "convert_to_receipt": {
        "gas_burned": "424555062500",
        "tokens_burned": "42455506250000000000"
      },
      "created_at": 1655460557281346000,
      "deposit": "50000000000000000000000",
      "fee": "84911012500000000000",
      "gas_attached": "1072292687500",
      "gas_price": "100000000",
      "gas_used": "1072292687500",
      "hash": "2np4trodC1iFS4Zg2oVvcGwyMfrDEmaiUm48qyQUDjeU",
      "receipt_ids": [
        "B6r7SAqutgMNmtsD8r25ajq8MMykhx2eVLnTcTdWcqiG",
        "H1bC1XWE2y14dgMzGtqMdToAwSLYUDM1ybveqWzFjAyz"
      ],
      "receipts": [
        {
          "actions": [
            {
              "AddKey": {
                "access_key": {
                  "nonce": 0,
                  "permission": "string"
                },
                "public_key": "string"
              },
              "CreateAccount": "string",
              "DeleteAccount": {
                "beneficiary_id": "string"
              },
              "DeleteKey": {
                "public_key": "string"
              },
              "DeployContract": {
                "code": "string"
              },
              "FunctionCall": {
                "args": "string",
                "deposit": "string",
                "gas": "string",
                "method_name": "string"
              },
              "Stake": {
                "public_key": "string",
                "stake": "string"
              },
              "Transfer": {
                "amount": "string"
              }
            }
          ],
          "block_hash": "string",
          "block_height": 0,
          "child": [
            "string"
          ],
          "executor_id": "string",
          "gas_used": "string",
          "id": "string",
          "logs": [
            "string"
          ],
          "predecessor_id": "string",
          "result": "string",
          "successful": true,
          "tokens_burnt": "string",
          "tx_hash": "string"
        }
      ],
      "receiver_id": "relay.aurora",
      "signer_id": "sweat_welcome.near",
      "status": "string",
      "successful": true
    }
  ],
  "tx_count": 10
}