Skip to content

Latest commit

 

History

History
198 lines (105 loc) · 5.93 KB

BlockInfoResponse.md

File metadata and controls

198 lines (105 loc) · 5.93 KB

BlockInfoResponse

Properties

Name Type Description Notes
BlockIndex uint32
GasBurned string The burned gas (uint64 as string)
GasFeeCharged string The charged gas fee (uint64 as string)
NumOffLedgerRequests uint32
NumSuccessfulRequests uint32
PreviousAliasOutput string
Timestamp time.Time
TotalRequests uint32

Methods

NewBlockInfoResponse

func NewBlockInfoResponse(blockIndex uint32, gasBurned string, gasFeeCharged string, numOffLedgerRequests uint32, numSuccessfulRequests uint32, previousAliasOutput string, timestamp time.Time, totalRequests uint32, ) *BlockInfoResponse

NewBlockInfoResponse instantiates a new BlockInfoResponse 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

NewBlockInfoResponseWithDefaults

func NewBlockInfoResponseWithDefaults() *BlockInfoResponse

NewBlockInfoResponseWithDefaults instantiates a new BlockInfoResponse 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

GetBlockIndex

func (o *BlockInfoResponse) GetBlockIndex() uint32

GetBlockIndex returns the BlockIndex field if non-nil, zero value otherwise.

GetBlockIndexOk

func (o *BlockInfoResponse) GetBlockIndexOk() (*uint32, bool)

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

SetBlockIndex

func (o *BlockInfoResponse) SetBlockIndex(v uint32)

SetBlockIndex sets BlockIndex field to given value.

GetGasBurned

func (o *BlockInfoResponse) GetGasBurned() string

GetGasBurned returns the GasBurned field if non-nil, zero value otherwise.

GetGasBurnedOk

func (o *BlockInfoResponse) GetGasBurnedOk() (*string, bool)

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

SetGasBurned

func (o *BlockInfoResponse) SetGasBurned(v string)

SetGasBurned sets GasBurned field to given value.

GetGasFeeCharged

func (o *BlockInfoResponse) GetGasFeeCharged() string

GetGasFeeCharged returns the GasFeeCharged field if non-nil, zero value otherwise.

GetGasFeeChargedOk

func (o *BlockInfoResponse) GetGasFeeChargedOk() (*string, bool)

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

SetGasFeeCharged

func (o *BlockInfoResponse) SetGasFeeCharged(v string)

SetGasFeeCharged sets GasFeeCharged field to given value.

GetNumOffLedgerRequests

func (o *BlockInfoResponse) GetNumOffLedgerRequests() uint32

GetNumOffLedgerRequests returns the NumOffLedgerRequests field if non-nil, zero value otherwise.

GetNumOffLedgerRequestsOk

func (o *BlockInfoResponse) GetNumOffLedgerRequestsOk() (*uint32, bool)

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

SetNumOffLedgerRequests

func (o *BlockInfoResponse) SetNumOffLedgerRequests(v uint32)

SetNumOffLedgerRequests sets NumOffLedgerRequests field to given value.

GetNumSuccessfulRequests

func (o *BlockInfoResponse) GetNumSuccessfulRequests() uint32

GetNumSuccessfulRequests returns the NumSuccessfulRequests field if non-nil, zero value otherwise.

GetNumSuccessfulRequestsOk

func (o *BlockInfoResponse) GetNumSuccessfulRequestsOk() (*uint32, bool)

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

SetNumSuccessfulRequests

func (o *BlockInfoResponse) SetNumSuccessfulRequests(v uint32)

SetNumSuccessfulRequests sets NumSuccessfulRequests field to given value.

GetPreviousAliasOutput

func (o *BlockInfoResponse) GetPreviousAliasOutput() string

GetPreviousAliasOutput returns the PreviousAliasOutput field if non-nil, zero value otherwise.

GetPreviousAliasOutputOk

func (o *BlockInfoResponse) GetPreviousAliasOutputOk() (*string, bool)

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

SetPreviousAliasOutput

func (o *BlockInfoResponse) SetPreviousAliasOutput(v string)

SetPreviousAliasOutput sets PreviousAliasOutput field to given value.

GetTimestamp

func (o *BlockInfoResponse) GetTimestamp() time.Time

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

GetTimestampOk

func (o *BlockInfoResponse) GetTimestampOk() (*time.Time, 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 *BlockInfoResponse) SetTimestamp(v time.Time)

SetTimestamp sets Timestamp field to given value.

GetTotalRequests

func (o *BlockInfoResponse) GetTotalRequests() uint32

GetTotalRequests returns the TotalRequests field if non-nil, zero value otherwise.

GetTotalRequestsOk

func (o *BlockInfoResponse) GetTotalRequestsOk() (*uint32, bool)

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

SetTotalRequests

func (o *BlockInfoResponse) SetTotalRequests(v uint32)

SetTotalRequests sets TotalRequests field to given value.

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