BlockSearchResultResultBlockData
July 14, 2024 ยท View on GitHub
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Canonical | bool | If the block lies within the canonical chain | |
| Hash | string | Refers to the hash of the block | |
| ParentBlockHash | string | ||
| BurnBlockTime | int32 | ||
| Height | int32 |
Methods
NewBlockSearchResultResultBlockData
func NewBlockSearchResultResultBlockData(canonical bool, hash string, parentBlockHash string, burnBlockTime int32, height int32, ) *BlockSearchResultResultBlockData
NewBlockSearchResultResultBlockData instantiates a new BlockSearchResultResultBlockData 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
NewBlockSearchResultResultBlockDataWithDefaults
func NewBlockSearchResultResultBlockDataWithDefaults() *BlockSearchResultResultBlockData
NewBlockSearchResultResultBlockDataWithDefaults instantiates a new BlockSearchResultResultBlockData 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
GetCanonical
func (o *BlockSearchResultResultBlockData) GetCanonical() bool
GetCanonical returns the Canonical field if non-nil, zero value otherwise.
GetCanonicalOk
func (o *BlockSearchResultResultBlockData) GetCanonicalOk() (*bool, bool)
GetCanonicalOk returns a tuple with the Canonical field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCanonical
func (o *BlockSearchResultResultBlockData) SetCanonical(v bool)
SetCanonical sets Canonical field to given value.
GetHash
func (o *BlockSearchResultResultBlockData) GetHash() string
GetHash returns the Hash field if non-nil, zero value otherwise.
GetHashOk
func (o *BlockSearchResultResultBlockData) GetHashOk() (*string, bool)
GetHashOk returns a tuple with the Hash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHash
func (o *BlockSearchResultResultBlockData) SetHash(v string)
SetHash sets Hash field to given value.
GetParentBlockHash
func (o *BlockSearchResultResultBlockData) GetParentBlockHash() string
GetParentBlockHash returns the ParentBlockHash field if non-nil, zero value otherwise.
GetParentBlockHashOk
func (o *BlockSearchResultResultBlockData) GetParentBlockHashOk() (*string, bool)
GetParentBlockHashOk returns a tuple with the ParentBlockHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetParentBlockHash
func (o *BlockSearchResultResultBlockData) SetParentBlockHash(v string)
SetParentBlockHash sets ParentBlockHash field to given value.
GetBurnBlockTime
func (o *BlockSearchResultResultBlockData) GetBurnBlockTime() int32
GetBurnBlockTime returns the BurnBlockTime field if non-nil, zero value otherwise.
GetBurnBlockTimeOk
func (o *BlockSearchResultResultBlockData) GetBurnBlockTimeOk() (*int32, bool)
GetBurnBlockTimeOk returns a tuple with the BurnBlockTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBurnBlockTime
func (o *BlockSearchResultResultBlockData) SetBurnBlockTime(v int32)
SetBurnBlockTime sets BurnBlockTime field to given value.
GetHeight
func (o *BlockSearchResultResultBlockData) GetHeight() int32
GetHeight returns the Height field if non-nil, zero value otherwise.
GetHeightOk
func (o *BlockSearchResultResultBlockData) GetHeightOk() (*int32, bool)
GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHeight
func (o *BlockSearchResultResultBlockData) SetHeight(v int32)
SetHeight sets Height field to given value.