CryptoApis::BlockMinedDataItem

Properties

Name Type Description Notes
blockchain String Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
network String Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "ropsten", "rinkeby" are test networks.
height Integer Defines the number of blocks in the blockchain preceding this specific block.
hash String Represents the hash of the block's header, i.e. an output that has a fixed length.
timestamp Integer Defines the exact date/time when this block was mined in seconds since Unix Epoch time.

Example

require 'crypto_apis'

instance = CryptoApis::BlockMinedDataItem.new(
  blockchain: bitcoin,
  network: testnet,
  height: 570008,
  hash: 00000000000000000006ddb5e854505f8b792122b0ac9469c07eb26db414f6fb,
  timestamp: 1610365615
)