// Path: blockchain-api/src/main/java/uk/dsxt/bb/datamodel/blockchain/BlockchainBlock.java
// public interface BlockchainBlock {
//     String hash = Strings.EMPTY;
//     String previousBlockHash = Strings.EMPTY;
//     BlockchainTransaction[] transactions = new BlockchainTransaction[0];
//     long time = 0L;
// 
//     default String getHash() {
//         return hash;
//     }
// 
//     default String getPreviousBlockHash() {
//         return previousBlockHash;
//     }
// 
//     default BlockchainTransaction[] getTransactions() {
//         return transactions;
//     }
// 
//     default long getTime() {
//         return time;
//     }
// }


import lombok.Data;
import uk.dsxt.bb.datamodel.blockchain.BlockchainBlock;
import java.math.BigDecimal;
    long strippedsize;
    long size;
    long weight;
    long height;
    long version;
    String versionHex;
    String merkleroot;
    String[] tx;
    long time;
    long mediantime;
    long nonce;
    String bits;
    BigDecimal difficulty;
    String chainwork;
    String previousblockhash;
    String nextblockhash;

    @Override
    public String getHash() {
        return hash;
    }

    @Override
    public String getPreviousBlockHash() {
        return previousblockhash;
    }

    @Override
    public BitcoinTransaction[] getTransactions() {
        BitcoinTransaction[] transactions = new BitcoinTransaction[tx.length];
// Path: blockchain-api/src/main/java/uk/dsxt/bb/datamodel/blockchain/BlockchainBlock.java
// public interface BlockchainBlock {
//     String hash = Strings.EMPTY;
//     String previousBlockHash = Strings.EMPTY;
//     BlockchainTransaction[] transactions = new BlockchainTransaction[0];
//     long time = 0L;
// 
//     default String getHash() {
//         return hash;
//     }
// 
//     default String getPreviousBlockHash() {
//         return previousBlockHash;
//     }
// 
//     default BlockchainTransaction[] getTransactions() {
//         return transactions;
//     }
// 
//     default long getTime() {
//         return time;
//     }
// }


// Path: blockchain-api/src/main/java/uk/dsxt/bb/datamodel/bitcoin/BitcoinBlock.java
import lombok.Data;
import uk.dsxt.bb.datamodel.blockchain.BlockchainBlock;
import java.math.BigDecimal;

    long strippedsize;
    long size;
    long weight;
    long height;
    long version;
    String versionHex;
    String merkleroot;
    String[] tx;
    long time;
    long mediantime;
    long nonce;
    String bits;
    BigDecimal difficulty;
    String chainwork;
    String previousblockhash;
    String nextblockhash;

    @Override
    public String getHash() {
        return hash;
    }

    @Override
    public String getPreviousBlockHash() {
        return previousblockhash;
    }

    @Override
    public BitcoinTransaction[] getTransactions() {
        BitcoinTransaction[] transactions = new BitcoinTransaction[tx.length];
        for (int i = 0; i < tx.length; i++) {