POSTgetblock
https://bitcoin-mainnet.nodit.io/Returns information about the block with the given block hash.
The response format depends on the verbosity value.
It contains following parameters in order:
blockhash: The hash of the block to look up, as a string. (required)verbosity: The level of detail in the response, as an integer. (optional, default1)0: Returns the serialized block as a hex-encoded string.1: Returns a JSON object with the block data and the list of transaction ids.2: Returns a JSON object with the block data and the details of each transaction.3: Same as2, and additionally includes theprevoutdata for each transaction input. Available only for unpruned blocks in the current best chain.
The hash of the block to look up.
The level of detail in the response. 0 returns a hex-encoded string, 1 the list of transaction ids, 2 the transaction details, and 3 the transaction details including the prevout of each input.
The block hash, identical to the value provided in the request.
The number of confirmations, or -1 if the block is not on the main chain.
The block size, in bytes.
The block size excluding witness data, in bytes.
The block weight as defined in BIP 141.
The block height.
The block version.
The block version in hexadecimal.
The merkle root of the transactions in the block.
The list of transactions included in the block.
When verbosity is 1, an array of transaction id strings is returned; when 2 or higher, an array of transaction objects is returned.
When verbosity is 3, each input additionally includes its prevout data.
Whether the specified block is in the active chain. Returned only when blockhash is provided.
The serialized transaction, hex-encoded.
The transaction id.
The transaction hash. It differs from txid for witness transactions.
The serialized transaction size, in bytes.
The virtual transaction size as defined in BIP 141. It differs from size for witness transactions.
The transaction weight as defined in BIP 141. The value is between vsize * 4 - 3 and vsize * 4.
The transaction version.
The lock time that determines when the transaction becomes valid.
The list of transaction inputs.
The coinbase value of the input. Returned only for coinbase inputs.
The id of the previous transaction referenced by this input. Returned only for non-coinbase inputs.
The output index of the previous transaction referenced by this input. Returned only for non-coinbase inputs.
The signature script (scriptSig) that unlocks the output referenced by the input.
Disassembly of the script.
The script, hex-encoded.
The hex-encoded witness data. Returned only for SegWit inputs.
The previous output spent by this input.
It is returned when verbosity is 2 for getrawtransaction or 3 for getblock,
and omitted if the block undo data is not available.
Whether the output was generated by a coinbase transaction.
The height of the block containing the previous output.
The value of the previous output, denominated in BTC.
The output script (scriptPubKey) that defines the conditions for spending the output.
Disassembly of the script.
Inferred descriptor for the script.
The raw script bytes, hex-encoded.
The Bitcoin address for the script. Returned only when a well-defined address exists.
The output type.
nonstandard: A script that does not match any standard type.anchor: A Pay-to-Anchor (P2A) output.pubkey: An output locked directly by a public key (P2PK).pubkeyhash: An output locked by a public key hash (P2PKH).scripthash: An output locked by a script hash (P2SH).multisig: An output that requires multiple signatures.nulldata: An output that only records data via OP_RETURN.witness_v0_keyhash: A SegWit v0 public key hash output (P2WPKH).witness_v0_scripthash: A SegWit v0 script hash output (P2WSH).witness_v1_taproot: A Taproot output (P2TR).witness_unknown: An output with an unknown witness version.
예: witness_v0_keyhash
The script sequence number of the input.
예: 4294967295
The list of transaction outputs.
The value of the output, denominated in BTC.
예: 0.0125
The index of the output within the transaction.
예: 0
The output script (scriptPubKey) that defines the conditions for spending the output.
Disassembly of the script.
Inferred descriptor for the script.
The raw script bytes, hex-encoded.
The Bitcoin address for the script. Returned only when a well-defined address exists.
The output type.
nonstandard: A script that does not match any standard type.anchor: A Pay-to-Anchor (P2A) output.pubkey: An output locked directly by a public key (P2PK).pubkeyhash: An output locked by a public key hash (P2PKH).scripthash: An output locked by a script hash (P2SH).multisig: An output that requires multiple signatures.nulldata: An output that only records data via OP_RETURN.witness_v0_keyhash: A SegWit v0 public key hash output (P2WPKH).witness_v0_scripthash: A SegWit v0 script hash output (P2WSH).witness_v1_taproot: A Taproot output (P2TR).witness_unknown: An output with an unknown witness version.
예: witness_v0_keyhash
The transaction fee, denominated in BTC.
Returned when verbosity is 2, and omitted if the block undo data is not available.
The hash of the block containing the transaction.
The number of confirmations of the transaction.
The time of the block containing the transaction, expressed in UNIX epoch time.
Same as blocktime.
The block time expressed in UNIX epoch time.
The median time of the preceding 11 blocks, expressed in UNIX epoch time.
The nonce used for proof of work.
nBits, the compact representation of the block difficulty target.
The difficulty target, in hexadecimal.
The difficulty of the block.
The expected number of hashes required to produce the chain up to this block, in hexadecimal.
The number of transactions in the block.
The hash of the previous block.
The hash of the next block.