-
public final class CompactBlockKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCompactBlockKt.Dsl.Companionpublic final classCompactBlockKt.Dsl.VtxProxyAn uninstantiable, behaviorless type to represent the field in generics.
-
Field Summary
Fields Modifier and Type Field Description private IntegerprotoVersionprivate Longheightprivate ByteStringhashprivate ByteStringprevHashprivate Integertimeprivate ByteStringheaderprivate final DslList<CompactFormats.CompactTx, CompactBlockKt.Dsl.VtxProxy>vtxprivate CompactFormats.ChainMetadatachainMetadataprivate final CompactFormats.ChainMetadatachainMetadataOrNull
-
Method Summary
Modifier and Type Method Description final IntegergetProtoVersion()final UnitsetProtoVersion(Integer protoVersion)final LonggetHeight()final UnitsetHeight(Long height)final ByteStringgetHash()final UnitsetHash(ByteString hash)final ByteStringgetPrevHash()final UnitsetPrevHash(ByteString prevHash)final IntegergetTime()final UnitsetTime(Integer time)final ByteStringgetHeader()final UnitsetHeader(ByteString header)final CompactFormats.ChainMetadatagetChainMetadata()final UnitsetChainMetadata(CompactFormats.ChainMetadata chainMetadata)final CompactFormats.ChainMetadatagetChainMetadataOrNull(CompactBlockKt.Dsl $self)final UnitclearProtoVersion()<pre> the version of this wire format, for storage </pre><code>uint32 protoVersion = 1;</code> final UnitclearHeight()<pre> the height of this block </pre><code>uint64 height = 2;</code> final UnitclearHash()<pre> the ID (hash) of this block, same as in block explorers </pre><code>bytes hash = 3;</code> final UnitclearPrevHash()<pre> the ID (hash) of this block's predecessor </pre><code>bytes prevHash = 4;</code> final UnitclearTime()<pre> Unix epoch time when the block was mined </pre><code>uint32 time = 5;</code> final UnitclearHeader()<pre> (hash, prevHash, and time) OR (full header) </pre><code>bytes header = 6;</code> final UnitclearChainMetadata()<pre> information about the state of the chain as of this block </pre><code>.cash.z.wallet.sdk.rpc. final BooleanhasChainMetadata()<pre> information about the state of the chain as of this block </pre><code>.cash.z.wallet.sdk.rpc. -
-
Method Detail
-
getProtoVersion
final Integer getProtoVersion()
-
setProtoVersion
final Unit setProtoVersion(Integer protoVersion)
-
getHash
final ByteString getHash()
-
getPrevHash
final ByteString getPrevHash()
-
setPrevHash
final Unit setPrevHash(ByteString prevHash)
-
getHeader
final ByteString getHeader()
-
getChainMetadata
final CompactFormats.ChainMetadata getChainMetadata()
-
setChainMetadata
final Unit setChainMetadata(CompactFormats.ChainMetadata chainMetadata)
-
getChainMetadataOrNull
final CompactFormats.ChainMetadata getChainMetadataOrNull(CompactBlockKt.Dsl $self)
-
clearProtoVersion
final Unit clearProtoVersion()
<pre> the version of this wire format, for storage </pre><code>uint32 protoVersion = 1;</code>
-
clearHeight
final Unit clearHeight()
<pre> the height of this block </pre><code>uint64 height = 2;</code>
-
clearHash
final Unit clearHash()
<pre> the ID (hash) of this block, same as in block explorers </pre><code>bytes hash = 3;</code>
-
clearPrevHash
final Unit clearPrevHash()
<pre> the ID (hash) of this block's predecessor </pre><code>bytes prevHash = 4;</code>
-
clearTime
final Unit clearTime()
<pre> Unix epoch time when the block was mined </pre><code>uint32 time = 5;</code>
-
clearHeader
final Unit clearHeader()
<pre> (hash, prevHash, and time) OR (full header) </pre><code>bytes header = 6;</code>
-
clearChainMetadata
final Unit clearChainMetadata()
<pre> information about the state of the chain as of this block </pre><code>.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;</code>
-
hasChainMetadata
final Boolean hasChainMetadata()
<pre> information about the state of the chain as of this block </pre><code>.cash.z.wallet.sdk.rpc.ChainMetadata chainMetadata = 8;</code>
-
-
-
-