BlockListResponse

July 14, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
Limitint32The number of blocks to return
Offsetint32The number to blocks to skip (starting at `0`)[default to 0]
Totalint32The number of blocks available
Results[]Block

Methods

NewBlockListResponse

func NewBlockListResponse(limit int32, offset int32, total int32, results []Block, ) *BlockListResponse

NewBlockListResponse instantiates a new BlockListResponse 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

NewBlockListResponseWithDefaults

func NewBlockListResponseWithDefaults() *BlockListResponse

NewBlockListResponseWithDefaults instantiates a new BlockListResponse 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

GetLimit

func (o *BlockListResponse) GetLimit() int32

GetLimit returns the Limit field if non-nil, zero value otherwise.

GetLimitOk

func (o *BlockListResponse) GetLimitOk() (*int32, bool)

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

SetLimit

func (o *BlockListResponse) SetLimit(v int32)

SetLimit sets Limit field to given value.

GetOffset

func (o *BlockListResponse) GetOffset() int32

GetOffset returns the Offset field if non-nil, zero value otherwise.

GetOffsetOk

func (o *BlockListResponse) GetOffsetOk() (*int32, bool)

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

SetOffset

func (o *BlockListResponse) SetOffset(v int32)

SetOffset sets Offset field to given value.

GetTotal

func (o *BlockListResponse) GetTotal() int32

GetTotal returns the Total field if non-nil, zero value otherwise.

GetTotalOk

func (o *BlockListResponse) GetTotalOk() (*int32, bool)

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

SetTotal

func (o *BlockListResponse) SetTotal(v int32)

SetTotal sets Total field to given value.

GetResults

func (o *BlockListResponse) GetResults() []Block

GetResults returns the Results field if non-nil, zero value otherwise.

GetResultsOk

func (o *BlockListResponse) GetResultsOk() (*[]Block, bool)

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

SetResults

func (o *BlockListResponse) SetResults(v []Block)

SetResults sets Results field to given value.

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