-
- All Implemented Interfaces:
-
com.google.protobuf.MessageLiteOrBuilder
public interface CompactFormats.CompactBlockOrBuilder implements MessageLiteOrBuilder
-
-
Method Summary
Modifier and Type Method Description abstract intgetProtoVersion()the version of this wire format, for storageuint32 protoVersion = 1;abstract longgetHeight()the height of this blockuint64 height = 2;abstract ByteStringgetHash()the ID (hash) of this block, same as in block explorersbytes hash = 3;abstract ByteStringgetPrevHash()the ID (hash) of this block's predecessorbytes prevHash = 4;abstract intgetTime()Unix epoch time when the block was mineduint32 time = 5;abstract ByteStringgetHeader()(hash, prevHash, and time) OR (full header)bytes header = 6;abstract List<CompactFormats.CompactTx>getVtxList()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;abstract CompactFormats.CompactTxgetVtx(int index)zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;abstract intgetVtxCount()zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;abstract booleanhasChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;abstract CompactFormats.ChainMetadatagetChainMetadata()information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;-
-
Method Detail
-
getProtoVersion
abstract int getProtoVersion()
the version of this wire format, for storageuint32 protoVersion = 1;
-
getHeight
abstract long getHeight()
the height of this blockuint64 height = 2;
-
getHash
abstract ByteString getHash()
the ID (hash) of this block, same as in block explorersbytes hash = 3;
-
getPrevHash
abstract ByteString getPrevHash()
the ID (hash) of this block's predecessorbytes prevHash = 4;
-
getTime
abstract int getTime()
Unix epoch time when the block was mineduint32 time = 5;
-
getHeader
abstract ByteString getHeader()
(hash, prevHash, and time) OR (full header)bytes header = 6;
-
getVtxList
abstract List<CompactFormats.CompactTx> getVtxList()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtx
abstract CompactFormats.CompactTx getVtx(int index)
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
getVtxCount
abstract int getVtxCount()
zero or more compact transactions from this blockrepeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
-
hasChainMetadata
abstract boolean hasChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
getChainMetadata
abstract CompactFormats.ChainMetadata getChainMetadata()
information about the state of the chain as of this block.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
-
-
-
-