Builder

class Builder
Info from block header
Protobuf type TW.Tron.Proto.BlockHeader

Functions

Link copied to clipboard
int64 number = 7;
Link copied to clipboard
hash of the parent
bytes parent_hash = 3;
Link copied to clipboard
creation timestamp
int64 timestamp = 1;
Link copied to clipboard
root
bytes tx_trie_root = 2;
Link copied to clipboard
int32 version = 10;
Link copied to clipboard
bytes witness_address = 9;
Link copied to clipboard
open fun getNumber(): Long
int64 number = 7;
Link copied to clipboard
open fun getParentHash(): ByteString
hash of the parent
bytes parent_hash = 3;
Link copied to clipboard
open fun getTimestamp(): Long
creation timestamp
int64 timestamp = 1;
Link copied to clipboard
open fun getTxTrieRoot(): ByteString
root
bytes tx_trie_root = 2;
Link copied to clipboard
open fun getVersion(): Int
int32 version = 10;
Link copied to clipboard
open fun getWitnessAddress(): ByteString
bytes witness_address = 9;
Link copied to clipboard
int64 number = 7;
Link copied to clipboard
open fun setParentHash(value: ByteString): Tron.BlockHeader.Builder
hash of the parent
bytes parent_hash = 3;
Link copied to clipboard
creation timestamp
int64 timestamp = 1;
Link copied to clipboard
open fun setTxTrieRoot(value: ByteString): Tron.BlockHeader.Builder
root
bytes tx_trie_root = 2;
Link copied to clipboard
int32 version = 10;
Link copied to clipboard
open fun setWitnessAddress(value: ByteString): Tron.BlockHeader.Builder
bytes witness_address = 9;