Class EthBlock.Block

  • Enclosing class:
    EthBlock

    public static class EthBlock.Block
    extends java.lang.Object
    • Constructor Detail

      • Block

        public Block()
      • Block

        public Block​(java.lang.String number,
                     java.lang.String hash,
                     java.lang.String parentHash,
                     java.lang.String nonce,
                     java.lang.String sha3Uncles,
                     java.lang.String logsBloom,
                     java.lang.String transactionsRoot,
                     java.lang.String stateRoot,
                     java.lang.String receiptsRoot,
                     java.lang.String author,
                     java.lang.String miner,
                     java.lang.String mixHash,
                     java.lang.String difficulty,
                     java.lang.String totalDifficulty,
                     java.lang.String extraData,
                     java.lang.String size,
                     java.lang.String gasLimit,
                     java.lang.String gasUsed,
                     java.lang.String timestamp,
                     java.util.List<EthBlock.TransactionResult> transactions,
                     java.util.List<java.lang.String> uncles,
                     java.util.List<java.lang.String> sealFields)
        Parameters:
        number -
        hash -
        parentHash -
        nonce -
        sha3Uncles -
        logsBloom -
        transactionsRoot -
        stateRoot -
        receiptsRoot -
        author -
        miner -
        mixHash -
        difficulty -
        totalDifficulty -
        extraData -
        size -
        gasLimit -
        gasUsed -
        timestamp -
        transactions -
        uncles -
        sealFields -
    • Method Detail

      • getNumber

        public java.math.BigInteger getNumber()
        Returns:
      • getNumberRaw

        public java.lang.String getNumberRaw()
        Returns:
      • setNumber

        public void setNumber​(java.lang.String number)
        Parameters:
        number -
      • getHash

        public java.lang.String getHash()
        Returns:
      • setHash

        public void setHash​(java.lang.String hash)
        Parameters:
        hash -
      • getParentHash

        public java.lang.String getParentHash()
        Returns:
      • setParentHash

        public void setParentHash​(java.lang.String parentHash)
        Parameters:
        parentHash -
      • getNonce

        public java.math.BigInteger getNonce()
        Returns:
      • getNonceRaw

        public java.lang.String getNonceRaw()
        Returns:
      • setNonce

        public void setNonce​(java.lang.String nonce)
        Parameters:
        nonce -
      • getSha3Uncles

        public java.lang.String getSha3Uncles()
        Returns:
      • setSha3Uncles

        public void setSha3Uncles​(java.lang.String sha3Uncles)
        Parameters:
        sha3Uncles -
      • getLogsBloom

        public java.lang.String getLogsBloom()
        Returns:
      • setLogsBloom

        public void setLogsBloom​(java.lang.String logsBloom)
        Parameters:
        logsBloom -
      • getTransactionsRoot

        public java.lang.String getTransactionsRoot()
        Returns:
      • setTransactionsRoot

        public void setTransactionsRoot​(java.lang.String transactionsRoot)
        Parameters:
        transactionsRoot -
      • getStateRoot

        public java.lang.String getStateRoot()
        Returns:
      • setStateRoot

        public void setStateRoot​(java.lang.String stateRoot)
        Parameters:
        stateRoot -
      • getReceiptsRoot

        public java.lang.String getReceiptsRoot()
        Returns:
      • setReceiptsRoot

        public void setReceiptsRoot​(java.lang.String receiptsRoot)
        Parameters:
        receiptsRoot -
      • getAuthor

        public java.lang.String getAuthor()
        Returns:
      • setAuthor

        public void setAuthor​(java.lang.String author)
        Parameters:
        author -
      • getMiner

        public java.lang.String getMiner()
        Returns:
      • setMiner

        public void setMiner​(java.lang.String miner)
        Parameters:
        miner -
      • getMixHash

        public java.lang.String getMixHash()
        Returns:
      • setMixHash

        public void setMixHash​(java.lang.String mixHash)
        Parameters:
        mixHash -
      • getDifficulty

        public java.math.BigInteger getDifficulty()
        Returns:
      • getDifficultyRaw

        public java.lang.String getDifficultyRaw()
        Returns:
      • setDifficulty

        public void setDifficulty​(java.lang.String difficulty)
        Parameters:
        difficulty -
      • getTotalDifficulty

        public java.math.BigInteger getTotalDifficulty()
        Returns:
      • getTotalDifficultyRaw

        public java.lang.String getTotalDifficultyRaw()
        Returns:
      • setTotalDifficulty

        public void setTotalDifficulty​(java.lang.String totalDifficulty)
        Parameters:
        totalDifficulty -
      • getExtraData

        public java.lang.String getExtraData()
        Returns:
      • setExtraData

        public void setExtraData​(java.lang.String extraData)
        Parameters:
        extraData -
      • getSize

        public java.math.BigInteger getSize()
        Returns:
      • getSizeRaw

        public java.lang.String getSizeRaw()
        Returns:
      • setSize

        public void setSize​(java.lang.String size)
        Parameters:
        size -
      • getGasLimit

        public java.math.BigInteger getGasLimit()
        Returns:
      • getGasLimitRaw

        public java.lang.String getGasLimitRaw()
        Returns:
      • setGasLimit

        public void setGasLimit​(java.lang.String gasLimit)
        Parameters:
        gasLimit -
      • getGasUsed

        public java.math.BigInteger getGasUsed()
        Returns:
      • getGasUsedRaw

        public java.lang.String getGasUsedRaw()
        Returns:
      • setGasUsed

        public void setGasUsed​(java.lang.String gasUsed)
        Parameters:
        gasUsed -
      • getTimestamp

        public java.math.BigInteger getTimestamp()
        Returns:
      • getTimestampRaw

        public java.lang.String getTimestampRaw()
        Returns:
      • setTimestamp

        public void setTimestamp​(java.lang.String timestamp)
        Parameters:
        timestamp -
      • setTransactions

        public void setTransactions​(java.util.List<EthBlock.TransactionResult> transactions)
        Parameters:
        transactions -
      • getUncles

        public java.util.List<java.lang.String> getUncles()
        Returns:
      • setUncles

        public void setUncles​(java.util.List<java.lang.String> uncles)
        Parameters:
        uncles -
      • getSealFields

        public java.util.List<java.lang.String> getSealFields()
        Returns:
      • setSealFields

        public void setSealFields​(java.util.List<java.lang.String> sealFields)
        Parameters:
        sealFields -
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object