Skip to content

Latest commit

 

History

History
282 lines (149 loc) · 9.48 KB

GetZilliqaBlockDetailsByBlockHashRI.md

File metadata and controls

282 lines (149 loc) · 9.48 KB

GetZilliqaBlockDetailsByBlockHashRI

Properties

Name Type Description Notes
BlockHeight int32 Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block".
Difficulty string Defines how difficult it is for a specific miner to mine the block.
DsBlock int32 Represents the Directory Service block which contains metadata about the miners who participate in the consensus protocol.
DsDifficulty string Defines how difficult it is to mine the dsBlocks.
DsLeader string Represents a part of the DS Committee which leads the consensus protocol for the epoch.
GasLimit int32 Represents the maximum amount of gas allowed in the block in order to determine how many transactions it can fit.
GasUsed int32 Defines how much of the gas for the block has been used.
MicroBlocks []string
NextBlockHash string Defines the hash of the next block from the specific blockchain.
PreviousBlockHash string Represents the hash of the previous block, also known as the parent block.
Timestamp int32 Defines the exact date/time when this block was mined in Unix Timestamp.
TransactionsCount int32 Represents the total number of all transactions as part of this block.

Methods

NewGetZilliqaBlockDetailsByBlockHashRI

func NewGetZilliqaBlockDetailsByBlockHashRI(blockHeight int32, difficulty string, dsBlock int32, dsDifficulty string, dsLeader string, gasLimit int32, gasUsed int32, microBlocks []string, nextBlockHash string, previousBlockHash string, timestamp int32, transactionsCount int32, ) *GetZilliqaBlockDetailsByBlockHashRI

NewGetZilliqaBlockDetailsByBlockHashRI instantiates a new GetZilliqaBlockDetailsByBlockHashRI object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewGetZilliqaBlockDetailsByBlockHashRIWithDefaults

func NewGetZilliqaBlockDetailsByBlockHashRIWithDefaults() *GetZilliqaBlockDetailsByBlockHashRI

NewGetZilliqaBlockDetailsByBlockHashRIWithDefaults instantiates a new GetZilliqaBlockDetailsByBlockHashRI object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetBlockHeight

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetBlockHeight() int32

GetBlockHeight returns the BlockHeight field if non-nil, zero value otherwise.

GetBlockHeightOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetBlockHeightOk() (*int32, bool)

GetBlockHeightOk returns a tuple with the BlockHeight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBlockHeight

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetBlockHeight(v int32)

SetBlockHeight sets BlockHeight field to given value.

GetDifficulty

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDifficulty() string

GetDifficulty returns the Difficulty field if non-nil, zero value otherwise.

GetDifficultyOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDifficultyOk() (*string, bool)

GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDifficulty

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetDifficulty(v string)

SetDifficulty sets Difficulty field to given value.

GetDsBlock

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsBlock() int32

GetDsBlock returns the DsBlock field if non-nil, zero value otherwise.

GetDsBlockOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsBlockOk() (*int32, bool)

GetDsBlockOk returns a tuple with the DsBlock field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDsBlock

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetDsBlock(v int32)

SetDsBlock sets DsBlock field to given value.

GetDsDifficulty

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsDifficulty() string

GetDsDifficulty returns the DsDifficulty field if non-nil, zero value otherwise.

GetDsDifficultyOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsDifficultyOk() (*string, bool)

GetDsDifficultyOk returns a tuple with the DsDifficulty field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDsDifficulty

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetDsDifficulty(v string)

SetDsDifficulty sets DsDifficulty field to given value.

GetDsLeader

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsLeader() string

GetDsLeader returns the DsLeader field if non-nil, zero value otherwise.

GetDsLeaderOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetDsLeaderOk() (*string, bool)

GetDsLeaderOk returns a tuple with the DsLeader field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDsLeader

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetDsLeader(v string)

SetDsLeader sets DsLeader field to given value.

GetGasLimit

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetGasLimit() int32

GetGasLimit returns the GasLimit field if non-nil, zero value otherwise.

GetGasLimitOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetGasLimitOk() (*int32, bool)

GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetGasLimit

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetGasLimit(v int32)

SetGasLimit sets GasLimit field to given value.

GetGasUsed

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetGasUsed() int32

GetGasUsed returns the GasUsed field if non-nil, zero value otherwise.

GetGasUsedOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetGasUsedOk() (*int32, bool)

GetGasUsedOk returns a tuple with the GasUsed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetGasUsed

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetGasUsed(v int32)

SetGasUsed sets GasUsed field to given value.

GetMicroBlocks

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetMicroBlocks() []string

GetMicroBlocks returns the MicroBlocks field if non-nil, zero value otherwise.

GetMicroBlocksOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetMicroBlocksOk() (*[]string, bool)

GetMicroBlocksOk returns a tuple with the MicroBlocks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMicroBlocks

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetMicroBlocks(v []string)

SetMicroBlocks sets MicroBlocks field to given value.

GetNextBlockHash

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetNextBlockHash() string

GetNextBlockHash returns the NextBlockHash field if non-nil, zero value otherwise.

GetNextBlockHashOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetNextBlockHashOk() (*string, bool)

GetNextBlockHashOk returns a tuple with the NextBlockHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNextBlockHash

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetNextBlockHash(v string)

SetNextBlockHash sets NextBlockHash field to given value.

GetPreviousBlockHash

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetPreviousBlockHash() string

GetPreviousBlockHash returns the PreviousBlockHash field if non-nil, zero value otherwise.

GetPreviousBlockHashOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetPreviousBlockHashOk() (*string, bool)

GetPreviousBlockHashOk returns a tuple with the PreviousBlockHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPreviousBlockHash

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetPreviousBlockHash(v string)

SetPreviousBlockHash sets PreviousBlockHash field to given value.

GetTimestamp

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetTimestamp() int32

GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.

GetTimestampOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetTimestampOk() (*int32, bool)

GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTimestamp

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetTimestamp(v int32)

SetTimestamp sets Timestamp field to given value.

GetTransactionsCount

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetTransactionsCount() int32

GetTransactionsCount returns the TransactionsCount field if non-nil, zero value otherwise.

GetTransactionsCountOk

func (o *GetZilliqaBlockDetailsByBlockHashRI) GetTransactionsCountOk() (*int32, bool)

GetTransactionsCountOk returns a tuple with the TransactionsCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTransactionsCount

func (o *GetZilliqaBlockDetailsByBlockHashRI) SetTransactionsCount(v int32)

SetTransactionsCount sets TransactionsCount field to given value.

[Back to Model list] [Back to API list] [Back to README]