Class EthBlock.Block
- java.lang.Object
-
- org.web3j.protocol.core.methods.response.EthBlock.Block
-
- Enclosing class:
- EthBlock
public static class EthBlock.Block extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Block()
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAuthor()
java.math.BigInteger
getDifficulty()
java.lang.String
getDifficultyRaw()
java.lang.String
getExtraData()
java.math.BigInteger
getGasLimit()
java.lang.String
getGasLimitRaw()
java.math.BigInteger
getGasUsed()
java.lang.String
getGasUsedRaw()
java.lang.String
getHash()
java.lang.String
getLogsBloom()
java.lang.String
getMiner()
java.lang.String
getMixHash()
java.math.BigInteger
getNonce()
java.lang.String
getNonceRaw()
java.math.BigInteger
getNumber()
java.lang.String
getNumberRaw()
java.lang.String
getParentHash()
java.lang.String
getReceiptsRoot()
java.util.List<java.lang.String>
getSealFields()
java.lang.String
getSha3Uncles()
java.math.BigInteger
getSize()
java.lang.String
getSizeRaw()
java.lang.String
getStateRoot()
java.math.BigInteger
getTimestamp()
java.lang.String
getTimestampRaw()
java.math.BigInteger
getTotalDifficulty()
java.lang.String
getTotalDifficultyRaw()
java.util.List<EthBlock.TransactionResult>
getTransactions()
java.lang.String
getTransactionsRoot()
java.util.List<java.lang.String>
getUncles()
int
hashCode()
void
setAuthor(java.lang.String author)
void
setDifficulty(java.lang.String difficulty)
void
setExtraData(java.lang.String extraData)
void
setGasLimit(java.lang.String gasLimit)
void
setGasUsed(java.lang.String gasUsed)
void
setHash(java.lang.String hash)
void
setLogsBloom(java.lang.String logsBloom)
void
setMiner(java.lang.String miner)
void
setMixHash(java.lang.String mixHash)
void
setNonce(java.lang.String nonce)
void
setNumber(java.lang.String number)
void
setParentHash(java.lang.String parentHash)
void
setReceiptsRoot(java.lang.String receiptsRoot)
void
setSealFields(java.util.List<java.lang.String> sealFields)
void
setSha3Uncles(java.lang.String sha3Uncles)
void
setSize(java.lang.String size)
void
setStateRoot(java.lang.String stateRoot)
void
setTimestamp(java.lang.String timestamp)
void
setTotalDifficulty(java.lang.String totalDifficulty)
void
setTransactions(java.util.List<EthBlock.TransactionResult> transactions)
void
setTransactionsRoot(java.lang.String transactionsRoot)
void
setUncles(java.util.List<java.lang.String> uncles)
-
-
-
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
-
-
getTransactions
public java.util.List<EthBlock.TransactionResult> getTransactions()
- Returns:
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-