-
- All Implemented Interfaces:
-
cash.z.wallet.sdk.internal.rpc.CompactFormats.CompactBlockOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
public final class CompactFormats.CompactBlock extends GeneratedMessageLite<CompactFormats.CompactBlock, CompactFormats.CompactBlock.Builder> implements CompactFormats.CompactBlockOrBuilder
Protobuf typeCompactBlock is a packaging of ONLY the data from a block that's needed to: 1. Detect a payment to your shielded Sapling address 2. Detect a spend of your shielded Sapling notes 3. Update your witnesses to generate new Sapling spend proofs.{@code cash.z.wallet.sdk.rpc.CompactBlock}
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompactFormats.CompactBlock.Builder
Protobuf typeCompactBlock is a packaging of ONLY the data from a block that's needed to: 1. Detect a payment to your shielded Sapling address 2. Detect a spend of your shielded Sapling notes 3. Update your witnesses to generate new Sapling spend proofs.{@code cash.z.wallet.sdk.rpc.CompactBlock}
-
Field Summary
Fields Modifier and Type Field Description public final static intPROTOVERSION_FIELD_NUMBERpublic final static intHEIGHT_FIELD_NUMBERpublic final static intHASH_FIELD_NUMBERpublic final static intPREVHASH_FIELD_NUMBERpublic final static intTIME_FIELD_NUMBERpublic final static intHEADER_FIELD_NUMBERpublic final static intVTX_FIELD_NUMBERpublic final static intCHAINMETADATA_FIELD_NUMBER
-
Method Summary
Modifier and Type Method Description intgetProtoVersion()the version of this wire format, for storageuint32 protoVersion = 1;longgetHeight()the height of this blockuint64 height = 2;ByteStringgetHash()the ID (hash) of this block, same as in block explorersbytes hash = 3;ByteStringgetPrevHash()the ID (hash) of this block's predecessorbytes prevHash = 4;intgetTime()Unix epoch time when the block was mineduint32 time = 5;ByteStringgetHeader()(hash, prevHash, and time) OR (full header)bytes header = 6;List<CompactFormats.CompactTx>getVtxList()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;List<out CompactFormats.CompactTxOrBuilder>getVtxOrBuilderList()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;intgetVtxCount()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactTxgetVtx(int index)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;CompactFormats.CompactTxOrBuildergetVtxOrBuilder(int index)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;booleanhasChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;CompactFormats.ChainMetadatagetChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;static CompactFormats.CompactBlockparseFrom(ByteBuffer data)static CompactFormats.CompactBlockparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlockparseFrom(ByteString data)static CompactFormats.CompactBlockparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlockparseFrom(Array<byte> data)static CompactFormats.CompactBlockparseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlockparseFrom(InputStream input)static CompactFormats.CompactBlockparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlockparseDelimitedFrom(InputStream input)static CompactFormats.CompactBlockparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlockparseFrom(CodedInputStream input)static CompactFormats.CompactBlockparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static CompactFormats.CompactBlock.BuildernewBuilder()static CompactFormats.CompactBlock.BuildernewBuilder(CompactFormats.CompactBlock prototype)static CompactFormats.CompactBlockgetDefaultInstance()static Parser<CompactFormats.CompactBlock>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, toBuilder, toString, writeTo -
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo -
Methods inherited from class com.google.protobuf.MessageLite
getParserForType, newBuilderForType, toBuilder -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getProtoVersion
int getProtoVersion()
the version of this wire format, for storageuint32 protoVersion = 1;
-
getHeight
long getHeight()
the height of this blockuint64 height = 2;
-
getHash
ByteString getHash()
the ID (hash) of this block, same as in block explorersbytes hash = 3;
-
getPrevHash
ByteString getPrevHash()
the ID (hash) of this block's predecessorbytes prevHash = 4;
-
getTime
int getTime()
Unix epoch time when the block was mineduint32 time = 5;
-
getHeader
ByteString getHeader()
(hash, prevHash, and time) OR (full header)bytes header = 6;
-
getVtxList
List<CompactFormats.CompactTx> getVtxList()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtxOrBuilderList
List<out CompactFormats.CompactTxOrBuilder> getVtxOrBuilderList()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtxCount
int getVtxCount()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtx
CompactFormats.CompactTx getVtx(int index)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtxOrBuilder
CompactFormats.CompactTxOrBuilder getVtxOrBuilder(int index)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
hasChainMetadata
boolean hasChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
getChainMetadata
CompactFormats.ChainMetadata getChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
parseFrom
static CompactFormats.CompactBlock parseFrom(ByteBuffer data)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(ByteString data)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(Array<byte> data)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(InputStream input)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseDelimitedFrom
static CompactFormats.CompactBlock parseDelimitedFrom(InputStream input)
-
parseDelimitedFrom
static CompactFormats.CompactBlock parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(CodedInputStream input)
-
parseFrom
static CompactFormats.CompactBlock parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
-
newBuilder
static CompactFormats.CompactBlock.Builder newBuilder()
-
newBuilder
static CompactFormats.CompactBlock.Builder newBuilder(CompactFormats.CompactBlock prototype)
-
getDefaultInstance
static CompactFormats.CompactBlock getDefaultInstance()
-
parser
static Parser<CompactFormats.CompactBlock> parser()
-
-
-
-