Package 

Interface CompactFormats.CompactBlockOrBuilder

    • Method Summary

      Modifier and Type Method Description
      abstract int getProtoVersion()
      the version of this wire format, for storage
      
      uint32 protoVersion = 1;
      abstract long getHeight()
      the height of this block
      
      uint64 height = 2;
      abstract ByteString getHash()
      the ID (hash) of this block, same as in block explorers
      
      bytes hash = 3;
      abstract ByteString getPrevHash()
      the ID (hash) of this block's predecessor
      
      bytes prevHash = 4;
      abstract int getTime()
      Unix epoch time when the block was mined
      
      uint32 time = 5;
      abstract ByteString getHeader()
      (hash, prevHash, and time) OR (full header)
      
      bytes header = 6;
      abstract List<CompactFormats.CompactTx> getVtxList()
      zero or more compact transactions from this block
      
      repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
      abstract CompactFormats.CompactTx getVtx(int index)
      zero or more compact transactions from this block
      
      repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
      abstract int getVtxCount()
      zero or more compact transactions from this block
      
      repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
      abstract boolean hasChainMetadata()
      information about the state of the chain as of this block
      
      .cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
      abstract CompactFormats.ChainMetadata getChainMetadata()
      information about the state of the chain as of this block
      
      .cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;
      • Methods inherited from class com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getProtoVersion

         abstract int getProtoVersion()
        the version of this wire format, for storage
        
        uint32 protoVersion = 1;
      • getHeight

         abstract long getHeight()
        the height of this block
        
        uint64 height = 2;
      • getHash

         abstract ByteString getHash()
        the ID (hash) of this block, same as in block explorers
        
        bytes hash = 3;
      • getPrevHash

         abstract ByteString getPrevHash()
        the ID (hash) of this block's predecessor
        
        bytes prevHash = 4;
      • getTime

         abstract int getTime()
        Unix epoch time when the block was mined
        
        uint32 time = 5;
      • getHeader

         abstract ByteString getHeader()
        (hash, prevHash, and time) OR (full header)
        
        bytes header = 6;
      • getVtx

         abstract CompactFormats.CompactTx getVtx(int index)
        zero or more compact transactions from this block
        
        repeated .cash.z.wallet.sdk.rpc.CompactTx vtx = 7;
      • getVtxCount

         abstract int getVtxCount()
        zero or more compact transactions from this block
        
        repeated .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;