CryptoApis::GetLastMinedBlockRIBSB
Properties
Name |
Type |
Description |
Notes |
difficulty |
String |
Represents a mathematical value of how hard it is to find a valid hash for this block. |
|
nonce |
String |
Represents a random value that can be adjusted to satisfy the proof of work |
|
size |
Integer |
Represents the total size of the block in Bytes. |
|
bits |
String |
A sub-unit of BTC equal to 0.000001 BTC, or 100 Satoshi, and is the same as microbitcoin (μBTC). Bits have two-decimal precision. |
|
chainwork |
String |
Represents a hexadecimal number of all the hashes necessary to produce the current chain. E.g., when converting 0000000000000000000000000000000000000000000086859f7a841475b236fd to a decimal you get 635262017308958427068157 hashes, or 635262 exahashes. |
|
merkle_root |
String |
Defines the single and final (root) node of a Merkle tree. It is the combined hash of all transactions' hashes that are part of a blockchain block. |
|
stripped_size |
Integer |
Defines the numeric representation of the block size excluding the witness data. |
|
version |
Integer |
Represents the version of the specific block on the blockchain. |
|
version_hex |
String |
Is the hexadecimal string representation of the block's version. |
|
weight |
Integer |
Represents a measurement to compare the size of different transactions to each other in proportion to the block size limit. |
|
Example
require 'crypto_apis'
instance = CryptoApis::GetLastMinedBlockRIBSB.new(
difficulty: 21448277761059.71,
nonce: 2113101077,
size: 1408113,
bits: 170d21b9,
chainwork: 00000000000000000000000000000000000000001932c1bc515b0c0e0dee2040,
merkle_root: 02754414626473fa39a0cfbf8d1960fc17ba932ab586340f61f039114053e851,
stripped_size: 925958,
version: 536928256,
version_hex: 2000000,
weight: 3999412
)