Blocks

One block, by height or hash

Header, subsidy (reward), fees, value out and every transaction ID.

get/block/{network}/{hash_or_height}

Request

  • Base URL: https://sochain.com/api/v3
  • URL: https://sochain.com/api/v3/block/{network}/{hash_or_height}
  • Auth: one of:
    • none
    • API key in header API-KEY
    • API key in query parameter api_key

Path parameters

network'BTC' | 'LTC' | 'DOGE' | 'ZEC' | 'BTCTEST' | 'LTCTEST' | 'DOGETEST' | 'ZECTEST' required

Network code (any case).

hash_or_heightstring required

A block height (up to 8 digits) or block hash (64 hex characters, any case).

Query parameters

currency'AUD' | 'BRL' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JPY' | 'KRW' | 'MXN' | 'MYR' | 'NOK' | 'NZD' | 'PHP' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'THB' | 'TRY' | 'USD' | 'ZAR'

Prices in this currency instead of US dollars (any case). Not a filter: on the paged endpoints it keeps the form you'd get without it.

Response

Success.

status'success' required

Example response

{
  "data": {
    "reward": "0.00024300",
    "fees": "0.00024300",
    "value_out": "0.00024300",
    "price": {
      "value": "0.00024300"
    },
    "kinds": {
      "payment": {
        "fees": "0.00024300"
      },
      "batch_payout": {
        "fees": "0.00024300"
      },
      "consolidation": {
        "fees": "0.00024300"
      },
      "coinjoin": {
        "fees": "0.00024300"
      },
      "inscription": {
        "fees": "0.00024300"
      },
      "data": {
        "fees": "0.00024300"
      },
      "lightning_close": {
        "fees": "0.00024300"
      },
      "fee_bumped": {
        "fees": "0.00024300"
      },
      "mweb_peg_in": {
        "fees": "0.00024300"
      },
      "large_script": {
        "fees": "0.00024300"
      },
      "transparent": {
        "fees": "0.00024300"
      },
      "shielding": {
        "fees": "0.00024300"
      },
      "deshielding": {
        "fees": "0.00024300"
      },
      "shielded": {
        "fees": "0.00024300"
      },
      "rune": {
        "fees": "0.00024300"
      },
      "bridge": {
        "fees": "0.00024300"
      },
      "token": {
        "fees": "0.00024300"
      },
      "staking": {
        "fees": "0.00024300"
      },
      "anchoring": {
        "fees": "0.00024300"
      },
      "other": {
        "fees": "0.00024300"
      }
    },
    "mweb": {
      "pool": "0.00024300",
      "pool_change": "0.00024300",
      "pegin": "0.00024300",
      "pegout": "0.00024300",
      "fees": "0.00024300"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.