AverageBlockTimesResponse

July 14, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
Last1hfloat32Average block times over the last hour (in seconds)
Last24hfloat32Average block times over the last 24 hours (in seconds)
Last7dfloat32Average block times over the last 7 days (in seconds)
Last30dfloat32Average block times over the last 30 days (in seconds)

Methods

NewAverageBlockTimesResponse

func NewAverageBlockTimesResponse(last1h float32, last24h float32, last7d float32, last30d float32, ) *AverageBlockTimesResponse

NewAverageBlockTimesResponse instantiates a new AverageBlockTimesResponse 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

NewAverageBlockTimesResponseWithDefaults

func NewAverageBlockTimesResponseWithDefaults() *AverageBlockTimesResponse

NewAverageBlockTimesResponseWithDefaults instantiates a new AverageBlockTimesResponse 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

GetLast1h

func (o *AverageBlockTimesResponse) GetLast1h() float32

GetLast1h returns the Last1h field if non-nil, zero value otherwise.

GetLast1hOk

func (o *AverageBlockTimesResponse) GetLast1hOk() (*float32, bool)

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

SetLast1h

func (o *AverageBlockTimesResponse) SetLast1h(v float32)

SetLast1h sets Last1h field to given value.

GetLast24h

func (o *AverageBlockTimesResponse) GetLast24h() float32

GetLast24h returns the Last24h field if non-nil, zero value otherwise.

GetLast24hOk

func (o *AverageBlockTimesResponse) GetLast24hOk() (*float32, bool)

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

SetLast24h

func (o *AverageBlockTimesResponse) SetLast24h(v float32)

SetLast24h sets Last24h field to given value.

GetLast7d

func (o *AverageBlockTimesResponse) GetLast7d() float32

GetLast7d returns the Last7d field if non-nil, zero value otherwise.

GetLast7dOk

func (o *AverageBlockTimesResponse) GetLast7dOk() (*float32, bool)

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

SetLast7d

func (o *AverageBlockTimesResponse) SetLast7d(v float32)

SetLast7d sets Last7d field to given value.

GetLast30d

func (o *AverageBlockTimesResponse) GetLast30d() float32

GetLast30d returns the Last30d field if non-nil, zero value otherwise.

GetLast30dOk

func (o *AverageBlockTimesResponse) GetLast30dOk() (*float32, bool)

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

SetLast30d

func (o *AverageBlockTimesResponse) SetLast30d(v float32)

SetLast30d sets Last30d field to given value.

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