Class Block
java.lang.Object
com.algorand.algosdk.algod.client.model.Block
@Deprecated
public class Block
extends java.lang.Object
Deprecated.
Block contains a block information
-
Constructor Summary
Constructors Constructor Description Block()
Deprecated. -
Method Summary
Modifier and Type Method Description Block
currentProtocol(java.lang.String currentProtocol)
Deprecated.boolean
equals(java.lang.Object o)
Deprecated.Block
frac(java.math.BigInteger frac)
Deprecated.java.lang.String
getCurrentProtocol()
Deprecated.CurrentProtocol is a string that represents the current protocoljava.math.BigInteger
getFrac()
Deprecated.The number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.java.lang.String
getHash()
Deprecated.Hash is the current block hashjava.lang.String
getNextProtocol()
Deprecated.NextProtocol is a string that represents the next proposed protocoljava.math.BigInteger
getNextProtocolApprovals()
Deprecated.NextProtocolApprovals is the number of blocks which approved the protocol upgradejava.math.BigInteger
getNextProtocolSwitchOn()
Deprecated.NextProtocolSwitchOn is the round on which the protocol upgrade will take effectjava.math.BigInteger
getNextProtocolVoteBefore()
Deprecated.NextProtocolVoteBefore is the deadline round for this protocol upgrade (No votes will be consider after this round)java.math.BigInteger
getPeriod()
Deprecated.Period is the period on which the block was confirmedjava.lang.String
getPreviousBlockHash()
Deprecated.PreviousBlockHash is the previous block hashjava.lang.String
getProposer()
Deprecated.Proposer is the address of this block proposerjava.math.BigInteger
getRate()
Deprecated.The number of new MicroAlgos added to the participation stake from rewards at the next round.java.math.BigInteger
getReward()
Deprecated.RewardsLevel specifies how many rewards, in MicroAlgos, have been distributed to each config.Protocol.RewardUnit of MicroAlgos since genesis.java.math.BigInteger
getRound()
Deprecated.Round is the current round on which this block was appended to the chainjava.lang.String
getSeed()
Deprecated.Seed is the sortition seedjava.math.BigInteger
getTimestamp()
Deprecated.TimeStamp in seconds since epochjava.lang.String
getTxnRoot()
Deprecated.TransactionsRoot authenticates the set of transactions appearing in the block.TransactionList
getTxns()
Deprecated.Get txnsjava.lang.String
getUpgradePropose()
Deprecated.UpgradePropose indicates a proposed upgradeBlock
hash(java.lang.String hash)
Deprecated.int
hashCode()
Deprecated.java.lang.Boolean
isUpgradeApprove()
Deprecated.UpgradeApprove indicates a yes vote for the current proposalBlock
nextProtocol(java.lang.String nextProtocol)
Deprecated.Block
nextProtocolApprovals(java.math.BigInteger nextProtocolApprovals)
Deprecated.Block
nextProtocolSwitchOn(java.math.BigInteger nextProtocolSwitchOn)
Deprecated.Block
nextProtocolVoteBefore(java.math.BigInteger nextProtocolVoteBefore)
Deprecated.Block
period(java.math.BigInteger period)
Deprecated.Block
previousBlockHash(java.lang.String previousBlockHash)
Deprecated.Block
proposer(java.lang.String proposer)
Deprecated.Block
rate(java.math.BigInteger rate)
Deprecated.Block
reward(java.math.BigInteger reward)
Deprecated.Block
round(java.math.BigInteger round)
Deprecated.Block
seed(java.lang.String seed)
Deprecated.void
setCurrentProtocol(java.lang.String currentProtocol)
Deprecated.void
setFrac(java.math.BigInteger frac)
Deprecated.void
setHash(java.lang.String hash)
Deprecated.void
setNextProtocol(java.lang.String nextProtocol)
Deprecated.void
setNextProtocolApprovals(java.math.BigInteger nextProtocolApprovals)
Deprecated.void
setNextProtocolSwitchOn(java.math.BigInteger nextProtocolSwitchOn)
Deprecated.void
setNextProtocolVoteBefore(java.math.BigInteger nextProtocolVoteBefore)
Deprecated.void
setPeriod(java.math.BigInteger period)
Deprecated.void
setPreviousBlockHash(java.lang.String previousBlockHash)
Deprecated.void
setProposer(java.lang.String proposer)
Deprecated.void
setRate(java.math.BigInteger rate)
Deprecated.void
setReward(java.math.BigInteger reward)
Deprecated.void
setRound(java.math.BigInteger round)
Deprecated.void
setSeed(java.lang.String seed)
Deprecated.void
setTimestamp(java.math.BigInteger timestamp)
Deprecated.void
setTxnRoot(java.lang.String txnRoot)
Deprecated.void
setTxns(TransactionList txns)
Deprecated.void
setUpgradeApprove(java.lang.Boolean upgradeApprove)
Deprecated.void
setUpgradePropose(java.lang.String upgradePropose)
Deprecated.Block
timestamp(java.math.BigInteger timestamp)
Deprecated.java.lang.String
toString()
Deprecated.Block
txnRoot(java.lang.String txnRoot)
Deprecated.Block
txns(TransactionList txns)
Deprecated.Block
upgradeApprove(java.lang.Boolean upgradeApprove)
Deprecated.Block
upgradePropose(java.lang.String upgradePropose)
Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Block
public Block()Deprecated.
-
-
Method Details
-
currentProtocol
Deprecated. -
getCurrentProtocol
public java.lang.String getCurrentProtocol()Deprecated.CurrentProtocol is a string that represents the current protocol- Returns:
- currentProtocol
-
setCurrentProtocol
public void setCurrentProtocol(java.lang.String currentProtocol)Deprecated. -
frac
Deprecated. -
getFrac
public java.math.BigInteger getFrac()Deprecated.The number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.- Returns:
- frac
-
setFrac
public void setFrac(java.math.BigInteger frac)Deprecated. -
hash
Deprecated. -
getHash
public java.lang.String getHash()Deprecated.Hash is the current block hash- Returns:
- hash
-
setHash
public void setHash(java.lang.String hash)Deprecated. -
nextProtocol
Deprecated. -
getNextProtocol
public java.lang.String getNextProtocol()Deprecated.NextProtocol is a string that represents the next proposed protocol- Returns:
- nextProtocol
-
setNextProtocol
public void setNextProtocol(java.lang.String nextProtocol)Deprecated. -
nextProtocolApprovals
Deprecated. -
getNextProtocolApprovals
public java.math.BigInteger getNextProtocolApprovals()Deprecated.NextProtocolApprovals is the number of blocks which approved the protocol upgrade- Returns:
- nextProtocolApprovals
-
setNextProtocolApprovals
public void setNextProtocolApprovals(java.math.BigInteger nextProtocolApprovals)Deprecated. -
nextProtocolSwitchOn
Deprecated. -
getNextProtocolSwitchOn
public java.math.BigInteger getNextProtocolSwitchOn()Deprecated.NextProtocolSwitchOn is the round on which the protocol upgrade will take effect- Returns:
- nextProtocolSwitchOn
-
setNextProtocolSwitchOn
public void setNextProtocolSwitchOn(java.math.BigInteger nextProtocolSwitchOn)Deprecated. -
nextProtocolVoteBefore
Deprecated. -
getNextProtocolVoteBefore
public java.math.BigInteger getNextProtocolVoteBefore()Deprecated.NextProtocolVoteBefore is the deadline round for this protocol upgrade (No votes will be consider after this round)- Returns:
- nextProtocolVoteBefore
-
setNextProtocolVoteBefore
public void setNextProtocolVoteBefore(java.math.BigInteger nextProtocolVoteBefore)Deprecated. -
period
Deprecated. -
getPeriod
public java.math.BigInteger getPeriod()Deprecated.Period is the period on which the block was confirmed- Returns:
- period
-
setPeriod
public void setPeriod(java.math.BigInteger period)Deprecated. -
previousBlockHash
Deprecated. -
getPreviousBlockHash
public java.lang.String getPreviousBlockHash()Deprecated.PreviousBlockHash is the previous block hash- Returns:
- previousBlockHash
-
setPreviousBlockHash
public void setPreviousBlockHash(java.lang.String previousBlockHash)Deprecated. -
proposer
Deprecated. -
getProposer
public java.lang.String getProposer()Deprecated.Proposer is the address of this block proposer- Returns:
- proposer
-
setProposer
public void setProposer(java.lang.String proposer)Deprecated. -
rate
Deprecated. -
getRate
public java.math.BigInteger getRate()Deprecated.The number of new MicroAlgos added to the participation stake from rewards at the next round.- Returns:
- rate
-
setRate
public void setRate(java.math.BigInteger rate)Deprecated. -
reward
Deprecated. -
getReward
public java.math.BigInteger getReward()Deprecated.RewardsLevel specifies how many rewards, in MicroAlgos, have been distributed to each config.Protocol.RewardUnit of MicroAlgos since genesis.- Returns:
- reward
-
setReward
public void setReward(java.math.BigInteger reward)Deprecated. -
round
Deprecated. -
getRound
public java.math.BigInteger getRound()Deprecated.Round is the current round on which this block was appended to the chain- Returns:
- round
-
setRound
public void setRound(java.math.BigInteger round)Deprecated. -
seed
Deprecated. -
getSeed
public java.lang.String getSeed()Deprecated.Seed is the sortition seed- Returns:
- seed
-
setSeed
public void setSeed(java.lang.String seed)Deprecated. -
timestamp
Deprecated. -
getTimestamp
public java.math.BigInteger getTimestamp()Deprecated.TimeStamp in seconds since epoch- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(java.math.BigInteger timestamp)Deprecated. -
txnRoot
Deprecated. -
getTxnRoot
public java.lang.String getTxnRoot()Deprecated.TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it's the root of a merkle tree whose leaves are the block's Txids, in lexicographic order. For the empty block, it's 0. Note that the TxnRoot does not authenticate the signatures on the transactions, only the transactions themselves. Two blocks with the same transactions but in a different order and with different signatures will have the same TxnRoot.- Returns:
- txnRoot
-
setTxnRoot
public void setTxnRoot(java.lang.String txnRoot)Deprecated. -
txns
Deprecated. -
getTxns
Deprecated.Get txns- Returns:
- txns
-
setTxns
Deprecated. -
upgradeApprove
Deprecated. -
isUpgradeApprove
public java.lang.Boolean isUpgradeApprove()Deprecated.UpgradeApprove indicates a yes vote for the current proposal- Returns:
- upgradeApprove
-
setUpgradeApprove
public void setUpgradeApprove(java.lang.Boolean upgradeApprove)Deprecated. -
upgradePropose
Deprecated. -
getUpgradePropose
public java.lang.String getUpgradePropose()Deprecated.UpgradePropose indicates a proposed upgrade- Returns:
- upgradePropose
-
setUpgradePropose
public void setUpgradePropose(java.lang.String upgradePropose)Deprecated. -
equals
public boolean equals(java.lang.Object o)Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()Deprecated.- Overrides:
toString
in classjava.lang.Object
-