Package org.hyperledger.fabric.sdk
Class BlockInfo.EnvelopeInfo
- java.lang.Object
-
- org.hyperledger.fabric.sdk.BlockInfo.EnvelopeInfo
-
- Direct Known Subclasses:
BlockInfo.TransactionEnvelopeInfo
- Enclosing class:
- BlockInfo
public class BlockInfo.EnvelopeInfo extends java.lang.ObjectWrappers Envelope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBlockInfo.EnvelopeInfo.IdentitiesInfo
-
Field Summary
Fields Modifier and Type Field Description protected org.hyperledger.fabric.protos.peer.PeerEvents.FilteredTransactionfilteredTx
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetChannelId()Get channel idBlockInfo.EnvelopeInfo.IdentitiesInfogetCreator()This is the creator or submitter of the transaction.longgetEpoch()Deprecated.byte[]getNonce()The nonce of the transaction.java.util.DategetTimestamp()Timestampjava.lang.StringgetTransactionID()The transaction IDBlockInfo.EnvelopeTypegetType()bytegetValidationCode()booleanisValid()
-
-
-
Method Detail
-
getChannelId
public java.lang.String getChannelId()
Get channel id- Returns:
- The channel id also referred to as channel name.
-
getCreator
public BlockInfo.EnvelopeInfo.IdentitiesInfo getCreator()
This is the creator or submitter of the transaction. Returns null for a filtered block.
-
getNonce
public byte[] getNonce()
The nonce of the transaction.- Returns:
- return null for filtered block.
-
getTransactionID
public java.lang.String getTransactionID()
The transaction ID- Returns:
- the transaction id.
-
getEpoch
public long getEpoch()
Deprecated.- Returns:
- epoch and -1 if filtered block.
-
getTimestamp
public java.util.Date getTimestamp()
Timestamp- Returns:
- timestamp and null if filtered block.
-
isValid
public boolean isValid()
- Returns:
- whether this Transaction is marked as TxValidationCode.VALID
-
getValidationCode
public byte getValidationCode()
- Returns:
- the validation code of this Transaction (enumeration TxValidationCode in Transaction.proto)
-
getType
public BlockInfo.EnvelopeType getType()
-
-