Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AccountsAPIService
- type ApiCallReadOnlyFunctionRequest
- func (r ApiCallReadOnlyFunctionRequest) Execute() (*PostCallReadOnlyFnschema, *http.Response, error)
- func (r ApiCallReadOnlyFunctionRequest) ReadOnlyFunctionArgsschema(readOnlyFunctionArgsschema ReadOnlyFunctionArgsschema) ApiCallReadOnlyFunctionRequest
- func (r ApiCallReadOnlyFunctionRequest) Tip(tip string) ApiCallReadOnlyFunctionRequest
- type ApiGetAccountInfoRequest
- type ApiGetBlockV3Request
- type ApiGetBurnOpsRequest
- type ApiGetConstantValRequest
- type ApiGetContractDataMapEntryRequest
- func (r ApiGetContractDataMapEntryRequest) Execute() (*GetContractDataMapEntryschema, *http.Response, error)
- func (r ApiGetContractDataMapEntryRequest) Key(key string) ApiGetContractDataMapEntryRequest
- func (r ApiGetContractDataMapEntryRequest) Proof(proof int32) ApiGetContractDataMapEntryRequest
- func (r ApiGetContractDataMapEntryRequest) Tip(tip string) ApiGetContractDataMapEntryRequest
- type ApiGetContractInterfaceRequest
- type ApiGetContractSourceRequest
- type ApiGetCoreApiInfoRequest
- type ApiGetFeeTransferRequest
- type ApiGetIsTraitImplementedRequest
- type ApiGetPoxInfoRequest
- type ApiGetStackerSetRequest
- type ApiGetTenureInfoRequest
- type ApiGetTenuresRequest
- type ApiPostBlockProposalRequest
- type ApiPostCoreNodeTransactionsRequest
- type ApiPostFeeTransactionRequest
- type BasicAuth
- type BlocksAPIService
- func (a *BlocksAPIService) GetBlockV3(ctx context.Context, blockId string) ApiGetBlockV3Request
- func (a *BlocksAPIService) GetBlockV3Execute(r ApiGetBlockV3Request) (*os.File, *http.Response, error)
- func (a *BlocksAPIService) GetTenureInfo(ctx context.Context) ApiGetTenureInfoRequest
- func (a *BlocksAPIService) GetTenureInfoExecute(r ApiGetTenureInfoRequest) (*http.Response, error)
- func (a *BlocksAPIService) GetTenures(ctx context.Context, blockId string) ApiGetTenuresRequest
- func (a *BlocksAPIService) GetTenuresExecute(r ApiGetTenuresRequest) (*os.File, *http.Response, error)
- type Configuration
- type FeesAPIService
- func (a *FeesAPIService) GetFeeTransfer(ctx context.Context) ApiGetFeeTransferRequest
- func (a *FeesAPIService) GetFeeTransferExecute(r ApiGetFeeTransferRequest) (string, *http.Response, error)
- func (a *FeesAPIService) PostFeeTransaction(ctx context.Context) ApiPostFeeTransactionRequest
- func (a *FeesAPIService) PostFeeTransactionExecute(r ApiPostFeeTransactionRequest) (*PostFeeTransactionResponseschema, *http.Response, error)
- type GenericOpenAPIError
- type GetAccountDataschema
- func (o *GetAccountDataschema) GetBalance() string
- func (o *GetAccountDataschema) GetBalanceOk() (*string, bool)
- func (o *GetAccountDataschema) GetBalanceProof() string
- func (o *GetAccountDataschema) GetBalanceProofOk() (*string, bool)
- func (o *GetAccountDataschema) GetLocked() string
- func (o *GetAccountDataschema) GetLockedOk() (*string, bool)
- func (o *GetAccountDataschema) GetNonce() int32
- func (o *GetAccountDataschema) GetNonceOk() (*int32, bool)
- func (o *GetAccountDataschema) GetNonceProof() string
- func (o *GetAccountDataschema) GetNonceProofOk() (*string, bool)
- func (o *GetAccountDataschema) GetUnlockHeight() int32
- func (o *GetAccountDataschema) GetUnlockHeightOk() (*int32, bool)
- func (o GetAccountDataschema) MarshalJSON() ([]byte, error)
- func (o *GetAccountDataschema) SetBalance(v string)
- func (o *GetAccountDataschema) SetBalanceProof(v string)
- func (o *GetAccountDataschema) SetLocked(v string)
- func (o *GetAccountDataschema) SetNonce(v int32)
- func (o *GetAccountDataschema) SetNonceProof(v string)
- func (o *GetAccountDataschema) SetUnlockHeight(v int32)
- func (o GetAccountDataschema) ToMap() (map[string]interface{}, error)
- func (o *GetAccountDataschema) UnmarshalJSON(data []byte) (err error)
- type GetContractDataMapEntryschema
- func (o *GetContractDataMapEntryschema) GetData() string
- func (o *GetContractDataMapEntryschema) GetDataOk() (*string, bool)
- func (o *GetContractDataMapEntryschema) GetProof() string
- func (o *GetContractDataMapEntryschema) GetProofOk() (*string, bool)
- func (o *GetContractDataMapEntryschema) HasProof() bool
- func (o GetContractDataMapEntryschema) MarshalJSON() ([]byte, error)
- func (o *GetContractDataMapEntryschema) SetData(v string)
- func (o *GetContractDataMapEntryschema) SetProof(v string)
- func (o GetContractDataMapEntryschema) ToMap() (map[string]interface{}, error)
- func (o *GetContractDataMapEntryschema) UnmarshalJSON(data []byte) (err error)
- type GetContractInterfaceschema
- func (o *GetContractInterfaceschema) GetFunctions() []map[string]interface{}
- func (o *GetContractInterfaceschema) GetFunctionsOk() ([]map[string]interface{}, bool)
- func (o *GetContractInterfaceschema) GetFungibleTokens() []map[string]interface{}
- func (o *GetContractInterfaceschema) GetFungibleTokensOk() ([]map[string]interface{}, bool)
- func (o *GetContractInterfaceschema) GetMaps() []map[string]interface{}
- func (o *GetContractInterfaceschema) GetMapsOk() ([]map[string]interface{}, bool)
- func (o *GetContractInterfaceschema) GetNonFungibleTokens() []map[string]interface{}
- func (o *GetContractInterfaceschema) GetNonFungibleTokensOk() ([]map[string]interface{}, bool)
- func (o *GetContractInterfaceschema) GetVariables() []map[string]interface{}
- func (o *GetContractInterfaceschema) GetVariablesOk() ([]map[string]interface{}, bool)
- func (o GetContractInterfaceschema) MarshalJSON() ([]byte, error)
- func (o *GetContractInterfaceschema) SetFunctions(v []map[string]interface{})
- func (o *GetContractInterfaceschema) SetFungibleTokens(v []map[string]interface{})
- func (o *GetContractInterfaceschema) SetMaps(v []map[string]interface{})
- func (o *GetContractInterfaceschema) SetNonFungibleTokens(v []map[string]interface{})
- func (o *GetContractInterfaceschema) SetVariables(v []map[string]interface{})
- func (o GetContractInterfaceschema) ToMap() (map[string]interface{}, error)
- func (o *GetContractInterfaceschema) UnmarshalJSON(data []byte) (err error)
- type GetContractSourceschema
- func (o *GetContractSourceschema) GetProof() string
- func (o *GetContractSourceschema) GetProofOk() (*string, bool)
- func (o *GetContractSourceschema) GetPublishHeight() int32
- func (o *GetContractSourceschema) GetPublishHeightOk() (*int32, bool)
- func (o *GetContractSourceschema) GetSource() string
- func (o *GetContractSourceschema) GetSourceOk() (*string, bool)
- func (o GetContractSourceschema) MarshalJSON() ([]byte, error)
- func (o *GetContractSourceschema) SetProof(v string)
- func (o *GetContractSourceschema) SetPublishHeight(v int32)
- func (o *GetContractSourceschema) SetSource(v string)
- func (o GetContractSourceschema) ToMap() (map[string]interface{}, error)
- func (o *GetContractSourceschema) UnmarshalJSON(data []byte) (err error)
- type GetInfoschema
- func (o *GetInfoschema) GetBurnBlockHeight() uint64
- func (o *GetInfoschema) GetBurnBlockHeightOk() (*uint64, bool)
- func (o *GetInfoschema) GetExitAtBlockHeight() uint64
- func (o *GetInfoschema) GetExitAtBlockHeightOk() (*uint64, bool)
- func (o *GetInfoschema) GetNetworkId() uint64
- func (o *GetInfoschema) GetNetworkIdOk() (*uint64, bool)
- func (o *GetInfoschema) GetParentNetworkId() uint64
- func (o *GetInfoschema) GetParentNetworkIdOk() (*uint64, bool)
- func (o *GetInfoschema) GetPeerVersion() uint64
- func (o *GetInfoschema) GetPeerVersionOk() (*uint64, bool)
- func (o *GetInfoschema) GetPoxConsensus() string
- func (o *GetInfoschema) GetPoxConsensusOk() (*string, bool)
- func (o *GetInfoschema) GetServerVersion() string
- func (o *GetInfoschema) GetServerVersionOk() (*string, bool)
- func (o *GetInfoschema) GetStableBurnBlockHeight() uint64
- func (o *GetInfoschema) GetStableBurnBlockHeightOk() (*uint64, bool)
- func (o *GetInfoschema) GetStablePoxConsensus() string
- func (o *GetInfoschema) GetStablePoxConsensusOk() (*string, bool)
- func (o *GetInfoschema) GetStacksTip() string
- func (o *GetInfoschema) GetStacksTipConsensusHash() string
- func (o *GetInfoschema) GetStacksTipConsensusHashOk() (*string, bool)
- func (o *GetInfoschema) GetStacksTipHeight() uint64
- func (o *GetInfoschema) GetStacksTipHeightOk() (*uint64, bool)
- func (o *GetInfoschema) GetStacksTipOk() (*string, bool)
- func (o *GetInfoschema) GetUnanchoredTip() string
- func (o *GetInfoschema) GetUnanchoredTipOk() (*string, bool)
- func (o GetInfoschema) MarshalJSON() ([]byte, error)
- func (o *GetInfoschema) SetBurnBlockHeight(v uint64)
- func (o *GetInfoschema) SetExitAtBlockHeight(v uint64)
- func (o *GetInfoschema) SetNetworkId(v uint64)
- func (o *GetInfoschema) SetParentNetworkId(v uint64)
- func (o *GetInfoschema) SetPeerVersion(v uint64)
- func (o *GetInfoschema) SetPoxConsensus(v string)
- func (o *GetInfoschema) SetServerVersion(v string)
- func (o *GetInfoschema) SetStableBurnBlockHeight(v uint64)
- func (o *GetInfoschema) SetStablePoxConsensus(v string)
- func (o *GetInfoschema) SetStacksTip(v string)
- func (o *GetInfoschema) SetStacksTipConsensusHash(v string)
- func (o *GetInfoschema) SetStacksTipHeight(v uint64)
- func (o *GetInfoschema) SetUnanchoredTip(v string)
- func (o GetInfoschema) ToMap() (map[string]interface{}, error)
- func (o *GetInfoschema) UnmarshalJSON(data []byte) (err error)
- type GetPoxschema
- func (o *GetPoxschema) GetContractId() string
- func (o *GetPoxschema) GetContractIdOk() (*string, bool)
- func (o *GetPoxschema) GetContractVersions() []GetPoxschemaContractVersionsInner
- func (o *GetPoxschema) GetContractVersionsOk() ([]GetPoxschemaContractVersionsInner, bool)
- func (o *GetPoxschema) GetCurrentBurnchainBlockHeight() int32
- func (o *GetPoxschema) GetCurrentBurnchainBlockHeightOk() (*int32, bool)
- func (o *GetPoxschema) GetCurrentCycle() GetPoxschemaCurrentCycle
- func (o *GetPoxschema) GetCurrentCycleOk() (*GetPoxschemaCurrentCycle, bool)
- func (o *GetPoxschema) GetFirstBurnchainBlockHeight() int32
- func (o *GetPoxschema) GetFirstBurnchainBlockHeightOk() (*int32, bool)
- func (o *GetPoxschema) GetMinAmountUstx() int32
- func (o *GetPoxschema) GetMinAmountUstxOk() (*int32, bool)
- func (o *GetPoxschema) GetNextCycle() GetPoxschemaNextCycle
- func (o *GetPoxschema) GetNextCycleOk() (*GetPoxschemaNextCycle, bool)
- func (o *GetPoxschema) GetPoxActivationThresholdUstx() int32
- func (o *GetPoxschema) GetPoxActivationThresholdUstxOk() (*int32, bool)
- func (o *GetPoxschema) GetPrepareCycleLength() int32
- func (o *GetPoxschema) GetPrepareCycleLengthOk() (*int32, bool)
- func (o *GetPoxschema) GetPreparePhaseBlockLength() int32
- func (o *GetPoxschema) GetPreparePhaseBlockLengthOk() (*int32, bool)
- func (o *GetPoxschema) GetRejectionFraction() int32
- func (o *GetPoxschema) GetRejectionFractionOk() (*int32, bool)
- func (o *GetPoxschema) GetRejectionVotesLeftRequired() int32
- func (o *GetPoxschema) GetRejectionVotesLeftRequiredOk() (*int32, bool)
- func (o *GetPoxschema) GetRewardCycleId() int32
- func (o *GetPoxschema) GetRewardCycleIdOk() (*int32, bool)
- func (o *GetPoxschema) GetRewardCycleLength() int32
- func (o *GetPoxschema) GetRewardCycleLengthOk() (*int32, bool)
- func (o *GetPoxschema) GetRewardPhaseBlockLength() int32
- func (o *GetPoxschema) GetRewardPhaseBlockLengthOk() (*int32, bool)
- func (o *GetPoxschema) GetRewardSlots() int32
- func (o *GetPoxschema) GetRewardSlotsOk() (*int32, bool)
- func (o *GetPoxschema) GetTotalLiquidSupplyUstx() int32
- func (o *GetPoxschema) GetTotalLiquidSupplyUstxOk() (*int32, bool)
- func (o GetPoxschema) MarshalJSON() ([]byte, error)
- func (o *GetPoxschema) SetContractId(v string)
- func (o *GetPoxschema) SetContractVersions(v []GetPoxschemaContractVersionsInner)
- func (o *GetPoxschema) SetCurrentBurnchainBlockHeight(v int32)
- func (o *GetPoxschema) SetCurrentCycle(v GetPoxschemaCurrentCycle)
- func (o *GetPoxschema) SetFirstBurnchainBlockHeight(v int32)
- func (o *GetPoxschema) SetMinAmountUstx(v int32)
- func (o *GetPoxschema) SetNextCycle(v GetPoxschemaNextCycle)
- func (o *GetPoxschema) SetPoxActivationThresholdUstx(v int32)
- func (o *GetPoxschema) SetPrepareCycleLength(v int32)
- func (o *GetPoxschema) SetPreparePhaseBlockLength(v int32)
- func (o *GetPoxschema) SetRejectionFraction(v int32)
- func (o *GetPoxschema) SetRejectionVotesLeftRequired(v int32)
- func (o *GetPoxschema) SetRewardCycleId(v int32)
- func (o *GetPoxschema) SetRewardCycleLength(v int32)
- func (o *GetPoxschema) SetRewardPhaseBlockLength(v int32)
- func (o *GetPoxschema) SetRewardSlots(v int32)
- func (o *GetPoxschema) SetTotalLiquidSupplyUstx(v int32)
- func (o GetPoxschema) ToMap() (map[string]interface{}, error)
- func (o *GetPoxschema) UnmarshalJSON(data []byte) (err error)
- type GetPoxschemaContractVersionsInner
- func (o *GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeight() int32
- func (o *GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeightOk() (*int32, bool)
- func (o *GetPoxschemaContractVersionsInner) GetContractId() string
- func (o *GetPoxschemaContractVersionsInner) GetContractIdOk() (*string, bool)
- func (o *GetPoxschemaContractVersionsInner) GetFirstRewardCycleId() int32
- func (o *GetPoxschemaContractVersionsInner) GetFirstRewardCycleIdOk() (*int32, bool)
- func (o GetPoxschemaContractVersionsInner) MarshalJSON() ([]byte, error)
- func (o *GetPoxschemaContractVersionsInner) SetActivationBurnchainBlockHeight(v int32)
- func (o *GetPoxschemaContractVersionsInner) SetContractId(v string)
- func (o *GetPoxschemaContractVersionsInner) SetFirstRewardCycleId(v int32)
- func (o GetPoxschemaContractVersionsInner) ToMap() (map[string]interface{}, error)
- func (o *GetPoxschemaContractVersionsInner) UnmarshalJSON(data []byte) (err error)
- type GetPoxschemaCurrentCycle
- func (o *GetPoxschemaCurrentCycle) GetId() int32
- func (o *GetPoxschemaCurrentCycle) GetIdOk() (*int32, bool)
- func (o *GetPoxschemaCurrentCycle) GetIsPoxActive() bool
- func (o *GetPoxschemaCurrentCycle) GetIsPoxActiveOk() (*bool, bool)
- func (o *GetPoxschemaCurrentCycle) GetMinThresholdUstx() int32
- func (o *GetPoxschemaCurrentCycle) GetMinThresholdUstxOk() (*int32, bool)
- func (o *GetPoxschemaCurrentCycle) GetStackedUstx() int32
- func (o *GetPoxschemaCurrentCycle) GetStackedUstxOk() (*int32, bool)
- func (o GetPoxschemaCurrentCycle) MarshalJSON() ([]byte, error)
- func (o *GetPoxschemaCurrentCycle) SetId(v int32)
- func (o *GetPoxschemaCurrentCycle) SetIsPoxActive(v bool)
- func (o *GetPoxschemaCurrentCycle) SetMinThresholdUstx(v int32)
- func (o *GetPoxschemaCurrentCycle) SetStackedUstx(v int32)
- func (o GetPoxschemaCurrentCycle) ToMap() (map[string]interface{}, error)
- func (o *GetPoxschemaCurrentCycle) UnmarshalJSON(data []byte) (err error)
- type GetPoxschemaNextCycle
- func (o *GetPoxschemaNextCycle) GetBlocksUntilPreparePhase() int32
- func (o *GetPoxschemaNextCycle) GetBlocksUntilPreparePhaseOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetBlocksUntilRewardPhase() int32
- func (o *GetPoxschemaNextCycle) GetBlocksUntilRewardPhaseOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetId() int32
- func (o *GetPoxschemaNextCycle) GetIdOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetMinIncrementUstx() int32
- func (o *GetPoxschemaNextCycle) GetMinIncrementUstxOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetMinThresholdUstx() int32
- func (o *GetPoxschemaNextCycle) GetMinThresholdUstxOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeight() int32
- func (o *GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeightOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeight() int32
- func (o *GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeightOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetStackedUstx() int32
- func (o *GetPoxschemaNextCycle) GetStackedUstxOk() (*int32, bool)
- func (o *GetPoxschemaNextCycle) GetUstxUntilPoxRejection() int32
- func (o *GetPoxschemaNextCycle) GetUstxUntilPoxRejectionOk() (*int32, bool)
- func (o GetPoxschemaNextCycle) MarshalJSON() ([]byte, error)
- func (o *GetPoxschemaNextCycle) SetBlocksUntilPreparePhase(v int32)
- func (o *GetPoxschemaNextCycle) SetBlocksUntilRewardPhase(v int32)
- func (o *GetPoxschemaNextCycle) SetId(v int32)
- func (o *GetPoxschemaNextCycle) SetMinIncrementUstx(v int32)
- func (o *GetPoxschemaNextCycle) SetMinThresholdUstx(v int32)
- func (o *GetPoxschemaNextCycle) SetPreparePhaseStartBlockHeight(v int32)
- func (o *GetPoxschemaNextCycle) SetRewardPhaseStartBlockHeight(v int32)
- func (o *GetPoxschemaNextCycle) SetStackedUstx(v int32)
- func (o *GetPoxschemaNextCycle) SetUstxUntilPoxRejection(v int32)
- func (o GetPoxschemaNextCycle) ToMap() (map[string]interface{}, error)
- func (o *GetPoxschemaNextCycle) UnmarshalJSON(data []byte) (err error)
- type InfoAPIService
- func (a *InfoAPIService) GetBurnOps(ctx context.Context, burnHeight int32, opType string) ApiGetBurnOpsRequest
- func (a *InfoAPIService) GetBurnOpsExecute(r ApiGetBurnOpsRequest) (*http.Response, error)
- func (a *InfoAPIService) GetCoreApiInfo(ctx context.Context) ApiGetCoreApiInfoRequest
- func (a *InfoAPIService) GetCoreApiInfoExecute(r ApiGetCoreApiInfoRequest) (*GetInfoschema, *http.Response, error)
- func (a *InfoAPIService) GetPoxInfo(ctx context.Context) ApiGetPoxInfoRequest
- func (a *InfoAPIService) GetPoxInfoExecute(r ApiGetPoxInfoRequest) (*GetPoxschema, *http.Response, error)
- type MappedNullable
- type MiningAPIService
- func (a *MiningAPIService) GetStackerSet(ctx context.Context, cycleNumber int32) ApiGetStackerSetRequest
- func (a *MiningAPIService) GetStackerSetExecute(r ApiGetStackerSetRequest) (*http.Response, error)
- func (a *MiningAPIService) PostBlockProposal(ctx context.Context) ApiPostBlockProposalRequest
- func (a *MiningAPIService) PostBlockProposalExecute(r ApiPostBlockProposalRequest) (*http.Response, error)
- type NullableBool
- type NullableFloat32
- type NullableFloat64
- type NullableGetAccountDataschema
- func (v NullableGetAccountDataschema) Get() *GetAccountDataschema
- func (v NullableGetAccountDataschema) IsSet() bool
- func (v NullableGetAccountDataschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetAccountDataschema) Set(val *GetAccountDataschema)
- func (v *NullableGetAccountDataschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetAccountDataschema) Unset()
- type NullableGetContractDataMapEntryschema
- func (v NullableGetContractDataMapEntryschema) Get() *GetContractDataMapEntryschema
- func (v NullableGetContractDataMapEntryschema) IsSet() bool
- func (v NullableGetContractDataMapEntryschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetContractDataMapEntryschema) Set(val *GetContractDataMapEntryschema)
- func (v *NullableGetContractDataMapEntryschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetContractDataMapEntryschema) Unset()
- type NullableGetContractInterfaceschema
- func (v NullableGetContractInterfaceschema) Get() *GetContractInterfaceschema
- func (v NullableGetContractInterfaceschema) IsSet() bool
- func (v NullableGetContractInterfaceschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetContractInterfaceschema) Set(val *GetContractInterfaceschema)
- func (v *NullableGetContractInterfaceschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetContractInterfaceschema) Unset()
- type NullableGetContractSourceschema
- func (v NullableGetContractSourceschema) Get() *GetContractSourceschema
- func (v NullableGetContractSourceschema) IsSet() bool
- func (v NullableGetContractSourceschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetContractSourceschema) Set(val *GetContractSourceschema)
- func (v *NullableGetContractSourceschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetContractSourceschema) Unset()
- type NullableGetInfoschema
- func (v NullableGetInfoschema) Get() *GetInfoschema
- func (v NullableGetInfoschema) IsSet() bool
- func (v NullableGetInfoschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetInfoschema) Set(val *GetInfoschema)
- func (v *NullableGetInfoschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetInfoschema) Unset()
- type NullableGetPoxschema
- func (v NullableGetPoxschema) Get() *GetPoxschema
- func (v NullableGetPoxschema) IsSet() bool
- func (v NullableGetPoxschema) MarshalJSON() ([]byte, error)
- func (v *NullableGetPoxschema) Set(val *GetPoxschema)
- func (v *NullableGetPoxschema) UnmarshalJSON(src []byte) error
- func (v *NullableGetPoxschema) Unset()
- type NullableGetPoxschemaContractVersionsInner
- func (v NullableGetPoxschemaContractVersionsInner) Get() *GetPoxschemaContractVersionsInner
- func (v NullableGetPoxschemaContractVersionsInner) IsSet() bool
- func (v NullableGetPoxschemaContractVersionsInner) MarshalJSON() ([]byte, error)
- func (v *NullableGetPoxschemaContractVersionsInner) Set(val *GetPoxschemaContractVersionsInner)
- func (v *NullableGetPoxschemaContractVersionsInner) UnmarshalJSON(src []byte) error
- func (v *NullableGetPoxschemaContractVersionsInner) Unset()
- type NullableGetPoxschemaCurrentCycle
- func (v NullableGetPoxschemaCurrentCycle) Get() *GetPoxschemaCurrentCycle
- func (v NullableGetPoxschemaCurrentCycle) IsSet() bool
- func (v NullableGetPoxschemaCurrentCycle) MarshalJSON() ([]byte, error)
- func (v *NullableGetPoxschemaCurrentCycle) Set(val *GetPoxschemaCurrentCycle)
- func (v *NullableGetPoxschemaCurrentCycle) UnmarshalJSON(src []byte) error
- func (v *NullableGetPoxschemaCurrentCycle) Unset()
- type NullableGetPoxschemaNextCycle
- func (v NullableGetPoxschemaNextCycle) Get() *GetPoxschemaNextCycle
- func (v NullableGetPoxschemaNextCycle) IsSet() bool
- func (v NullableGetPoxschemaNextCycle) MarshalJSON() ([]byte, error)
- func (v *NullableGetPoxschemaNextCycle) Set(val *GetPoxschemaNextCycle)
- func (v *NullableGetPoxschemaNextCycle) UnmarshalJSON(src []byte) error
- func (v *NullableGetPoxschemaNextCycle) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullablePostCallReadOnlyFnschema
- func (v NullablePostCallReadOnlyFnschema) Get() *PostCallReadOnlyFnschema
- func (v NullablePostCallReadOnlyFnschema) IsSet() bool
- func (v NullablePostCallReadOnlyFnschema) MarshalJSON() ([]byte, error)
- func (v *NullablePostCallReadOnlyFnschema) Set(val *PostCallReadOnlyFnschema)
- func (v *NullablePostCallReadOnlyFnschema) UnmarshalJSON(src []byte) error
- func (v *NullablePostCallReadOnlyFnschema) Unset()
- type NullablePostCoreNodeTransactionsErrorschema
- func (v NullablePostCoreNodeTransactionsErrorschema) Get() *PostCoreNodeTransactionsErrorschema
- func (v NullablePostCoreNodeTransactionsErrorschema) IsSet() bool
- func (v NullablePostCoreNodeTransactionsErrorschema) MarshalJSON() ([]byte, error)
- func (v *NullablePostCoreNodeTransactionsErrorschema) Set(val *PostCoreNodeTransactionsErrorschema)
- func (v *NullablePostCoreNodeTransactionsErrorschema) UnmarshalJSON(src []byte) error
- func (v *NullablePostCoreNodeTransactionsErrorschema) Unset()
- type NullablePostFeeTransactionResponseschema
- func (v NullablePostFeeTransactionResponseschema) Get() *PostFeeTransactionResponseschema
- func (v NullablePostFeeTransactionResponseschema) IsSet() bool
- func (v NullablePostFeeTransactionResponseschema) MarshalJSON() ([]byte, error)
- func (v *NullablePostFeeTransactionResponseschema) Set(val *PostFeeTransactionResponseschema)
- func (v *NullablePostFeeTransactionResponseschema) UnmarshalJSON(src []byte) error
- func (v *NullablePostFeeTransactionResponseschema) Unset()
- type NullablePostFeeTransactionResponseschemaEstimatedCost
- func (v NullablePostFeeTransactionResponseschemaEstimatedCost) Get() *PostFeeTransactionResponseschemaEstimatedCost
- func (v NullablePostFeeTransactionResponseschemaEstimatedCost) IsSet() bool
- func (v NullablePostFeeTransactionResponseschemaEstimatedCost) MarshalJSON() ([]byte, error)
- func (v *NullablePostFeeTransactionResponseschemaEstimatedCost) Set(val *PostFeeTransactionResponseschemaEstimatedCost)
- func (v *NullablePostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON(src []byte) error
- func (v *NullablePostFeeTransactionResponseschemaEstimatedCost) Unset()
- type NullablePostFeeTransactionResponseschemaEstimationsInner
- func (v NullablePostFeeTransactionResponseschemaEstimationsInner) Get() *PostFeeTransactionResponseschemaEstimationsInner
- func (v NullablePostFeeTransactionResponseschemaEstimationsInner) IsSet() bool
- func (v NullablePostFeeTransactionResponseschemaEstimationsInner) MarshalJSON() ([]byte, error)
- func (v *NullablePostFeeTransactionResponseschemaEstimationsInner) Set(val *PostFeeTransactionResponseschemaEstimationsInner)
- func (v *NullablePostFeeTransactionResponseschemaEstimationsInner) UnmarshalJSON(src []byte) error
- func (v *NullablePostFeeTransactionResponseschemaEstimationsInner) Unset()
- type NullablePostFeeTransactionschema
- func (v NullablePostFeeTransactionschema) Get() *PostFeeTransactionschema
- func (v NullablePostFeeTransactionschema) IsSet() bool
- func (v NullablePostFeeTransactionschema) MarshalJSON() ([]byte, error)
- func (v *NullablePostFeeTransactionschema) Set(val *PostFeeTransactionschema)
- func (v *NullablePostFeeTransactionschema) UnmarshalJSON(src []byte) error
- func (v *NullablePostFeeTransactionschema) Unset()
- type NullableReadOnlyFunctionArgsschema
- func (v NullableReadOnlyFunctionArgsschema) Get() *ReadOnlyFunctionArgsschema
- func (v NullableReadOnlyFunctionArgsschema) IsSet() bool
- func (v NullableReadOnlyFunctionArgsschema) MarshalJSON() ([]byte, error)
- func (v *NullableReadOnlyFunctionArgsschema) Set(val *ReadOnlyFunctionArgsschema)
- func (v *NullableReadOnlyFunctionArgsschema) UnmarshalJSON(src []byte) error
- func (v *NullableReadOnlyFunctionArgsschema) Unset()
- type NullableString
- type NullableTime
- type PostCallReadOnlyFnschema
- func (o *PostCallReadOnlyFnschema) GetCause() string
- func (o *PostCallReadOnlyFnschema) GetCauseOk() (*string, bool)
- func (o *PostCallReadOnlyFnschema) GetOkay() bool
- func (o *PostCallReadOnlyFnschema) GetOkayOk() (*bool, bool)
- func (o *PostCallReadOnlyFnschema) GetResult() string
- func (o *PostCallReadOnlyFnschema) GetResultOk() (*string, bool)
- func (o *PostCallReadOnlyFnschema) HasCause() bool
- func (o *PostCallReadOnlyFnschema) HasResult() bool
- func (o PostCallReadOnlyFnschema) MarshalJSON() ([]byte, error)
- func (o *PostCallReadOnlyFnschema) SetCause(v string)
- func (o *PostCallReadOnlyFnschema) SetOkay(v bool)
- func (o *PostCallReadOnlyFnschema) SetResult(v string)
- func (o PostCallReadOnlyFnschema) ToMap() (map[string]interface{}, error)
- func (o *PostCallReadOnlyFnschema) UnmarshalJSON(data []byte) (err error)
- type PostCoreNodeTransactionsErrorschema
- func (o *PostCoreNodeTransactionsErrorschema) GetError() string
- func (o *PostCoreNodeTransactionsErrorschema) GetErrorOk() (*string, bool)
- func (o *PostCoreNodeTransactionsErrorschema) GetReason() string
- func (o *PostCoreNodeTransactionsErrorschema) GetReasonData() map[string]interface{}
- func (o *PostCoreNodeTransactionsErrorschema) GetReasonDataOk() (map[string]interface{}, bool)
- func (o *PostCoreNodeTransactionsErrorschema) GetReasonOk() (*string, bool)
- func (o *PostCoreNodeTransactionsErrorschema) GetTxid() string
- func (o *PostCoreNodeTransactionsErrorschema) GetTxidOk() (*string, bool)
- func (o PostCoreNodeTransactionsErrorschema) MarshalJSON() ([]byte, error)
- func (o *PostCoreNodeTransactionsErrorschema) SetError(v string)
- func (o *PostCoreNodeTransactionsErrorschema) SetReason(v string)
- func (o *PostCoreNodeTransactionsErrorschema) SetReasonData(v map[string]interface{})
- func (o *PostCoreNodeTransactionsErrorschema) SetTxid(v string)
- func (o PostCoreNodeTransactionsErrorschema) ToMap() (map[string]interface{}, error)
- func (o *PostCoreNodeTransactionsErrorschema) UnmarshalJSON(data []byte) (err error)
- type PostFeeTransactionResponseschema
- func (o *PostFeeTransactionResponseschema) GetCostScalarChangeByByte() float32
- func (o *PostFeeTransactionResponseschema) GetCostScalarChangeByByteOk() (*float32, bool)
- func (o *PostFeeTransactionResponseschema) GetEstimatedCost() PostFeeTransactionResponseschemaEstimatedCost
- func (o *PostFeeTransactionResponseschema) GetEstimatedCostOk() (*PostFeeTransactionResponseschemaEstimatedCost, bool)
- func (o *PostFeeTransactionResponseschema) GetEstimatedCostScalar() int32
- func (o *PostFeeTransactionResponseschema) GetEstimatedCostScalarOk() (*int32, bool)
- func (o *PostFeeTransactionResponseschema) GetEstimations() []PostFeeTransactionResponseschemaEstimationsInner
- func (o *PostFeeTransactionResponseschema) GetEstimationsOk() ([]PostFeeTransactionResponseschemaEstimationsInner, bool)
- func (o *PostFeeTransactionResponseschema) HasCostScalarChangeByByte() bool
- func (o *PostFeeTransactionResponseschema) HasEstimations() bool
- func (o PostFeeTransactionResponseschema) MarshalJSON() ([]byte, error)
- func (o *PostFeeTransactionResponseschema) SetCostScalarChangeByByte(v float32)
- func (o *PostFeeTransactionResponseschema) SetEstimatedCost(v PostFeeTransactionResponseschemaEstimatedCost)
- func (o *PostFeeTransactionResponseschema) SetEstimatedCostScalar(v int32)
- func (o *PostFeeTransactionResponseschema) SetEstimations(v []PostFeeTransactionResponseschemaEstimationsInner)
- func (o PostFeeTransactionResponseschema) ToMap() (map[string]interface{}, error)
- func (o *PostFeeTransactionResponseschema) UnmarshalJSON(data []byte) (err error)
- type PostFeeTransactionResponseschemaEstimatedCost
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadCount() int32
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadCountOk() (*int32, bool)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadLength() int32
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadLengthOk() (*int32, bool)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetRuntime() int32
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetRuntimeOk() (*int32, bool)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteCount() int32
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteCountOk() (*int32, bool)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteLength() int32
- func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteLengthOk() (*int32, bool)
- func (o PostFeeTransactionResponseschemaEstimatedCost) MarshalJSON() ([]byte, error)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) SetReadCount(v int32)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) SetReadLength(v int32)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) SetRuntime(v int32)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) SetWriteCount(v int32)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) SetWriteLength(v int32)
- func (o PostFeeTransactionResponseschemaEstimatedCost) ToMap() (map[string]interface{}, error)
- func (o *PostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON(data []byte) (err error)
- type PostFeeTransactionResponseschemaEstimationsInner
- func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFee() float32
- func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeOk() (*float32, bool)
- func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeRate() float32
- func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeRateOk() (*float32, bool)
- func (o *PostFeeTransactionResponseschemaEstimationsInner) HasFee() bool
- func (o *PostFeeTransactionResponseschemaEstimationsInner) HasFeeRate() bool
- func (o PostFeeTransactionResponseschemaEstimationsInner) MarshalJSON() ([]byte, error)
- func (o *PostFeeTransactionResponseschemaEstimationsInner) SetFee(v float32)
- func (o *PostFeeTransactionResponseschemaEstimationsInner) SetFeeRate(v float32)
- func (o PostFeeTransactionResponseschemaEstimationsInner) ToMap() (map[string]interface{}, error)
- type PostFeeTransactionschema
- func (o *PostFeeTransactionschema) GetEstimatedLen() int32
- func (o *PostFeeTransactionschema) GetEstimatedLenOk() (*int32, bool)
- func (o *PostFeeTransactionschema) GetTransactionPayload() string
- func (o *PostFeeTransactionschema) GetTransactionPayloadOk() (*string, bool)
- func (o *PostFeeTransactionschema) HasEstimatedLen() bool
- func (o PostFeeTransactionschema) MarshalJSON() ([]byte, error)
- func (o *PostFeeTransactionschema) SetEstimatedLen(v int32)
- func (o *PostFeeTransactionschema) SetTransactionPayload(v string)
- func (o PostFeeTransactionschema) ToMap() (map[string]interface{}, error)
- func (o *PostFeeTransactionschema) UnmarshalJSON(data []byte) (err error)
- type ReadOnlyFunctionArgsschema
- func (o *ReadOnlyFunctionArgsschema) GetArguments() []string
- func (o *ReadOnlyFunctionArgsschema) GetArgumentsOk() ([]string, bool)
- func (o *ReadOnlyFunctionArgsschema) GetSender() string
- func (o *ReadOnlyFunctionArgsschema) GetSenderOk() (*string, bool)
- func (o ReadOnlyFunctionArgsschema) MarshalJSON() ([]byte, error)
- func (o *ReadOnlyFunctionArgsschema) SetArguments(v []string)
- func (o *ReadOnlyFunctionArgsschema) SetSender(v string)
- func (o ReadOnlyFunctionArgsschema) ToMap() (map[string]interface{}, error)
- func (o *ReadOnlyFunctionArgsschema) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type SmartContractsAPIService
- func (a *SmartContractsAPIService) CallReadOnlyFunction(ctx context.Context, contractAddress string, contractName string, ...) ApiCallReadOnlyFunctionRequest
- func (a *SmartContractsAPIService) CallReadOnlyFunctionExecute(r ApiCallReadOnlyFunctionRequest) (*PostCallReadOnlyFnschema, *http.Response, error)
- func (a *SmartContractsAPIService) GetConstantVal(ctx context.Context, contractAddress string, contractName string, ...) ApiGetConstantValRequest
- func (a *SmartContractsAPIService) GetConstantValExecute(r ApiGetConstantValRequest) (*map[string]interface{}, *http.Response, error)
- func (a *SmartContractsAPIService) GetContractDataMapEntry(ctx context.Context, contractAddress string, contractName string, ...) ApiGetContractDataMapEntryRequest
- func (a *SmartContractsAPIService) GetContractDataMapEntryExecute(r ApiGetContractDataMapEntryRequest) (*GetContractDataMapEntryschema, *http.Response, error)
- func (a *SmartContractsAPIService) GetContractInterface(ctx context.Context, contractAddress string, contractName string) ApiGetContractInterfaceRequest
- func (a *SmartContractsAPIService) GetContractInterfaceExecute(r ApiGetContractInterfaceRequest) (*GetContractInterfaceschema, *http.Response, error)
- func (a *SmartContractsAPIService) GetContractSource(ctx context.Context, contractAddress string, contractName string) ApiGetContractSourceRequest
- func (a *SmartContractsAPIService) GetContractSourceExecute(r ApiGetContractSourceRequest) (*GetContractSourceschema, *http.Response, error)
- func (a *SmartContractsAPIService) GetIsTraitImplemented(ctx context.Context, contractAddress string, contractName string, ...) ApiGetIsTraitImplementedRequest
- func (a *SmartContractsAPIService) GetIsTraitImplementedExecute(r ApiGetIsTraitImplementedRequest) (*map[string]interface{}, *http.Response, error)
- type TransactionsAPIService
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { AccountsAPI *AccountsAPIService BlocksAPI *BlocksAPIService FeesAPI *FeesAPIService InfoAPI *InfoAPIService MiningAPI *MiningAPIService SmartContractsAPI *SmartContractsAPIService TransactionsAPI *TransactionsAPIService // contains filtered or unexported fields }
APIClient manages communication with the Stacks 2.0+ RPC API API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AccountsAPIService ¶
type AccountsAPIService service
AccountsAPIService AccountsAPI service
func (*AccountsAPIService) GetAccountInfo ¶
func (a *AccountsAPIService) GetAccountInfo(ctx context.Context, principal string) ApiGetAccountInfoRequest
GetAccountInfo Get account info
Get the account data for the provided principal ¶
Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is a unsigned 64-bit integer, and the proofs are provided as hex strings.
For non-existent accounts, this does not 404, rather it returns an object with balance and nonce of 0.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param principal Stacks address or a Contract identifier (e.g. `SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info`) @return ApiGetAccountInfoRequest
func (*AccountsAPIService) GetAccountInfoExecute ¶
func (a *AccountsAPIService) GetAccountInfoExecute(r ApiGetAccountInfoRequest) (*GetAccountDataschema, *http.Response, error)
Execute executes the request
@return GetAccountDataschema
type ApiCallReadOnlyFunctionRequest ¶
type ApiCallReadOnlyFunctionRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiCallReadOnlyFunctionRequest) Execute ¶
func (r ApiCallReadOnlyFunctionRequest) Execute() (*PostCallReadOnlyFnschema, *http.Response, error)
func (ApiCallReadOnlyFunctionRequest) ReadOnlyFunctionArgsschema ¶
func (r ApiCallReadOnlyFunctionRequest) ReadOnlyFunctionArgsschema(readOnlyFunctionArgsschema ReadOnlyFunctionArgsschema) ApiCallReadOnlyFunctionRequest
map of arguments and the simulated tx-sender where sender is either a Contract identifier or a normal Stacks address, and arguments is an array of hex serialized Clarity values.
func (ApiCallReadOnlyFunctionRequest) Tip ¶
func (r ApiCallReadOnlyFunctionRequest) Tip(tip string) ApiCallReadOnlyFunctionRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetAccountInfoRequest ¶
type ApiGetAccountInfoRequest struct { ApiService *AccountsAPIService // contains filtered or unexported fields }
func (ApiGetAccountInfoRequest) Execute ¶
func (r ApiGetAccountInfoRequest) Execute() (*GetAccountDataschema, *http.Response, error)
func (ApiGetAccountInfoRequest) Proof ¶
func (r ApiGetAccountInfoRequest) Proof(proof int32) ApiGetAccountInfoRequest
Returns object without the proof field if set to 0
func (ApiGetAccountInfoRequest) Tip ¶
func (r ApiGetAccountInfoRequest) Tip(tip string) ApiGetAccountInfoRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetBlockV3Request ¶
type ApiGetBlockV3Request struct { ApiService *BlocksAPIService // contains filtered or unexported fields }
type ApiGetBurnOpsRequest ¶
type ApiGetBurnOpsRequest struct { ApiService *InfoAPIService // contains filtered or unexported fields }
type ApiGetConstantValRequest ¶
type ApiGetConstantValRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiGetConstantValRequest) Execute ¶
func (r ApiGetConstantValRequest) Execute() (*map[string]interface{}, *http.Response, error)
func (ApiGetConstantValRequest) Tip ¶
func (r ApiGetConstantValRequest) Tip(tip string) ApiGetConstantValRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetContractDataMapEntryRequest ¶
type ApiGetContractDataMapEntryRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiGetContractDataMapEntryRequest) Execute ¶
func (r ApiGetContractDataMapEntryRequest) Execute() (*GetContractDataMapEntryschema, *http.Response, error)
func (ApiGetContractDataMapEntryRequest) Key ¶
func (r ApiGetContractDataMapEntryRequest) Key(key string) ApiGetContractDataMapEntryRequest
Hex string serialization of the lookup key (which should be a Clarity value)
func (ApiGetContractDataMapEntryRequest) Proof ¶
func (r ApiGetContractDataMapEntryRequest) Proof(proof int32) ApiGetContractDataMapEntryRequest
Returns object without the proof field when set to 0
func (ApiGetContractDataMapEntryRequest) Tip ¶
func (r ApiGetContractDataMapEntryRequest) Tip(tip string) ApiGetContractDataMapEntryRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetContractInterfaceRequest ¶
type ApiGetContractInterfaceRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiGetContractInterfaceRequest) Execute ¶
func (r ApiGetContractInterfaceRequest) Execute() (*GetContractInterfaceschema, *http.Response, error)
func (ApiGetContractInterfaceRequest) Tip ¶
func (r ApiGetContractInterfaceRequest) Tip(tip string) ApiGetContractInterfaceRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetContractSourceRequest ¶
type ApiGetContractSourceRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiGetContractSourceRequest) Execute ¶
func (r ApiGetContractSourceRequest) Execute() (*GetContractSourceschema, *http.Response, error)
func (ApiGetContractSourceRequest) Proof ¶
func (r ApiGetContractSourceRequest) Proof(proof int32) ApiGetContractSourceRequest
Returns object without the proof field if set to 0
func (ApiGetContractSourceRequest) Tip ¶
func (r ApiGetContractSourceRequest) Tip(tip string) ApiGetContractSourceRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetCoreApiInfoRequest ¶
type ApiGetCoreApiInfoRequest struct { ApiService *InfoAPIService // contains filtered or unexported fields }
func (ApiGetCoreApiInfoRequest) Execute ¶
func (r ApiGetCoreApiInfoRequest) Execute() (*GetInfoschema, *http.Response, error)
type ApiGetFeeTransferRequest ¶
type ApiGetFeeTransferRequest struct { ApiService *FeesAPIService // contains filtered or unexported fields }
type ApiGetIsTraitImplementedRequest ¶
type ApiGetIsTraitImplementedRequest struct { ApiService *SmartContractsAPIService // contains filtered or unexported fields }
func (ApiGetIsTraitImplementedRequest) Execute ¶
func (r ApiGetIsTraitImplementedRequest) Execute() (*map[string]interface{}, *http.Response, error)
func (ApiGetIsTraitImplementedRequest) Tip ¶
func (r ApiGetIsTraitImplementedRequest) Tip(tip string) ApiGetIsTraitImplementedRequest
The Stacks chain tip to query from. If tip == \"latest\", the query will be run from the latest known tip (includes unconfirmed state). If the tip is left unspecified, the stacks chain tip will be selected (only includes confirmed state).
type ApiGetPoxInfoRequest ¶
type ApiGetPoxInfoRequest struct { ApiService *InfoAPIService // contains filtered or unexported fields }
func (ApiGetPoxInfoRequest) Execute ¶
func (r ApiGetPoxInfoRequest) Execute() (*GetPoxschema, *http.Response, error)
func (ApiGetPoxInfoRequest) Tip ¶
func (r ApiGetPoxInfoRequest) Tip(tip string) ApiGetPoxInfoRequest
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
type ApiGetStackerSetRequest ¶
type ApiGetStackerSetRequest struct { ApiService *MiningAPIService // contains filtered or unexported fields }
type ApiGetTenureInfoRequest ¶
type ApiGetTenureInfoRequest struct { ApiService *BlocksAPIService // contains filtered or unexported fields }
type ApiGetTenuresRequest ¶
type ApiGetTenuresRequest struct { ApiService *BlocksAPIService // contains filtered or unexported fields }
func (ApiGetTenuresRequest) Stop ¶
func (r ApiGetTenuresRequest) Stop(stop string) ApiGetTenuresRequest
The block ID hash of the highest block in this tenure that is already known to the caller. Neither the corresponding block nor any of its ancestors will be served. This is used to fetch tenure blocks that the caller does not have.
type ApiPostBlockProposalRequest ¶
type ApiPostBlockProposalRequest struct { ApiService *MiningAPIService // contains filtered or unexported fields }
type ApiPostCoreNodeTransactionsRequest ¶
type ApiPostCoreNodeTransactionsRequest struct { ApiService *TransactionsAPIService // contains filtered or unexported fields }
func (ApiPostCoreNodeTransactionsRequest) Body ¶
func (r ApiPostCoreNodeTransactionsRequest) Body(body *os.File) ApiPostCoreNodeTransactionsRequest
type ApiPostFeeTransactionRequest ¶
type ApiPostFeeTransactionRequest struct { ApiService *FeesAPIService // contains filtered or unexported fields }
func (ApiPostFeeTransactionRequest) Execute ¶
func (r ApiPostFeeTransactionRequest) Execute() (*PostFeeTransactionResponseschema, *http.Response, error)
func (ApiPostFeeTransactionRequest) PostFeeTransactionschema ¶
func (r ApiPostFeeTransactionRequest) PostFeeTransactionschema(postFeeTransactionschema PostFeeTransactionschema) ApiPostFeeTransactionRequest
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BlocksAPIService ¶
type BlocksAPIService service
BlocksAPIService BlocksAPI service
func (*BlocksAPIService) GetBlockV3 ¶
func (a *BlocksAPIService) GetBlockV3(ctx context.Context, blockId string) ApiGetBlockV3Request
GetBlockV3 Fetch a Nakamoto block
Fetch a Nakamoto block by its index block hash.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param blockId The block's ID hash @return ApiGetBlockV3Request
func (*BlocksAPIService) GetBlockV3Execute ¶
func (a *BlocksAPIService) GetBlockV3Execute(r ApiGetBlockV3Request) (*os.File, *http.Response, error)
Execute executes the request
@return *os.File
func (*BlocksAPIService) GetTenureInfo ¶
func (a *BlocksAPIService) GetTenureInfo(ctx context.Context) ApiGetTenureInfoRequest
GetTenureInfo Fetch metadata about the ongoing Nakamoto tenure
Fetch metadata about the ongoing Nakamoto tenure. This information is sufficient to obtain and authenticate the highest complete tenure, as well as obtain new tenure blocks.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetTenureInfoRequest
func (*BlocksAPIService) GetTenureInfoExecute ¶
func (a *BlocksAPIService) GetTenureInfoExecute(r ApiGetTenureInfoRequest) (*http.Response, error)
Execute executes the request
func (*BlocksAPIService) GetTenures ¶
func (a *BlocksAPIService) GetTenures(ctx context.Context, blockId string) ApiGetTenuresRequest
GetTenures Fetch a sequence of Nakamoto blocks in a tenure
Fetch a sequence of Nakamoto blocks in a tenure. The blocks will be served in order from highest to lowest. The blocks will be encoded in their SIP-003 wire format, and concatenated together.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param blockId The tenure-start block ID of the tenure to query @return ApiGetTenuresRequest
func (*BlocksAPIService) GetTenuresExecute ¶
func (a *BlocksAPIService) GetTenuresExecute(r ApiGetTenuresRequest) (*os.File, *http.Response, error)
Execute executes the request
@return *os.File
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type FeesAPIService ¶
type FeesAPIService service
FeesAPIService FeesAPI service
func (*FeesAPIService) GetFeeTransfer ¶
func (a *FeesAPIService) GetFeeTransfer(ctx context.Context) ApiGetFeeTransferRequest
GetFeeTransfer Get estimated fee
Get an estimated fee rate for STX transfer transactions. This a a fee rate / byte, and is returned as a JSON integer
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetFeeTransferRequest
func (*FeesAPIService) GetFeeTransferExecute ¶
func (a *FeesAPIService) GetFeeTransferExecute(r ApiGetFeeTransferRequest) (string, *http.Response, error)
Execute executes the request
@return string
func (*FeesAPIService) PostFeeTransaction ¶
func (a *FeesAPIService) PostFeeTransaction(ctx context.Context) ApiPostFeeTransactionRequest
PostFeeTransaction Get approximate fees for the given transaction
Get an estimated fee for the supplied transaction. This estimates the execution cost of the transaction, the current fee rate of the network, and returns estimates for fee amounts.
- `transaction_payload` is a hex-encoded serialization of the TransactionPayload for the transaction.
- `estimated_len` is an optional argument that provides the endpoint with an estimation of the final length (in bytes) of the transaction, including any post-conditions and signatures
If the node cannot provide an estimate for the transaction (e.g., if the node has never seen a contract-call for the given contract and function) or if estimation is not configured on this node, a 400 response is returned. The 400 response will be a JSON error containing a `reason` field which can be one of the following:
- `DatabaseError` - this Stacks node has had an internal database error while trying to estimate the costs of the supplied transaction.
- `NoEstimateAvailable` - this Stacks node has not seen this kind of contract-call before, and it cannot provide an estimate yet.
- `CostEstimationDisabled` - this Stacks node does not perform fee or cost estimation, and it cannot respond on this endpoint.
The 200 response contains the following data:
- `estimated_cost` - the estimated multi-dimensional cost of executing the Clarity VM on the provided transaction.
- `estimated_cost_scalar` - a unitless integer that the Stacks node uses to compare how much of the block limit is consumed by different transactions. This value incorporates the estimated length of the transaction and the estimated execution cost of the transaction. The range of this integer may vary between different Stacks nodes. In order to compute an estimate of total fee amount for the transaction, this value is multiplied by the same Stacks node's estimated fee rate.
- `cost_scalar_change_by_byte` - a float value that indicates how much the `estimated_cost_scalar` value would increase for every additional byte in the final transaction.
- `estimations` - an array of estimated fee rates and total fees to pay in microSTX for the transaction. This array provides a range of estimates (default: 3) that may be used. Each element of the array contains the following fields:
- `fee_rate` - the estimated value for the current fee rates in the network
- `fee` - the estimated value for the total fee in microSTX that the given transaction should pay. These values are the result of computing: `fee_rate` x `estimated_cost_scalar`. If the estimated fees are less than the minimum relay fee `(1 ustx x estimated_len)`, then that minimum relay fee will be returned here instead.
Note: If the final transaction's byte size is larger than supplied to `estimated_len`, then applications should increase this fee amount by:
`fee_rate` x `cost_scalar_change_by_byte` x (`final_size` - `estimated_size`) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPostFeeTransactionRequest
func (*FeesAPIService) PostFeeTransactionExecute ¶
func (a *FeesAPIService) PostFeeTransactionExecute(r ApiPostFeeTransactionRequest) (*PostFeeTransactionResponseschema, *http.Response, error)
Execute executes the request
@return PostFeeTransactionResponseschema
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GetAccountDataschema ¶
type GetAccountDataschema struct { Balance string `json:"balance"` Locked string `json:"locked"` UnlockHeight int32 `json:"unlock_height"` Nonce int32 `json:"nonce"` BalanceProof string `json:"balance_proof"` NonceProof string `json:"nonce_proof"` }
GetAccountDataschema GET request for account data
func NewGetAccountDataschema ¶
func NewGetAccountDataschema(balance string, locked string, unlockHeight int32, nonce int32, balanceProof string, nonceProof string) *GetAccountDataschema
NewGetAccountDataschema instantiates a new GetAccountDataschema 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
func NewGetAccountDataschemaWithDefaults ¶
func NewGetAccountDataschemaWithDefaults() *GetAccountDataschema
NewGetAccountDataschemaWithDefaults instantiates a new GetAccountDataschema 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
func (*GetAccountDataschema) GetBalance ¶
func (o *GetAccountDataschema) GetBalance() string
GetBalance returns the Balance field value
func (*GetAccountDataschema) GetBalanceOk ¶
func (o *GetAccountDataschema) GetBalanceOk() (*string, bool)
GetBalanceOk returns a tuple with the Balance field value and a boolean to check if the value has been set.
func (*GetAccountDataschema) GetBalanceProof ¶
func (o *GetAccountDataschema) GetBalanceProof() string
GetBalanceProof returns the BalanceProof field value
func (*GetAccountDataschema) GetBalanceProofOk ¶
func (o *GetAccountDataschema) GetBalanceProofOk() (*string, bool)
GetBalanceProofOk returns a tuple with the BalanceProof field value and a boolean to check if the value has been set.
func (*GetAccountDataschema) GetLocked ¶
func (o *GetAccountDataschema) GetLocked() string
GetLocked returns the Locked field value
func (*GetAccountDataschema) GetLockedOk ¶
func (o *GetAccountDataschema) GetLockedOk() (*string, bool)
GetLockedOk returns a tuple with the Locked field value and a boolean to check if the value has been set.
func (*GetAccountDataschema) GetNonce ¶
func (o *GetAccountDataschema) GetNonce() int32
GetNonce returns the Nonce field value
func (*GetAccountDataschema) GetNonceOk ¶
func (o *GetAccountDataschema) GetNonceOk() (*int32, bool)
GetNonceOk returns a tuple with the Nonce field value and a boolean to check if the value has been set.
func (*GetAccountDataschema) GetNonceProof ¶
func (o *GetAccountDataschema) GetNonceProof() string
GetNonceProof returns the NonceProof field value
func (*GetAccountDataschema) GetNonceProofOk ¶
func (o *GetAccountDataschema) GetNonceProofOk() (*string, bool)
GetNonceProofOk returns a tuple with the NonceProof field value and a boolean to check if the value has been set.
func (*GetAccountDataschema) GetUnlockHeight ¶
func (o *GetAccountDataschema) GetUnlockHeight() int32
GetUnlockHeight returns the UnlockHeight field value
func (*GetAccountDataschema) GetUnlockHeightOk ¶
func (o *GetAccountDataschema) GetUnlockHeightOk() (*int32, bool)
GetUnlockHeightOk returns a tuple with the UnlockHeight field value and a boolean to check if the value has been set.
func (GetAccountDataschema) MarshalJSON ¶
func (o GetAccountDataschema) MarshalJSON() ([]byte, error)
func (*GetAccountDataschema) SetBalance ¶
func (o *GetAccountDataschema) SetBalance(v string)
SetBalance sets field value
func (*GetAccountDataschema) SetBalanceProof ¶
func (o *GetAccountDataschema) SetBalanceProof(v string)
SetBalanceProof sets field value
func (*GetAccountDataschema) SetLocked ¶
func (o *GetAccountDataschema) SetLocked(v string)
SetLocked sets field value
func (*GetAccountDataschema) SetNonce ¶
func (o *GetAccountDataschema) SetNonce(v int32)
SetNonce sets field value
func (*GetAccountDataschema) SetNonceProof ¶
func (o *GetAccountDataschema) SetNonceProof(v string)
SetNonceProof sets field value
func (*GetAccountDataschema) SetUnlockHeight ¶
func (o *GetAccountDataschema) SetUnlockHeight(v int32)
SetUnlockHeight sets field value
func (GetAccountDataschema) ToMap ¶
func (o GetAccountDataschema) ToMap() (map[string]interface{}, error)
func (*GetAccountDataschema) UnmarshalJSON ¶
func (o *GetAccountDataschema) UnmarshalJSON(data []byte) (err error)
type GetContractDataMapEntryschema ¶
type GetContractDataMapEntryschema struct { // Hex-encoded string of clarity value. It is always an optional tuple. Data string `json:"data"` // Hex-encoded string of the MARF proof for the data Proof *string `json:"proof,omitempty"` }
GetContractDataMapEntryschema Response of get data map entry request
func NewGetContractDataMapEntryschema ¶
func NewGetContractDataMapEntryschema(data string) *GetContractDataMapEntryschema
NewGetContractDataMapEntryschema instantiates a new GetContractDataMapEntryschema 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
func NewGetContractDataMapEntryschemaWithDefaults ¶
func NewGetContractDataMapEntryschemaWithDefaults() *GetContractDataMapEntryschema
NewGetContractDataMapEntryschemaWithDefaults instantiates a new GetContractDataMapEntryschema 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
func (*GetContractDataMapEntryschema) GetData ¶
func (o *GetContractDataMapEntryschema) GetData() string
GetData returns the Data field value
func (*GetContractDataMapEntryschema) GetDataOk ¶
func (o *GetContractDataMapEntryschema) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*GetContractDataMapEntryschema) GetProof ¶
func (o *GetContractDataMapEntryschema) GetProof() string
GetProof returns the Proof field value if set, zero value otherwise.
func (*GetContractDataMapEntryschema) GetProofOk ¶
func (o *GetContractDataMapEntryschema) GetProofOk() (*string, bool)
GetProofOk returns a tuple with the Proof field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GetContractDataMapEntryschema) HasProof ¶
func (o *GetContractDataMapEntryschema) HasProof() bool
HasProof returns a boolean if a field has been set.
func (GetContractDataMapEntryschema) MarshalJSON ¶
func (o GetContractDataMapEntryschema) MarshalJSON() ([]byte, error)
func (*GetContractDataMapEntryschema) SetData ¶
func (o *GetContractDataMapEntryschema) SetData(v string)
SetData sets field value
func (*GetContractDataMapEntryschema) SetProof ¶
func (o *GetContractDataMapEntryschema) SetProof(v string)
SetProof gets a reference to the given string and assigns it to the Proof field.
func (GetContractDataMapEntryschema) ToMap ¶
func (o GetContractDataMapEntryschema) ToMap() (map[string]interface{}, error)
func (*GetContractDataMapEntryschema) UnmarshalJSON ¶
func (o *GetContractDataMapEntryschema) UnmarshalJSON(data []byte) (err error)
type GetContractInterfaceschema ¶
type GetContractInterfaceschema struct { // List of defined methods Functions []map[string]interface{} `json:"functions"` // List of defined variables Variables []map[string]interface{} `json:"variables"` // List of defined data-maps Maps []map[string]interface{} `json:"maps"` // List of fungible tokens in the contract FungibleTokens []map[string]interface{} `json:"fungible_tokens"` // List of non-fungible tokens in the contract NonFungibleTokens []map[string]interface{} `json:"non_fungible_tokens"` // The epoch of the contract Epoch string `json:"epoch"` // The Clarity version used by the contract ClarityVersion string `json:"clarity_version"` }
GetContractInterfaceschema GET request to get contract interface
func NewGetContractInterfaceschema ¶
func NewGetContractInterfaceschema(functions []map[string]interface{}, variables []map[string]interface{}, maps []map[string]interface{}, fungibleTokens []map[string]interface{}, nonFungibleTokens []map[string]interface{}) *GetContractInterfaceschema
NewGetContractInterfaceschema instantiates a new GetContractInterfaceschema 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
func NewGetContractInterfaceschemaWithDefaults ¶
func NewGetContractInterfaceschemaWithDefaults() *GetContractInterfaceschema
NewGetContractInterfaceschemaWithDefaults instantiates a new GetContractInterfaceschema 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
func (*GetContractInterfaceschema) GetFunctions ¶
func (o *GetContractInterfaceschema) GetFunctions() []map[string]interface{}
GetFunctions returns the Functions field value
func (*GetContractInterfaceschema) GetFunctionsOk ¶
func (o *GetContractInterfaceschema) GetFunctionsOk() ([]map[string]interface{}, bool)
GetFunctionsOk returns a tuple with the Functions field value and a boolean to check if the value has been set.
func (*GetContractInterfaceschema) GetFungibleTokens ¶
func (o *GetContractInterfaceschema) GetFungibleTokens() []map[string]interface{}
GetFungibleTokens returns the FungibleTokens field value
func (*GetContractInterfaceschema) GetFungibleTokensOk ¶
func (o *GetContractInterfaceschema) GetFungibleTokensOk() ([]map[string]interface{}, bool)
GetFungibleTokensOk returns a tuple with the FungibleTokens field value and a boolean to check if the value has been set.
func (*GetContractInterfaceschema) GetMaps ¶
func (o *GetContractInterfaceschema) GetMaps() []map[string]interface{}
GetMaps returns the Maps field value
func (*GetContractInterfaceschema) GetMapsOk ¶
func (o *GetContractInterfaceschema) GetMapsOk() ([]map[string]interface{}, bool)
GetMapsOk returns a tuple with the Maps field value and a boolean to check if the value has been set.
func (*GetContractInterfaceschema) GetNonFungibleTokens ¶
func (o *GetContractInterfaceschema) GetNonFungibleTokens() []map[string]interface{}
GetNonFungibleTokens returns the NonFungibleTokens field value
func (*GetContractInterfaceschema) GetNonFungibleTokensOk ¶
func (o *GetContractInterfaceschema) GetNonFungibleTokensOk() ([]map[string]interface{}, bool)
GetNonFungibleTokensOk returns a tuple with the NonFungibleTokens field value and a boolean to check if the value has been set.
func (*GetContractInterfaceschema) GetVariables ¶
func (o *GetContractInterfaceschema) GetVariables() []map[string]interface{}
GetVariables returns the Variables field value
func (*GetContractInterfaceschema) GetVariablesOk ¶
func (o *GetContractInterfaceschema) GetVariablesOk() ([]map[string]interface{}, bool)
GetVariablesOk returns a tuple with the Variables field value and a boolean to check if the value has been set.
func (GetContractInterfaceschema) MarshalJSON ¶
func (o GetContractInterfaceschema) MarshalJSON() ([]byte, error)
func (*GetContractInterfaceschema) SetFunctions ¶
func (o *GetContractInterfaceschema) SetFunctions(v []map[string]interface{})
SetFunctions sets field value
func (*GetContractInterfaceschema) SetFungibleTokens ¶
func (o *GetContractInterfaceschema) SetFungibleTokens(v []map[string]interface{})
SetFungibleTokens sets field value
func (*GetContractInterfaceschema) SetMaps ¶
func (o *GetContractInterfaceschema) SetMaps(v []map[string]interface{})
SetMaps sets field value
func (*GetContractInterfaceschema) SetNonFungibleTokens ¶
func (o *GetContractInterfaceschema) SetNonFungibleTokens(v []map[string]interface{})
SetNonFungibleTokens sets field value
func (*GetContractInterfaceschema) SetVariables ¶
func (o *GetContractInterfaceschema) SetVariables(v []map[string]interface{})
SetVariables sets field value
func (GetContractInterfaceschema) ToMap ¶
func (o GetContractInterfaceschema) ToMap() (map[string]interface{}, error)
func (*GetContractInterfaceschema) UnmarshalJSON ¶
func (o *GetContractInterfaceschema) UnmarshalJSON(data []byte) (err error)
type GetContractSourceschema ¶
type GetContractSourceschema struct { Source string `json:"source"` PublishHeight int32 `json:"publish_height"` Proof string `json:"proof"` }
GetContractSourceschema GET request to get contract source
func NewGetContractSourceschema ¶
func NewGetContractSourceschema(source string, publishHeight int32, proof string) *GetContractSourceschema
NewGetContractSourceschema instantiates a new GetContractSourceschema 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
func NewGetContractSourceschemaWithDefaults ¶
func NewGetContractSourceschemaWithDefaults() *GetContractSourceschema
NewGetContractSourceschemaWithDefaults instantiates a new GetContractSourceschema 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
func (*GetContractSourceschema) GetProof ¶
func (o *GetContractSourceschema) GetProof() string
GetProof returns the Proof field value
func (*GetContractSourceschema) GetProofOk ¶
func (o *GetContractSourceschema) GetProofOk() (*string, bool)
GetProofOk returns a tuple with the Proof field value and a boolean to check if the value has been set.
func (*GetContractSourceschema) GetPublishHeight ¶
func (o *GetContractSourceschema) GetPublishHeight() int32
GetPublishHeight returns the PublishHeight field value
func (*GetContractSourceschema) GetPublishHeightOk ¶
func (o *GetContractSourceschema) GetPublishHeightOk() (*int32, bool)
GetPublishHeightOk returns a tuple with the PublishHeight field value and a boolean to check if the value has been set.
func (*GetContractSourceschema) GetSource ¶
func (o *GetContractSourceschema) GetSource() string
GetSource returns the Source field value
func (*GetContractSourceschema) GetSourceOk ¶
func (o *GetContractSourceschema) GetSourceOk() (*string, bool)
GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.
func (GetContractSourceschema) MarshalJSON ¶
func (o GetContractSourceschema) MarshalJSON() ([]byte, error)
func (*GetContractSourceschema) SetProof ¶
func (o *GetContractSourceschema) SetProof(v string)
SetProof sets field value
func (*GetContractSourceschema) SetPublishHeight ¶
func (o *GetContractSourceschema) SetPublishHeight(v int32)
SetPublishHeight sets field value
func (*GetContractSourceschema) SetSource ¶
func (o *GetContractSourceschema) SetSource(v string)
SetSource sets field value
func (GetContractSourceschema) ToMap ¶
func (o GetContractSourceschema) ToMap() (map[string]interface{}, error)
func (*GetContractSourceschema) UnmarshalJSON ¶
func (o *GetContractSourceschema) UnmarshalJSON(data []byte) (err error)
type GetInfoschema ¶
type GetInfoschema struct { // identifies the version number for the networking communication, this should not change while a node is running, and will only change if there's an upgrade PeerVersion uint64 `json:"peer_version"` // is a hash used to identify the burnchain view for a node. it incorporates bitcoin chain information and PoX information. nodes that disagree on this value will appear to each other as forks. this value will change after every block PoxConsensus string `json:"pox_consensus"` // latest bitcoin chain height BurnBlockHeight uint64 `json:"burn_block_height"` // same as burn_consensus, but evaluated at stable_burn_block_height StablePoxConsensus string `json:"stable_pox_consensus"` // leftover from stacks 1.0, basically always burn_block_height - 1 StableBurnBlockHeight uint64 `json:"stable_burn_block_height"` // is a version descriptor ServerVersion string `json:"server_version"` // is similar to peer_version and will be used to differentiate between different testnets. this value will be different between mainnet and testnet. once launched, this value will not change NetworkId uint64 `json:"network_id"` // same as network_id, but for bitcoin ParentNetworkId uint64 `json:"parent_network_id"` // the latest Stacks chain height. Stacks forks can occur independent of the Bitcoin chain, that height doesn't increase 1-to-1 with the Bitcoin height StacksTipHeight uint64 `json:"stacks_tip_height"` // the best known block hash for the Stack chain (not including any pending microblocks) StacksTip string `json:"stacks_tip"` // the burn chain (i.e., bitcoin) consensus hash at the time that stacks_tip was mined StacksTipConsensusHash string `json:"stacks_tip_consensus_hash"` // the latest microblock hash if any microblocks were processed. if no microblock has been processed for the current block, a 000.., hex array is returned UnanchoredTip string `json:"unanchored_tip"` // the block height at which the testnet network will be reset. not applicable for mainnet ExitAtBlockHeight uint64 `json:"exit_at_block_height"` }
GetInfoschema GET request that core node information
func NewGetInfoschema ¶
func NewGetInfoschema(peerVersion uint64, poxConsensus string, burnBlockHeight uint64, stablePoxConsensus string, stableBurnBlockHeight uint64, serverVersion string, networkId uint64, parentNetworkId uint64, stacksTipHeight uint64, stacksTip string, stacksTipConsensusHash string, unanchoredTip string, exitAtBlockHeight uint64) *GetInfoschema
NewGetInfoschema instantiates a new GetInfoschema 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
func NewGetInfoschemaWithDefaults ¶
func NewGetInfoschemaWithDefaults() *GetInfoschema
NewGetInfoschemaWithDefaults instantiates a new GetInfoschema 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
func (*GetInfoschema) GetBurnBlockHeight ¶
func (o *GetInfoschema) GetBurnBlockHeight() uint64
GetBurnBlockHeight returns the BurnBlockHeight field value
func (*GetInfoschema) GetBurnBlockHeightOk ¶
func (o *GetInfoschema) GetBurnBlockHeightOk() (*uint64, bool)
GetBurnBlockHeightOk returns a tuple with the BurnBlockHeight field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetExitAtBlockHeight ¶
func (o *GetInfoschema) GetExitAtBlockHeight() uint64
GetExitAtBlockHeight returns the ExitAtBlockHeight field value
func (*GetInfoschema) GetExitAtBlockHeightOk ¶
func (o *GetInfoschema) GetExitAtBlockHeightOk() (*uint64, bool)
GetExitAtBlockHeightOk returns a tuple with the ExitAtBlockHeight field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetNetworkId ¶
func (o *GetInfoschema) GetNetworkId() uint64
GetNetworkId returns the NetworkId field value
func (*GetInfoschema) GetNetworkIdOk ¶
func (o *GetInfoschema) GetNetworkIdOk() (*uint64, bool)
GetNetworkIdOk returns a tuple with the NetworkId field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetParentNetworkId ¶
func (o *GetInfoschema) GetParentNetworkId() uint64
GetParentNetworkId returns the ParentNetworkId field value
func (*GetInfoschema) GetParentNetworkIdOk ¶
func (o *GetInfoschema) GetParentNetworkIdOk() (*uint64, bool)
GetParentNetworkIdOk returns a tuple with the ParentNetworkId field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetPeerVersion ¶
func (o *GetInfoschema) GetPeerVersion() uint64
GetPeerVersion returns the PeerVersion field value
func (*GetInfoschema) GetPeerVersionOk ¶
func (o *GetInfoschema) GetPeerVersionOk() (*uint64, bool)
GetPeerVersionOk returns a tuple with the PeerVersion field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetPoxConsensus ¶
func (o *GetInfoschema) GetPoxConsensus() string
GetPoxConsensus returns the PoxConsensus field value
func (*GetInfoschema) GetPoxConsensusOk ¶
func (o *GetInfoschema) GetPoxConsensusOk() (*string, bool)
GetPoxConsensusOk returns a tuple with the PoxConsensus field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetServerVersion ¶
func (o *GetInfoschema) GetServerVersion() string
GetServerVersion returns the ServerVersion field value
func (*GetInfoschema) GetServerVersionOk ¶
func (o *GetInfoschema) GetServerVersionOk() (*string, bool)
GetServerVersionOk returns a tuple with the ServerVersion field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetStableBurnBlockHeight ¶
func (o *GetInfoschema) GetStableBurnBlockHeight() uint64
GetStableBurnBlockHeight returns the StableBurnBlockHeight field value
func (*GetInfoschema) GetStableBurnBlockHeightOk ¶
func (o *GetInfoschema) GetStableBurnBlockHeightOk() (*uint64, bool)
GetStableBurnBlockHeightOk returns a tuple with the StableBurnBlockHeight field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetStablePoxConsensus ¶
func (o *GetInfoschema) GetStablePoxConsensus() string
GetStablePoxConsensus returns the StablePoxConsensus field value
func (*GetInfoschema) GetStablePoxConsensusOk ¶
func (o *GetInfoschema) GetStablePoxConsensusOk() (*string, bool)
GetStablePoxConsensusOk returns a tuple with the StablePoxConsensus field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetStacksTip ¶
func (o *GetInfoschema) GetStacksTip() string
GetStacksTip returns the StacksTip field value
func (*GetInfoschema) GetStacksTipConsensusHash ¶
func (o *GetInfoschema) GetStacksTipConsensusHash() string
GetStacksTipConsensusHash returns the StacksTipConsensusHash field value
func (*GetInfoschema) GetStacksTipConsensusHashOk ¶
func (o *GetInfoschema) GetStacksTipConsensusHashOk() (*string, bool)
GetStacksTipConsensusHashOk returns a tuple with the StacksTipConsensusHash field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetStacksTipHeight ¶
func (o *GetInfoschema) GetStacksTipHeight() uint64
GetStacksTipHeight returns the StacksTipHeight field value
func (*GetInfoschema) GetStacksTipHeightOk ¶
func (o *GetInfoschema) GetStacksTipHeightOk() (*uint64, bool)
GetStacksTipHeightOk returns a tuple with the StacksTipHeight field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetStacksTipOk ¶
func (o *GetInfoschema) GetStacksTipOk() (*string, bool)
GetStacksTipOk returns a tuple with the StacksTip field value and a boolean to check if the value has been set.
func (*GetInfoschema) GetUnanchoredTip ¶
func (o *GetInfoschema) GetUnanchoredTip() string
GetUnanchoredTip returns the UnanchoredTip field value
func (*GetInfoschema) GetUnanchoredTipOk ¶
func (o *GetInfoschema) GetUnanchoredTipOk() (*string, bool)
GetUnanchoredTipOk returns a tuple with the UnanchoredTip field value and a boolean to check if the value has been set.
func (GetInfoschema) MarshalJSON ¶
func (o GetInfoschema) MarshalJSON() ([]byte, error)
func (*GetInfoschema) SetBurnBlockHeight ¶
func (o *GetInfoschema) SetBurnBlockHeight(v uint64)
SetBurnBlockHeight sets field value
func (*GetInfoschema) SetExitAtBlockHeight ¶
func (o *GetInfoschema) SetExitAtBlockHeight(v uint64)
SetExitAtBlockHeight sets field value
func (*GetInfoschema) SetNetworkId ¶
func (o *GetInfoschema) SetNetworkId(v uint64)
SetNetworkId sets field value
func (*GetInfoschema) SetParentNetworkId ¶
func (o *GetInfoschema) SetParentNetworkId(v uint64)
SetParentNetworkId sets field value
func (*GetInfoschema) SetPeerVersion ¶
func (o *GetInfoschema) SetPeerVersion(v uint64)
SetPeerVersion sets field value
func (*GetInfoschema) SetPoxConsensus ¶
func (o *GetInfoschema) SetPoxConsensus(v string)
SetPoxConsensus sets field value
func (*GetInfoschema) SetServerVersion ¶
func (o *GetInfoschema) SetServerVersion(v string)
SetServerVersion sets field value
func (*GetInfoschema) SetStableBurnBlockHeight ¶
func (o *GetInfoschema) SetStableBurnBlockHeight(v uint64)
SetStableBurnBlockHeight sets field value
func (*GetInfoschema) SetStablePoxConsensus ¶
func (o *GetInfoschema) SetStablePoxConsensus(v string)
SetStablePoxConsensus sets field value
func (*GetInfoschema) SetStacksTip ¶
func (o *GetInfoschema) SetStacksTip(v string)
SetStacksTip sets field value
func (*GetInfoschema) SetStacksTipConsensusHash ¶
func (o *GetInfoschema) SetStacksTipConsensusHash(v string)
SetStacksTipConsensusHash sets field value
func (*GetInfoschema) SetStacksTipHeight ¶
func (o *GetInfoschema) SetStacksTipHeight(v uint64)
SetStacksTipHeight sets field value
func (*GetInfoschema) SetUnanchoredTip ¶
func (o *GetInfoschema) SetUnanchoredTip(v string)
SetUnanchoredTip sets field value
func (GetInfoschema) ToMap ¶
func (o GetInfoschema) ToMap() (map[string]interface{}, error)
func (*GetInfoschema) UnmarshalJSON ¶
func (o *GetInfoschema) UnmarshalJSON(data []byte) (err error)
type GetPoxschema ¶
type GetPoxschema struct { // The contract identifier for the PoX contract ContractId string `json:"contract_id"` // The first burn block evaluated in this Stacks chain FirstBurnchainBlockHeight int32 `json:"first_burnchain_block_height"` // The latest Bitcoin chain block height CurrentBurnchainBlockHeight int32 `json:"current_burnchain_block_height"` // The threshold of stacking participation that must be reached for PoX to activate in any cycle PoxActivationThresholdUstx int32 `json:"pox_activation_threshold_ustx"` // The fraction of liquid STX that must vote to reject PoX in order to prevent the next reward cycle from activating. RejectionFraction int32 `json:"rejection_fraction"` // The length in burn blocks of the reward phase RewardPhaseBlockLength int32 `json:"reward_phase_block_length"` // The length in burn blocks of the prepare phase PreparePhaseBlockLength int32 `json:"prepare_phase_block_length"` // The number of reward slots in a reward cycle RewardSlots int32 `json:"reward_slots"` // The current total amount of liquid microstacks. TotalLiquidSupplyUstx int32 `json:"total_liquid_supply_ustx"` // The length in burn blocks of a whole PoX cycle (reward phase and prepare phase) RewardCycleLength int32 `json:"reward_cycle_length"` CurrentCycle GetPoxschemaCurrentCycle `json:"current_cycle"` NextCycle GetPoxschemaNextCycle `json:"next_cycle"` // The active reward cycle number // Deprecated RewardCycleId int32 `json:"reward_cycle_id"` // Deprecated MinAmountUstx int32 `json:"min_amount_ustx"` // Deprecated PrepareCycleLength int32 `json:"prepare_cycle_length"` // Deprecated RejectionVotesLeftRequired int32 `json:"rejection_votes_left_required"` // Versions of each PoX ContractVersions []GetPoxschemaContractVersionsInner `json:"contract_versions"` }
GetPoxschema Get Proof of Transfer (PoX) information
func NewGetPoxschema ¶
func NewGetPoxschema(contractId string, firstBurnchainBlockHeight int32, currentBurnchainBlockHeight int32, poxActivationThresholdUstx int32, rejectionFraction int32, rewardPhaseBlockLength int32, preparePhaseBlockLength int32, rewardSlots int32, totalLiquidSupplyUstx int32, rewardCycleLength int32, currentCycle GetPoxschemaCurrentCycle, nextCycle GetPoxschemaNextCycle, rewardCycleId int32, minAmountUstx int32, prepareCycleLength int32, rejectionVotesLeftRequired int32, contractVersions []GetPoxschemaContractVersionsInner) *GetPoxschema
NewGetPoxschema instantiates a new GetPoxschema 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
func NewGetPoxschemaWithDefaults ¶
func NewGetPoxschemaWithDefaults() *GetPoxschema
NewGetPoxschemaWithDefaults instantiates a new GetPoxschema 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
func (*GetPoxschema) GetContractId ¶
func (o *GetPoxschema) GetContractId() string
GetContractId returns the ContractId field value
func (*GetPoxschema) GetContractIdOk ¶
func (o *GetPoxschema) GetContractIdOk() (*string, bool)
GetContractIdOk returns a tuple with the ContractId field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetContractVersions ¶
func (o *GetPoxschema) GetContractVersions() []GetPoxschemaContractVersionsInner
GetContractVersions returns the ContractVersions field value
func (*GetPoxschema) GetContractVersionsOk ¶
func (o *GetPoxschema) GetContractVersionsOk() ([]GetPoxschemaContractVersionsInner, bool)
GetContractVersionsOk returns a tuple with the ContractVersions field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetCurrentBurnchainBlockHeight ¶
func (o *GetPoxschema) GetCurrentBurnchainBlockHeight() int32
GetCurrentBurnchainBlockHeight returns the CurrentBurnchainBlockHeight field value
func (*GetPoxschema) GetCurrentBurnchainBlockHeightOk ¶
func (o *GetPoxschema) GetCurrentBurnchainBlockHeightOk() (*int32, bool)
GetCurrentBurnchainBlockHeightOk returns a tuple with the CurrentBurnchainBlockHeight field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetCurrentCycle ¶
func (o *GetPoxschema) GetCurrentCycle() GetPoxschemaCurrentCycle
GetCurrentCycle returns the CurrentCycle field value
func (*GetPoxschema) GetCurrentCycleOk ¶
func (o *GetPoxschema) GetCurrentCycleOk() (*GetPoxschemaCurrentCycle, bool)
GetCurrentCycleOk returns a tuple with the CurrentCycle field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetFirstBurnchainBlockHeight ¶
func (o *GetPoxschema) GetFirstBurnchainBlockHeight() int32
GetFirstBurnchainBlockHeight returns the FirstBurnchainBlockHeight field value
func (*GetPoxschema) GetFirstBurnchainBlockHeightOk ¶
func (o *GetPoxschema) GetFirstBurnchainBlockHeightOk() (*int32, bool)
GetFirstBurnchainBlockHeightOk returns a tuple with the FirstBurnchainBlockHeight field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetMinAmountUstx ¶
func (o *GetPoxschema) GetMinAmountUstx() int32
GetMinAmountUstx returns the MinAmountUstx field value Deprecated
func (*GetPoxschema) GetMinAmountUstxOk ¶
func (o *GetPoxschema) GetMinAmountUstxOk() (*int32, bool)
GetMinAmountUstxOk returns a tuple with the MinAmountUstx field value and a boolean to check if the value has been set. Deprecated
func (*GetPoxschema) GetNextCycle ¶
func (o *GetPoxschema) GetNextCycle() GetPoxschemaNextCycle
GetNextCycle returns the NextCycle field value
func (*GetPoxschema) GetNextCycleOk ¶
func (o *GetPoxschema) GetNextCycleOk() (*GetPoxschemaNextCycle, bool)
GetNextCycleOk returns a tuple with the NextCycle field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetPoxActivationThresholdUstx ¶
func (o *GetPoxschema) GetPoxActivationThresholdUstx() int32
GetPoxActivationThresholdUstx returns the PoxActivationThresholdUstx field value
func (*GetPoxschema) GetPoxActivationThresholdUstxOk ¶
func (o *GetPoxschema) GetPoxActivationThresholdUstxOk() (*int32, bool)
GetPoxActivationThresholdUstxOk returns a tuple with the PoxActivationThresholdUstx field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetPrepareCycleLength ¶
func (o *GetPoxschema) GetPrepareCycleLength() int32
GetPrepareCycleLength returns the PrepareCycleLength field value Deprecated
func (*GetPoxschema) GetPrepareCycleLengthOk ¶
func (o *GetPoxschema) GetPrepareCycleLengthOk() (*int32, bool)
GetPrepareCycleLengthOk returns a tuple with the PrepareCycleLength field value and a boolean to check if the value has been set. Deprecated
func (*GetPoxschema) GetPreparePhaseBlockLength ¶
func (o *GetPoxschema) GetPreparePhaseBlockLength() int32
GetPreparePhaseBlockLength returns the PreparePhaseBlockLength field value
func (*GetPoxschema) GetPreparePhaseBlockLengthOk ¶
func (o *GetPoxschema) GetPreparePhaseBlockLengthOk() (*int32, bool)
GetPreparePhaseBlockLengthOk returns a tuple with the PreparePhaseBlockLength field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetRejectionFraction ¶
func (o *GetPoxschema) GetRejectionFraction() int32
GetRejectionFraction returns the RejectionFraction field value
func (*GetPoxschema) GetRejectionFractionOk ¶
func (o *GetPoxschema) GetRejectionFractionOk() (*int32, bool)
GetRejectionFractionOk returns a tuple with the RejectionFraction field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetRejectionVotesLeftRequired ¶
func (o *GetPoxschema) GetRejectionVotesLeftRequired() int32
GetRejectionVotesLeftRequired returns the RejectionVotesLeftRequired field value Deprecated
func (*GetPoxschema) GetRejectionVotesLeftRequiredOk ¶
func (o *GetPoxschema) GetRejectionVotesLeftRequiredOk() (*int32, bool)
GetRejectionVotesLeftRequiredOk returns a tuple with the RejectionVotesLeftRequired field value and a boolean to check if the value has been set. Deprecated
func (*GetPoxschema) GetRewardCycleId ¶
func (o *GetPoxschema) GetRewardCycleId() int32
GetRewardCycleId returns the RewardCycleId field value Deprecated
func (*GetPoxschema) GetRewardCycleIdOk ¶
func (o *GetPoxschema) GetRewardCycleIdOk() (*int32, bool)
GetRewardCycleIdOk returns a tuple with the RewardCycleId field value and a boolean to check if the value has been set. Deprecated
func (*GetPoxschema) GetRewardCycleLength ¶
func (o *GetPoxschema) GetRewardCycleLength() int32
GetRewardCycleLength returns the RewardCycleLength field value
func (*GetPoxschema) GetRewardCycleLengthOk ¶
func (o *GetPoxschema) GetRewardCycleLengthOk() (*int32, bool)
GetRewardCycleLengthOk returns a tuple with the RewardCycleLength field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetRewardPhaseBlockLength ¶
func (o *GetPoxschema) GetRewardPhaseBlockLength() int32
GetRewardPhaseBlockLength returns the RewardPhaseBlockLength field value
func (*GetPoxschema) GetRewardPhaseBlockLengthOk ¶
func (o *GetPoxschema) GetRewardPhaseBlockLengthOk() (*int32, bool)
GetRewardPhaseBlockLengthOk returns a tuple with the RewardPhaseBlockLength field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetRewardSlots ¶
func (o *GetPoxschema) GetRewardSlots() int32
GetRewardSlots returns the RewardSlots field value
func (*GetPoxschema) GetRewardSlotsOk ¶
func (o *GetPoxschema) GetRewardSlotsOk() (*int32, bool)
GetRewardSlotsOk returns a tuple with the RewardSlots field value and a boolean to check if the value has been set.
func (*GetPoxschema) GetTotalLiquidSupplyUstx ¶
func (o *GetPoxschema) GetTotalLiquidSupplyUstx() int32
GetTotalLiquidSupplyUstx returns the TotalLiquidSupplyUstx field value
func (*GetPoxschema) GetTotalLiquidSupplyUstxOk ¶
func (o *GetPoxschema) GetTotalLiquidSupplyUstxOk() (*int32, bool)
GetTotalLiquidSupplyUstxOk returns a tuple with the TotalLiquidSupplyUstx field value and a boolean to check if the value has been set.
func (GetPoxschema) MarshalJSON ¶
func (o GetPoxschema) MarshalJSON() ([]byte, error)
func (*GetPoxschema) SetContractId ¶
func (o *GetPoxschema) SetContractId(v string)
SetContractId sets field value
func (*GetPoxschema) SetContractVersions ¶
func (o *GetPoxschema) SetContractVersions(v []GetPoxschemaContractVersionsInner)
SetContractVersions sets field value
func (*GetPoxschema) SetCurrentBurnchainBlockHeight ¶
func (o *GetPoxschema) SetCurrentBurnchainBlockHeight(v int32)
SetCurrentBurnchainBlockHeight sets field value
func (*GetPoxschema) SetCurrentCycle ¶
func (o *GetPoxschema) SetCurrentCycle(v GetPoxschemaCurrentCycle)
SetCurrentCycle sets field value
func (*GetPoxschema) SetFirstBurnchainBlockHeight ¶
func (o *GetPoxschema) SetFirstBurnchainBlockHeight(v int32)
SetFirstBurnchainBlockHeight sets field value
func (*GetPoxschema) SetMinAmountUstx ¶
func (o *GetPoxschema) SetMinAmountUstx(v int32)
SetMinAmountUstx sets field value Deprecated
func (*GetPoxschema) SetNextCycle ¶
func (o *GetPoxschema) SetNextCycle(v GetPoxschemaNextCycle)
SetNextCycle sets field value
func (*GetPoxschema) SetPoxActivationThresholdUstx ¶
func (o *GetPoxschema) SetPoxActivationThresholdUstx(v int32)
SetPoxActivationThresholdUstx sets field value
func (*GetPoxschema) SetPrepareCycleLength ¶
func (o *GetPoxschema) SetPrepareCycleLength(v int32)
SetPrepareCycleLength sets field value Deprecated
func (*GetPoxschema) SetPreparePhaseBlockLength ¶
func (o *GetPoxschema) SetPreparePhaseBlockLength(v int32)
SetPreparePhaseBlockLength sets field value
func (*GetPoxschema) SetRejectionFraction ¶
func (o *GetPoxschema) SetRejectionFraction(v int32)
SetRejectionFraction sets field value
func (*GetPoxschema) SetRejectionVotesLeftRequired ¶
func (o *GetPoxschema) SetRejectionVotesLeftRequired(v int32)
SetRejectionVotesLeftRequired sets field value Deprecated
func (*GetPoxschema) SetRewardCycleId ¶
func (o *GetPoxschema) SetRewardCycleId(v int32)
SetRewardCycleId sets field value Deprecated
func (*GetPoxschema) SetRewardCycleLength ¶
func (o *GetPoxschema) SetRewardCycleLength(v int32)
SetRewardCycleLength sets field value
func (*GetPoxschema) SetRewardPhaseBlockLength ¶
func (o *GetPoxschema) SetRewardPhaseBlockLength(v int32)
SetRewardPhaseBlockLength sets field value
func (*GetPoxschema) SetRewardSlots ¶
func (o *GetPoxschema) SetRewardSlots(v int32)
SetRewardSlots sets field value
func (*GetPoxschema) SetTotalLiquidSupplyUstx ¶
func (o *GetPoxschema) SetTotalLiquidSupplyUstx(v int32)
SetTotalLiquidSupplyUstx sets field value
func (GetPoxschema) ToMap ¶
func (o GetPoxschema) ToMap() (map[string]interface{}, error)
func (*GetPoxschema) UnmarshalJSON ¶
func (o *GetPoxschema) UnmarshalJSON(data []byte) (err error)
type GetPoxschemaContractVersionsInner ¶
type GetPoxschemaContractVersionsInner struct { // The contract identifier for the PoX contract ContractId string `json:"contract_id"` // The burn block height at which this version of PoX is activated ActivationBurnchainBlockHeight int32 `json:"activation_burnchain_block_height"` // The first reward cycle number that uses this version of PoX FirstRewardCycleId int32 `json:"first_reward_cycle_id"` }
GetPoxschemaContractVersionsInner struct for GetPoxschemaContractVersionsInner
func NewGetPoxschemaContractVersionsInner ¶
func NewGetPoxschemaContractVersionsInner(contractId string, activationBurnchainBlockHeight int32, firstRewardCycleId int32) *GetPoxschemaContractVersionsInner
NewGetPoxschemaContractVersionsInner instantiates a new GetPoxschemaContractVersionsInner 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
func NewGetPoxschemaContractVersionsInnerWithDefaults ¶
func NewGetPoxschemaContractVersionsInnerWithDefaults() *GetPoxschemaContractVersionsInner
NewGetPoxschemaContractVersionsInnerWithDefaults instantiates a new GetPoxschemaContractVersionsInner 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
func (*GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeight ¶
func (o *GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeight() int32
GetActivationBurnchainBlockHeight returns the ActivationBurnchainBlockHeight field value
func (*GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeightOk ¶
func (o *GetPoxschemaContractVersionsInner) GetActivationBurnchainBlockHeightOk() (*int32, bool)
GetActivationBurnchainBlockHeightOk returns a tuple with the ActivationBurnchainBlockHeight field value and a boolean to check if the value has been set.
func (*GetPoxschemaContractVersionsInner) GetContractId ¶
func (o *GetPoxschemaContractVersionsInner) GetContractId() string
GetContractId returns the ContractId field value
func (*GetPoxschemaContractVersionsInner) GetContractIdOk ¶
func (o *GetPoxschemaContractVersionsInner) GetContractIdOk() (*string, bool)
GetContractIdOk returns a tuple with the ContractId field value and a boolean to check if the value has been set.
func (*GetPoxschemaContractVersionsInner) GetFirstRewardCycleId ¶
func (o *GetPoxschemaContractVersionsInner) GetFirstRewardCycleId() int32
GetFirstRewardCycleId returns the FirstRewardCycleId field value
func (*GetPoxschemaContractVersionsInner) GetFirstRewardCycleIdOk ¶
func (o *GetPoxschemaContractVersionsInner) GetFirstRewardCycleIdOk() (*int32, bool)
GetFirstRewardCycleIdOk returns a tuple with the FirstRewardCycleId field value and a boolean to check if the value has been set.
func (GetPoxschemaContractVersionsInner) MarshalJSON ¶
func (o GetPoxschemaContractVersionsInner) MarshalJSON() ([]byte, error)
func (*GetPoxschemaContractVersionsInner) SetActivationBurnchainBlockHeight ¶
func (o *GetPoxschemaContractVersionsInner) SetActivationBurnchainBlockHeight(v int32)
SetActivationBurnchainBlockHeight sets field value
func (*GetPoxschemaContractVersionsInner) SetContractId ¶
func (o *GetPoxschemaContractVersionsInner) SetContractId(v string)
SetContractId sets field value
func (*GetPoxschemaContractVersionsInner) SetFirstRewardCycleId ¶
func (o *GetPoxschemaContractVersionsInner) SetFirstRewardCycleId(v int32)
SetFirstRewardCycleId sets field value
func (GetPoxschemaContractVersionsInner) ToMap ¶
func (o GetPoxschemaContractVersionsInner) ToMap() (map[string]interface{}, error)
func (*GetPoxschemaContractVersionsInner) UnmarshalJSON ¶
func (o *GetPoxschemaContractVersionsInner) UnmarshalJSON(data []byte) (err error)
type GetPoxschemaCurrentCycle ¶
type GetPoxschemaCurrentCycle struct { // The reward cycle number Id int32 `json:"id"` // The threshold amount for obtaining a slot in this reward cycle. MinThresholdUstx int32 `json:"min_threshold_ustx"` // The total amount of stacked microstacks in this reward cycle. StackedUstx int32 `json:"stacked_ustx"` // Whether or not PoX is active during this reward cycle. IsPoxActive bool `json:"is_pox_active"` }
GetPoxschemaCurrentCycle struct for GetPoxschemaCurrentCycle
func NewGetPoxschemaCurrentCycle ¶
func NewGetPoxschemaCurrentCycle(id int32, minThresholdUstx int32, stackedUstx int32, isPoxActive bool) *GetPoxschemaCurrentCycle
NewGetPoxschemaCurrentCycle instantiates a new GetPoxschemaCurrentCycle 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
func NewGetPoxschemaCurrentCycleWithDefaults ¶
func NewGetPoxschemaCurrentCycleWithDefaults() *GetPoxschemaCurrentCycle
NewGetPoxschemaCurrentCycleWithDefaults instantiates a new GetPoxschemaCurrentCycle 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
func (*GetPoxschemaCurrentCycle) GetId ¶
func (o *GetPoxschemaCurrentCycle) GetId() int32
GetId returns the Id field value
func (*GetPoxschemaCurrentCycle) GetIdOk ¶
func (o *GetPoxschemaCurrentCycle) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*GetPoxschemaCurrentCycle) GetIsPoxActive ¶
func (o *GetPoxschemaCurrentCycle) GetIsPoxActive() bool
GetIsPoxActive returns the IsPoxActive field value
func (*GetPoxschemaCurrentCycle) GetIsPoxActiveOk ¶
func (o *GetPoxschemaCurrentCycle) GetIsPoxActiveOk() (*bool, bool)
GetIsPoxActiveOk returns a tuple with the IsPoxActive field value and a boolean to check if the value has been set.
func (*GetPoxschemaCurrentCycle) GetMinThresholdUstx ¶
func (o *GetPoxschemaCurrentCycle) GetMinThresholdUstx() int32
GetMinThresholdUstx returns the MinThresholdUstx field value
func (*GetPoxschemaCurrentCycle) GetMinThresholdUstxOk ¶
func (o *GetPoxschemaCurrentCycle) GetMinThresholdUstxOk() (*int32, bool)
GetMinThresholdUstxOk returns a tuple with the MinThresholdUstx field value and a boolean to check if the value has been set.
func (*GetPoxschemaCurrentCycle) GetStackedUstx ¶
func (o *GetPoxschemaCurrentCycle) GetStackedUstx() int32
GetStackedUstx returns the StackedUstx field value
func (*GetPoxschemaCurrentCycle) GetStackedUstxOk ¶
func (o *GetPoxschemaCurrentCycle) GetStackedUstxOk() (*int32, bool)
GetStackedUstxOk returns a tuple with the StackedUstx field value and a boolean to check if the value has been set.
func (GetPoxschemaCurrentCycle) MarshalJSON ¶
func (o GetPoxschemaCurrentCycle) MarshalJSON() ([]byte, error)
func (*GetPoxschemaCurrentCycle) SetId ¶
func (o *GetPoxschemaCurrentCycle) SetId(v int32)
SetId sets field value
func (*GetPoxschemaCurrentCycle) SetIsPoxActive ¶
func (o *GetPoxschemaCurrentCycle) SetIsPoxActive(v bool)
SetIsPoxActive sets field value
func (*GetPoxschemaCurrentCycle) SetMinThresholdUstx ¶
func (o *GetPoxschemaCurrentCycle) SetMinThresholdUstx(v int32)
SetMinThresholdUstx sets field value
func (*GetPoxschemaCurrentCycle) SetStackedUstx ¶
func (o *GetPoxschemaCurrentCycle) SetStackedUstx(v int32)
SetStackedUstx sets field value
func (GetPoxschemaCurrentCycle) ToMap ¶
func (o GetPoxschemaCurrentCycle) ToMap() (map[string]interface{}, error)
func (*GetPoxschemaCurrentCycle) UnmarshalJSON ¶
func (o *GetPoxschemaCurrentCycle) UnmarshalJSON(data []byte) (err error)
type GetPoxschemaNextCycle ¶
type GetPoxschemaNextCycle struct { // The reward cycle number Id int32 `json:"id"` // The threshold amount for obtaining a slot in this reward cycle. MinThresholdUstx int32 `json:"min_threshold_ustx"` // The total amount of stacked microstacks in this reward cycle. StackedUstx int32 `json:"stacked_ustx"` // The minimum amount that can be used to submit a `stack-stx` call. MinIncrementUstx int32 `json:"min_increment_ustx"` // The burn block height when the prepare phase for this cycle begins. Any eligible stacks must be stacked before this block. PreparePhaseStartBlockHeight int32 `json:"prepare_phase_start_block_height"` // The number of burn blocks until the prepare phase for this cycle starts. If the prepare phase for this cycle already started, this value will be negative. BlocksUntilPreparePhase int32 `json:"blocks_until_prepare_phase"` // The burn block height when the reward phase for this cycle begins. Any eligible stacks must be stacked before this block. RewardPhaseStartBlockHeight int32 `json:"reward_phase_start_block_height"` // The number of burn blocks until this reward phase starts. BlocksUntilRewardPhase int32 `json:"blocks_until_reward_phase"` // The remaining amount of liquid STX that must vote to reject the next reward cycle to prevent the next reward cycle from activating. UstxUntilPoxRejection int32 `json:"ustx_until_pox_rejection"` }
GetPoxschemaNextCycle struct for GetPoxschemaNextCycle
func NewGetPoxschemaNextCycle ¶
func NewGetPoxschemaNextCycle(id int32, minThresholdUstx int32, stackedUstx int32, minIncrementUstx int32, preparePhaseStartBlockHeight int32, blocksUntilPreparePhase int32, rewardPhaseStartBlockHeight int32, blocksUntilRewardPhase int32, ustxUntilPoxRejection int32) *GetPoxschemaNextCycle
NewGetPoxschemaNextCycle instantiates a new GetPoxschemaNextCycle 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
func NewGetPoxschemaNextCycleWithDefaults ¶
func NewGetPoxschemaNextCycleWithDefaults() *GetPoxschemaNextCycle
NewGetPoxschemaNextCycleWithDefaults instantiates a new GetPoxschemaNextCycle 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
func (*GetPoxschemaNextCycle) GetBlocksUntilPreparePhase ¶
func (o *GetPoxschemaNextCycle) GetBlocksUntilPreparePhase() int32
GetBlocksUntilPreparePhase returns the BlocksUntilPreparePhase field value
func (*GetPoxschemaNextCycle) GetBlocksUntilPreparePhaseOk ¶
func (o *GetPoxschemaNextCycle) GetBlocksUntilPreparePhaseOk() (*int32, bool)
GetBlocksUntilPreparePhaseOk returns a tuple with the BlocksUntilPreparePhase field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetBlocksUntilRewardPhase ¶
func (o *GetPoxschemaNextCycle) GetBlocksUntilRewardPhase() int32
GetBlocksUntilRewardPhase returns the BlocksUntilRewardPhase field value
func (*GetPoxschemaNextCycle) GetBlocksUntilRewardPhaseOk ¶
func (o *GetPoxschemaNextCycle) GetBlocksUntilRewardPhaseOk() (*int32, bool)
GetBlocksUntilRewardPhaseOk returns a tuple with the BlocksUntilRewardPhase field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetId ¶
func (o *GetPoxschemaNextCycle) GetId() int32
GetId returns the Id field value
func (*GetPoxschemaNextCycle) GetIdOk ¶
func (o *GetPoxschemaNextCycle) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetMinIncrementUstx ¶
func (o *GetPoxschemaNextCycle) GetMinIncrementUstx() int32
GetMinIncrementUstx returns the MinIncrementUstx field value
func (*GetPoxschemaNextCycle) GetMinIncrementUstxOk ¶
func (o *GetPoxschemaNextCycle) GetMinIncrementUstxOk() (*int32, bool)
GetMinIncrementUstxOk returns a tuple with the MinIncrementUstx field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetMinThresholdUstx ¶
func (o *GetPoxschemaNextCycle) GetMinThresholdUstx() int32
GetMinThresholdUstx returns the MinThresholdUstx field value
func (*GetPoxschemaNextCycle) GetMinThresholdUstxOk ¶
func (o *GetPoxschemaNextCycle) GetMinThresholdUstxOk() (*int32, bool)
GetMinThresholdUstxOk returns a tuple with the MinThresholdUstx field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeight ¶
func (o *GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeight() int32
GetPreparePhaseStartBlockHeight returns the PreparePhaseStartBlockHeight field value
func (*GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeightOk ¶
func (o *GetPoxschemaNextCycle) GetPreparePhaseStartBlockHeightOk() (*int32, bool)
GetPreparePhaseStartBlockHeightOk returns a tuple with the PreparePhaseStartBlockHeight field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeight ¶
func (o *GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeight() int32
GetRewardPhaseStartBlockHeight returns the RewardPhaseStartBlockHeight field value
func (*GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeightOk ¶
func (o *GetPoxschemaNextCycle) GetRewardPhaseStartBlockHeightOk() (*int32, bool)
GetRewardPhaseStartBlockHeightOk returns a tuple with the RewardPhaseStartBlockHeight field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetStackedUstx ¶
func (o *GetPoxschemaNextCycle) GetStackedUstx() int32
GetStackedUstx returns the StackedUstx field value
func (*GetPoxschemaNextCycle) GetStackedUstxOk ¶
func (o *GetPoxschemaNextCycle) GetStackedUstxOk() (*int32, bool)
GetStackedUstxOk returns a tuple with the StackedUstx field value and a boolean to check if the value has been set.
func (*GetPoxschemaNextCycle) GetUstxUntilPoxRejection ¶
func (o *GetPoxschemaNextCycle) GetUstxUntilPoxRejection() int32
GetUstxUntilPoxRejection returns the UstxUntilPoxRejection field value
func (*GetPoxschemaNextCycle) GetUstxUntilPoxRejectionOk ¶
func (o *GetPoxschemaNextCycle) GetUstxUntilPoxRejectionOk() (*int32, bool)
GetUstxUntilPoxRejectionOk returns a tuple with the UstxUntilPoxRejection field value and a boolean to check if the value has been set.
func (GetPoxschemaNextCycle) MarshalJSON ¶
func (o GetPoxschemaNextCycle) MarshalJSON() ([]byte, error)
func (*GetPoxschemaNextCycle) SetBlocksUntilPreparePhase ¶
func (o *GetPoxschemaNextCycle) SetBlocksUntilPreparePhase(v int32)
SetBlocksUntilPreparePhase sets field value
func (*GetPoxschemaNextCycle) SetBlocksUntilRewardPhase ¶
func (o *GetPoxschemaNextCycle) SetBlocksUntilRewardPhase(v int32)
SetBlocksUntilRewardPhase sets field value
func (*GetPoxschemaNextCycle) SetId ¶
func (o *GetPoxschemaNextCycle) SetId(v int32)
SetId sets field value
func (*GetPoxschemaNextCycle) SetMinIncrementUstx ¶
func (o *GetPoxschemaNextCycle) SetMinIncrementUstx(v int32)
SetMinIncrementUstx sets field value
func (*GetPoxschemaNextCycle) SetMinThresholdUstx ¶
func (o *GetPoxschemaNextCycle) SetMinThresholdUstx(v int32)
SetMinThresholdUstx sets field value
func (*GetPoxschemaNextCycle) SetPreparePhaseStartBlockHeight ¶
func (o *GetPoxschemaNextCycle) SetPreparePhaseStartBlockHeight(v int32)
SetPreparePhaseStartBlockHeight sets field value
func (*GetPoxschemaNextCycle) SetRewardPhaseStartBlockHeight ¶
func (o *GetPoxschemaNextCycle) SetRewardPhaseStartBlockHeight(v int32)
SetRewardPhaseStartBlockHeight sets field value
func (*GetPoxschemaNextCycle) SetStackedUstx ¶
func (o *GetPoxschemaNextCycle) SetStackedUstx(v int32)
SetStackedUstx sets field value
func (*GetPoxschemaNextCycle) SetUstxUntilPoxRejection ¶
func (o *GetPoxschemaNextCycle) SetUstxUntilPoxRejection(v int32)
SetUstxUntilPoxRejection sets field value
func (GetPoxschemaNextCycle) ToMap ¶
func (o GetPoxschemaNextCycle) ToMap() (map[string]interface{}, error)
func (*GetPoxschemaNextCycle) UnmarshalJSON ¶
func (o *GetPoxschemaNextCycle) UnmarshalJSON(data []byte) (err error)
type InfoAPIService ¶
type InfoAPIService service
InfoAPIService InfoAPI service
func (*InfoAPIService) GetBurnOps ¶
func (a *InfoAPIService) GetBurnOps(ctx context.Context, burnHeight int32, opType string) ApiGetBurnOpsRequest
GetBurnOps Get burn operations
Get all burn operations of type `op_type` successfully read at `burn_height`. Valid `op_type`s are `peg_in`, `peg_out_request` and `peg_out_fulfill`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param burnHeight height of the burnchain (Bitcoin) @param opType name of the burnchain operation type @return ApiGetBurnOpsRequest
func (*InfoAPIService) GetBurnOpsExecute ¶
func (a *InfoAPIService) GetBurnOpsExecute(r ApiGetBurnOpsRequest) (*http.Response, error)
Execute executes the request
func (*InfoAPIService) GetCoreApiInfo ¶
func (a *InfoAPIService) GetCoreApiInfo(ctx context.Context) ApiGetCoreApiInfoRequest
GetCoreApiInfo Get Core API info
Get Core API information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetCoreApiInfoRequest
func (*InfoAPIService) GetCoreApiInfoExecute ¶
func (a *InfoAPIService) GetCoreApiInfoExecute(r ApiGetCoreApiInfoRequest) (*GetInfoschema, *http.Response, error)
Execute executes the request
@return GetInfoschema
func (*InfoAPIService) GetPoxInfo ¶
func (a *InfoAPIService) GetPoxInfo(ctx context.Context) ApiGetPoxInfoRequest
GetPoxInfo Get PoX details
Get Proof of Transfer (PoX) information. Can be used for Stacking.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetPoxInfoRequest
func (*InfoAPIService) GetPoxInfoExecute ¶
func (a *InfoAPIService) GetPoxInfoExecute(r ApiGetPoxInfoRequest) (*GetPoxschema, *http.Response, error)
Execute executes the request
@return GetPoxschema
type MappedNullable ¶
type MiningAPIService ¶
type MiningAPIService service
MiningAPIService MiningAPI service
func (*MiningAPIService) GetStackerSet ¶
func (a *MiningAPIService) GetStackerSet(ctx context.Context, cycleNumber int32) ApiGetStackerSetRequest
GetStackerSet Fetch the stacker and signer set information for a given cycle.
Used to get stacker and signer set information for a given cycle.
This will only return information for cycles started in Epoch-2.5 where PoX-4 was active and subsequent cycles.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param cycleNumber reward cycle number @return ApiGetStackerSetRequest
func (*MiningAPIService) GetStackerSetExecute ¶
func (a *MiningAPIService) GetStackerSetExecute(r ApiGetStackerSetRequest) (*http.Response, error)
Execute executes the request
func (*MiningAPIService) PostBlockProposal ¶
func (a *MiningAPIService) PostBlockProposal(ctx context.Context) ApiPostBlockProposalRequest
PostBlockProposal Validate a proposed Stacks block
Used by stackers to validate a proposed Stacks block from a miner.
**This API endpoint requires a basic Authorization header.**
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPostBlockProposalRequest
func (*MiningAPIService) PostBlockProposalExecute ¶
func (a *MiningAPIService) PostBlockProposalExecute(r ApiPostBlockProposalRequest) (*http.Response, error)
Execute executes the request
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableGetAccountDataschema ¶
type NullableGetAccountDataschema struct {
// contains filtered or unexported fields
}
func NewNullableGetAccountDataschema ¶
func NewNullableGetAccountDataschema(val *GetAccountDataschema) *NullableGetAccountDataschema
func (NullableGetAccountDataschema) Get ¶
func (v NullableGetAccountDataschema) Get() *GetAccountDataschema
func (NullableGetAccountDataschema) IsSet ¶
func (v NullableGetAccountDataschema) IsSet() bool
func (NullableGetAccountDataschema) MarshalJSON ¶
func (v NullableGetAccountDataschema) MarshalJSON() ([]byte, error)
func (*NullableGetAccountDataschema) Set ¶
func (v *NullableGetAccountDataschema) Set(val *GetAccountDataschema)
func (*NullableGetAccountDataschema) UnmarshalJSON ¶
func (v *NullableGetAccountDataschema) UnmarshalJSON(src []byte) error
func (*NullableGetAccountDataschema) Unset ¶
func (v *NullableGetAccountDataschema) Unset()
type NullableGetContractDataMapEntryschema ¶
type NullableGetContractDataMapEntryschema struct {
// contains filtered or unexported fields
}
func NewNullableGetContractDataMapEntryschema ¶
func NewNullableGetContractDataMapEntryschema(val *GetContractDataMapEntryschema) *NullableGetContractDataMapEntryschema
func (NullableGetContractDataMapEntryschema) Get ¶
func (v NullableGetContractDataMapEntryschema) Get() *GetContractDataMapEntryschema
func (NullableGetContractDataMapEntryschema) IsSet ¶
func (v NullableGetContractDataMapEntryschema) IsSet() bool
func (NullableGetContractDataMapEntryschema) MarshalJSON ¶
func (v NullableGetContractDataMapEntryschema) MarshalJSON() ([]byte, error)
func (*NullableGetContractDataMapEntryschema) Set ¶
func (v *NullableGetContractDataMapEntryschema) Set(val *GetContractDataMapEntryschema)
func (*NullableGetContractDataMapEntryschema) UnmarshalJSON ¶
func (v *NullableGetContractDataMapEntryschema) UnmarshalJSON(src []byte) error
func (*NullableGetContractDataMapEntryschema) Unset ¶
func (v *NullableGetContractDataMapEntryschema) Unset()
type NullableGetContractInterfaceschema ¶
type NullableGetContractInterfaceschema struct {
// contains filtered or unexported fields
}
func NewNullableGetContractInterfaceschema ¶
func NewNullableGetContractInterfaceschema(val *GetContractInterfaceschema) *NullableGetContractInterfaceschema
func (NullableGetContractInterfaceschema) Get ¶
func (v NullableGetContractInterfaceschema) Get() *GetContractInterfaceschema
func (NullableGetContractInterfaceschema) IsSet ¶
func (v NullableGetContractInterfaceschema) IsSet() bool
func (NullableGetContractInterfaceschema) MarshalJSON ¶
func (v NullableGetContractInterfaceschema) MarshalJSON() ([]byte, error)
func (*NullableGetContractInterfaceschema) Set ¶
func (v *NullableGetContractInterfaceschema) Set(val *GetContractInterfaceschema)
func (*NullableGetContractInterfaceschema) UnmarshalJSON ¶
func (v *NullableGetContractInterfaceschema) UnmarshalJSON(src []byte) error
func (*NullableGetContractInterfaceschema) Unset ¶
func (v *NullableGetContractInterfaceschema) Unset()
type NullableGetContractSourceschema ¶
type NullableGetContractSourceschema struct {
// contains filtered or unexported fields
}
func NewNullableGetContractSourceschema ¶
func NewNullableGetContractSourceschema(val *GetContractSourceschema) *NullableGetContractSourceschema
func (NullableGetContractSourceschema) Get ¶
func (v NullableGetContractSourceschema) Get() *GetContractSourceschema
func (NullableGetContractSourceschema) IsSet ¶
func (v NullableGetContractSourceschema) IsSet() bool
func (NullableGetContractSourceschema) MarshalJSON ¶
func (v NullableGetContractSourceschema) MarshalJSON() ([]byte, error)
func (*NullableGetContractSourceschema) Set ¶
func (v *NullableGetContractSourceschema) Set(val *GetContractSourceschema)
func (*NullableGetContractSourceschema) UnmarshalJSON ¶
func (v *NullableGetContractSourceschema) UnmarshalJSON(src []byte) error
func (*NullableGetContractSourceschema) Unset ¶
func (v *NullableGetContractSourceschema) Unset()
type NullableGetInfoschema ¶
type NullableGetInfoschema struct {
// contains filtered or unexported fields
}
func NewNullableGetInfoschema ¶
func NewNullableGetInfoschema(val *GetInfoschema) *NullableGetInfoschema
func (NullableGetInfoschema) Get ¶
func (v NullableGetInfoschema) Get() *GetInfoschema
func (NullableGetInfoschema) IsSet ¶
func (v NullableGetInfoschema) IsSet() bool
func (NullableGetInfoschema) MarshalJSON ¶
func (v NullableGetInfoschema) MarshalJSON() ([]byte, error)
func (*NullableGetInfoschema) Set ¶
func (v *NullableGetInfoschema) Set(val *GetInfoschema)
func (*NullableGetInfoschema) UnmarshalJSON ¶
func (v *NullableGetInfoschema) UnmarshalJSON(src []byte) error
func (*NullableGetInfoschema) Unset ¶
func (v *NullableGetInfoschema) Unset()
type NullableGetPoxschema ¶
type NullableGetPoxschema struct {
// contains filtered or unexported fields
}
func NewNullableGetPoxschema ¶
func NewNullableGetPoxschema(val *GetPoxschema) *NullableGetPoxschema
func (NullableGetPoxschema) Get ¶
func (v NullableGetPoxschema) Get() *GetPoxschema
func (NullableGetPoxschema) IsSet ¶
func (v NullableGetPoxschema) IsSet() bool
func (NullableGetPoxschema) MarshalJSON ¶
func (v NullableGetPoxschema) MarshalJSON() ([]byte, error)
func (*NullableGetPoxschema) Set ¶
func (v *NullableGetPoxschema) Set(val *GetPoxschema)
func (*NullableGetPoxschema) UnmarshalJSON ¶
func (v *NullableGetPoxschema) UnmarshalJSON(src []byte) error
func (*NullableGetPoxschema) Unset ¶
func (v *NullableGetPoxschema) Unset()
type NullableGetPoxschemaContractVersionsInner ¶
type NullableGetPoxschemaContractVersionsInner struct {
// contains filtered or unexported fields
}
func NewNullableGetPoxschemaContractVersionsInner ¶
func NewNullableGetPoxschemaContractVersionsInner(val *GetPoxschemaContractVersionsInner) *NullableGetPoxschemaContractVersionsInner
func (NullableGetPoxschemaContractVersionsInner) IsSet ¶
func (v NullableGetPoxschemaContractVersionsInner) IsSet() bool
func (NullableGetPoxschemaContractVersionsInner) MarshalJSON ¶
func (v NullableGetPoxschemaContractVersionsInner) MarshalJSON() ([]byte, error)
func (*NullableGetPoxschemaContractVersionsInner) Set ¶
func (v *NullableGetPoxschemaContractVersionsInner) Set(val *GetPoxschemaContractVersionsInner)
func (*NullableGetPoxschemaContractVersionsInner) UnmarshalJSON ¶
func (v *NullableGetPoxschemaContractVersionsInner) UnmarshalJSON(src []byte) error
func (*NullableGetPoxschemaContractVersionsInner) Unset ¶
func (v *NullableGetPoxschemaContractVersionsInner) Unset()
type NullableGetPoxschemaCurrentCycle ¶
type NullableGetPoxschemaCurrentCycle struct {
// contains filtered or unexported fields
}
func NewNullableGetPoxschemaCurrentCycle ¶
func NewNullableGetPoxschemaCurrentCycle(val *GetPoxschemaCurrentCycle) *NullableGetPoxschemaCurrentCycle
func (NullableGetPoxschemaCurrentCycle) Get ¶
func (v NullableGetPoxschemaCurrentCycle) Get() *GetPoxschemaCurrentCycle
func (NullableGetPoxschemaCurrentCycle) IsSet ¶
func (v NullableGetPoxschemaCurrentCycle) IsSet() bool
func (NullableGetPoxschemaCurrentCycle) MarshalJSON ¶
func (v NullableGetPoxschemaCurrentCycle) MarshalJSON() ([]byte, error)
func (*NullableGetPoxschemaCurrentCycle) Set ¶
func (v *NullableGetPoxschemaCurrentCycle) Set(val *GetPoxschemaCurrentCycle)
func (*NullableGetPoxschemaCurrentCycle) UnmarshalJSON ¶
func (v *NullableGetPoxschemaCurrentCycle) UnmarshalJSON(src []byte) error
func (*NullableGetPoxschemaCurrentCycle) Unset ¶
func (v *NullableGetPoxschemaCurrentCycle) Unset()
type NullableGetPoxschemaNextCycle ¶
type NullableGetPoxschemaNextCycle struct {
// contains filtered or unexported fields
}
func NewNullableGetPoxschemaNextCycle ¶
func NewNullableGetPoxschemaNextCycle(val *GetPoxschemaNextCycle) *NullableGetPoxschemaNextCycle
func (NullableGetPoxschemaNextCycle) Get ¶
func (v NullableGetPoxschemaNextCycle) Get() *GetPoxschemaNextCycle
func (NullableGetPoxschemaNextCycle) IsSet ¶
func (v NullableGetPoxschemaNextCycle) IsSet() bool
func (NullableGetPoxschemaNextCycle) MarshalJSON ¶
func (v NullableGetPoxschemaNextCycle) MarshalJSON() ([]byte, error)
func (*NullableGetPoxschemaNextCycle) Set ¶
func (v *NullableGetPoxschemaNextCycle) Set(val *GetPoxschemaNextCycle)
func (*NullableGetPoxschemaNextCycle) UnmarshalJSON ¶
func (v *NullableGetPoxschemaNextCycle) UnmarshalJSON(src []byte) error
func (*NullableGetPoxschemaNextCycle) Unset ¶
func (v *NullableGetPoxschemaNextCycle) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullablePostCallReadOnlyFnschema ¶
type NullablePostCallReadOnlyFnschema struct {
// contains filtered or unexported fields
}
func NewNullablePostCallReadOnlyFnschema ¶
func NewNullablePostCallReadOnlyFnschema(val *PostCallReadOnlyFnschema) *NullablePostCallReadOnlyFnschema
func (NullablePostCallReadOnlyFnschema) Get ¶
func (v NullablePostCallReadOnlyFnschema) Get() *PostCallReadOnlyFnschema
func (NullablePostCallReadOnlyFnschema) IsSet ¶
func (v NullablePostCallReadOnlyFnschema) IsSet() bool
func (NullablePostCallReadOnlyFnschema) MarshalJSON ¶
func (v NullablePostCallReadOnlyFnschema) MarshalJSON() ([]byte, error)
func (*NullablePostCallReadOnlyFnschema) Set ¶
func (v *NullablePostCallReadOnlyFnschema) Set(val *PostCallReadOnlyFnschema)
func (*NullablePostCallReadOnlyFnschema) UnmarshalJSON ¶
func (v *NullablePostCallReadOnlyFnschema) UnmarshalJSON(src []byte) error
func (*NullablePostCallReadOnlyFnschema) Unset ¶
func (v *NullablePostCallReadOnlyFnschema) Unset()
type NullablePostCoreNodeTransactionsErrorschema ¶
type NullablePostCoreNodeTransactionsErrorschema struct {
// contains filtered or unexported fields
}
func NewNullablePostCoreNodeTransactionsErrorschema ¶
func NewNullablePostCoreNodeTransactionsErrorschema(val *PostCoreNodeTransactionsErrorschema) *NullablePostCoreNodeTransactionsErrorschema
func (NullablePostCoreNodeTransactionsErrorschema) IsSet ¶
func (v NullablePostCoreNodeTransactionsErrorschema) IsSet() bool
func (NullablePostCoreNodeTransactionsErrorschema) MarshalJSON ¶
func (v NullablePostCoreNodeTransactionsErrorschema) MarshalJSON() ([]byte, error)
func (*NullablePostCoreNodeTransactionsErrorschema) Set ¶
func (v *NullablePostCoreNodeTransactionsErrorschema) Set(val *PostCoreNodeTransactionsErrorschema)
func (*NullablePostCoreNodeTransactionsErrorschema) UnmarshalJSON ¶
func (v *NullablePostCoreNodeTransactionsErrorschema) UnmarshalJSON(src []byte) error
func (*NullablePostCoreNodeTransactionsErrorschema) Unset ¶
func (v *NullablePostCoreNodeTransactionsErrorschema) Unset()
type NullablePostFeeTransactionResponseschema ¶
type NullablePostFeeTransactionResponseschema struct {
// contains filtered or unexported fields
}
func NewNullablePostFeeTransactionResponseschema ¶
func NewNullablePostFeeTransactionResponseschema(val *PostFeeTransactionResponseschema) *NullablePostFeeTransactionResponseschema
func (NullablePostFeeTransactionResponseschema) IsSet ¶
func (v NullablePostFeeTransactionResponseschema) IsSet() bool
func (NullablePostFeeTransactionResponseschema) MarshalJSON ¶
func (v NullablePostFeeTransactionResponseschema) MarshalJSON() ([]byte, error)
func (*NullablePostFeeTransactionResponseschema) Set ¶
func (v *NullablePostFeeTransactionResponseschema) Set(val *PostFeeTransactionResponseschema)
func (*NullablePostFeeTransactionResponseschema) UnmarshalJSON ¶
func (v *NullablePostFeeTransactionResponseschema) UnmarshalJSON(src []byte) error
func (*NullablePostFeeTransactionResponseschema) Unset ¶
func (v *NullablePostFeeTransactionResponseschema) Unset()
type NullablePostFeeTransactionResponseschemaEstimatedCost ¶
type NullablePostFeeTransactionResponseschemaEstimatedCost struct {
// contains filtered or unexported fields
}
func NewNullablePostFeeTransactionResponseschemaEstimatedCost ¶
func NewNullablePostFeeTransactionResponseschemaEstimatedCost(val *PostFeeTransactionResponseschemaEstimatedCost) *NullablePostFeeTransactionResponseschemaEstimatedCost
func (NullablePostFeeTransactionResponseschemaEstimatedCost) IsSet ¶
func (v NullablePostFeeTransactionResponseschemaEstimatedCost) IsSet() bool
func (NullablePostFeeTransactionResponseschemaEstimatedCost) MarshalJSON ¶
func (v NullablePostFeeTransactionResponseschemaEstimatedCost) MarshalJSON() ([]byte, error)
func (*NullablePostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON ¶
func (v *NullablePostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON(src []byte) error
func (*NullablePostFeeTransactionResponseschemaEstimatedCost) Unset ¶
func (v *NullablePostFeeTransactionResponseschemaEstimatedCost) Unset()
type NullablePostFeeTransactionResponseschemaEstimationsInner ¶
type NullablePostFeeTransactionResponseschemaEstimationsInner struct {
// contains filtered or unexported fields
}
func NewNullablePostFeeTransactionResponseschemaEstimationsInner ¶
func NewNullablePostFeeTransactionResponseschemaEstimationsInner(val *PostFeeTransactionResponseschemaEstimationsInner) *NullablePostFeeTransactionResponseschemaEstimationsInner
func (NullablePostFeeTransactionResponseschemaEstimationsInner) IsSet ¶
func (v NullablePostFeeTransactionResponseschemaEstimationsInner) IsSet() bool
func (NullablePostFeeTransactionResponseschemaEstimationsInner) MarshalJSON ¶
func (v NullablePostFeeTransactionResponseschemaEstimationsInner) MarshalJSON() ([]byte, error)
func (*NullablePostFeeTransactionResponseschemaEstimationsInner) UnmarshalJSON ¶
func (v *NullablePostFeeTransactionResponseschemaEstimationsInner) UnmarshalJSON(src []byte) error
func (*NullablePostFeeTransactionResponseschemaEstimationsInner) Unset ¶
func (v *NullablePostFeeTransactionResponseschemaEstimationsInner) Unset()
type NullablePostFeeTransactionschema ¶
type NullablePostFeeTransactionschema struct {
// contains filtered or unexported fields
}
func NewNullablePostFeeTransactionschema ¶
func NewNullablePostFeeTransactionschema(val *PostFeeTransactionschema) *NullablePostFeeTransactionschema
func (NullablePostFeeTransactionschema) Get ¶
func (v NullablePostFeeTransactionschema) Get() *PostFeeTransactionschema
func (NullablePostFeeTransactionschema) IsSet ¶
func (v NullablePostFeeTransactionschema) IsSet() bool
func (NullablePostFeeTransactionschema) MarshalJSON ¶
func (v NullablePostFeeTransactionschema) MarshalJSON() ([]byte, error)
func (*NullablePostFeeTransactionschema) Set ¶
func (v *NullablePostFeeTransactionschema) Set(val *PostFeeTransactionschema)
func (*NullablePostFeeTransactionschema) UnmarshalJSON ¶
func (v *NullablePostFeeTransactionschema) UnmarshalJSON(src []byte) error
func (*NullablePostFeeTransactionschema) Unset ¶
func (v *NullablePostFeeTransactionschema) Unset()
type NullableReadOnlyFunctionArgsschema ¶
type NullableReadOnlyFunctionArgsschema struct {
// contains filtered or unexported fields
}
func NewNullableReadOnlyFunctionArgsschema ¶
func NewNullableReadOnlyFunctionArgsschema(val *ReadOnlyFunctionArgsschema) *NullableReadOnlyFunctionArgsschema
func (NullableReadOnlyFunctionArgsschema) Get ¶
func (v NullableReadOnlyFunctionArgsschema) Get() *ReadOnlyFunctionArgsschema
func (NullableReadOnlyFunctionArgsschema) IsSet ¶
func (v NullableReadOnlyFunctionArgsschema) IsSet() bool
func (NullableReadOnlyFunctionArgsschema) MarshalJSON ¶
func (v NullableReadOnlyFunctionArgsschema) MarshalJSON() ([]byte, error)
func (*NullableReadOnlyFunctionArgsschema) Set ¶
func (v *NullableReadOnlyFunctionArgsschema) Set(val *ReadOnlyFunctionArgsschema)
func (*NullableReadOnlyFunctionArgsschema) UnmarshalJSON ¶
func (v *NullableReadOnlyFunctionArgsschema) UnmarshalJSON(src []byte) error
func (*NullableReadOnlyFunctionArgsschema) Unset ¶
func (v *NullableReadOnlyFunctionArgsschema) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type PostCallReadOnlyFnschema ¶
type PostCallReadOnlyFnschema struct { Okay bool `json:"okay"` Result *string `json:"result,omitempty"` Cause *string `json:"cause,omitempty"` }
PostCallReadOnlyFnschema GET request to get contract source
func NewPostCallReadOnlyFnschema ¶
func NewPostCallReadOnlyFnschema(okay bool) *PostCallReadOnlyFnschema
NewPostCallReadOnlyFnschema instantiates a new PostCallReadOnlyFnschema 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
func NewPostCallReadOnlyFnschemaWithDefaults ¶
func NewPostCallReadOnlyFnschemaWithDefaults() *PostCallReadOnlyFnschema
NewPostCallReadOnlyFnschemaWithDefaults instantiates a new PostCallReadOnlyFnschema 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
func (*PostCallReadOnlyFnschema) GetCause ¶
func (o *PostCallReadOnlyFnschema) GetCause() string
GetCause returns the Cause field value if set, zero value otherwise.
func (*PostCallReadOnlyFnschema) GetCauseOk ¶
func (o *PostCallReadOnlyFnschema) GetCauseOk() (*string, bool)
GetCauseOk returns a tuple with the Cause field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostCallReadOnlyFnschema) GetOkay ¶
func (o *PostCallReadOnlyFnschema) GetOkay() bool
GetOkay returns the Okay field value
func (*PostCallReadOnlyFnschema) GetOkayOk ¶
func (o *PostCallReadOnlyFnschema) GetOkayOk() (*bool, bool)
GetOkayOk returns a tuple with the Okay field value and a boolean to check if the value has been set.
func (*PostCallReadOnlyFnschema) GetResult ¶
func (o *PostCallReadOnlyFnschema) GetResult() string
GetResult returns the Result field value if set, zero value otherwise.
func (*PostCallReadOnlyFnschema) GetResultOk ¶
func (o *PostCallReadOnlyFnschema) GetResultOk() (*string, bool)
GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostCallReadOnlyFnschema) HasCause ¶
func (o *PostCallReadOnlyFnschema) HasCause() bool
HasCause returns a boolean if a field has been set.
func (*PostCallReadOnlyFnschema) HasResult ¶
func (o *PostCallReadOnlyFnschema) HasResult() bool
HasResult returns a boolean if a field has been set.
func (PostCallReadOnlyFnschema) MarshalJSON ¶
func (o PostCallReadOnlyFnschema) MarshalJSON() ([]byte, error)
func (*PostCallReadOnlyFnschema) SetCause ¶
func (o *PostCallReadOnlyFnschema) SetCause(v string)
SetCause gets a reference to the given string and assigns it to the Cause field.
func (*PostCallReadOnlyFnschema) SetOkay ¶
func (o *PostCallReadOnlyFnschema) SetOkay(v bool)
SetOkay sets field value
func (*PostCallReadOnlyFnschema) SetResult ¶
func (o *PostCallReadOnlyFnschema) SetResult(v string)
SetResult gets a reference to the given string and assigns it to the Result field.
func (PostCallReadOnlyFnschema) ToMap ¶
func (o PostCallReadOnlyFnschema) ToMap() (map[string]interface{}, error)
func (*PostCallReadOnlyFnschema) UnmarshalJSON ¶
func (o *PostCallReadOnlyFnschema) UnmarshalJSON(data []byte) (err error)
type PostCoreNodeTransactionsErrorschema ¶
type PostCoreNodeTransactionsErrorschema struct { // The error Error string `json:"error"` // The reason for the error Reason string `json:"reason"` // More details about the reason ReasonData map[string]interface{} `json:"reason_data"` // The relevant transaction id Txid string `json:"txid"` }
PostCoreNodeTransactionsErrorschema GET request that returns transactions
func NewPostCoreNodeTransactionsErrorschema ¶
func NewPostCoreNodeTransactionsErrorschema(error_ string, reason string, reasonData map[string]interface{}, txid string) *PostCoreNodeTransactionsErrorschema
NewPostCoreNodeTransactionsErrorschema instantiates a new PostCoreNodeTransactionsErrorschema 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
func NewPostCoreNodeTransactionsErrorschemaWithDefaults ¶
func NewPostCoreNodeTransactionsErrorschemaWithDefaults() *PostCoreNodeTransactionsErrorschema
NewPostCoreNodeTransactionsErrorschemaWithDefaults instantiates a new PostCoreNodeTransactionsErrorschema 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
func (*PostCoreNodeTransactionsErrorschema) GetError ¶
func (o *PostCoreNodeTransactionsErrorschema) GetError() string
GetError returns the Error field value
func (*PostCoreNodeTransactionsErrorschema) GetErrorOk ¶
func (o *PostCoreNodeTransactionsErrorschema) GetErrorOk() (*string, bool)
GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.
func (*PostCoreNodeTransactionsErrorschema) GetReason ¶
func (o *PostCoreNodeTransactionsErrorschema) GetReason() string
GetReason returns the Reason field value
func (*PostCoreNodeTransactionsErrorschema) GetReasonData ¶
func (o *PostCoreNodeTransactionsErrorschema) GetReasonData() map[string]interface{}
GetReasonData returns the ReasonData field value
func (*PostCoreNodeTransactionsErrorschema) GetReasonDataOk ¶
func (o *PostCoreNodeTransactionsErrorschema) GetReasonDataOk() (map[string]interface{}, bool)
GetReasonDataOk returns a tuple with the ReasonData field value and a boolean to check if the value has been set.
func (*PostCoreNodeTransactionsErrorschema) GetReasonOk ¶
func (o *PostCoreNodeTransactionsErrorschema) GetReasonOk() (*string, bool)
GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.
func (*PostCoreNodeTransactionsErrorschema) GetTxid ¶
func (o *PostCoreNodeTransactionsErrorschema) GetTxid() string
GetTxid returns the Txid field value
func (*PostCoreNodeTransactionsErrorschema) GetTxidOk ¶
func (o *PostCoreNodeTransactionsErrorschema) GetTxidOk() (*string, bool)
GetTxidOk returns a tuple with the Txid field value and a boolean to check if the value has been set.
func (PostCoreNodeTransactionsErrorschema) MarshalJSON ¶
func (o PostCoreNodeTransactionsErrorschema) MarshalJSON() ([]byte, error)
func (*PostCoreNodeTransactionsErrorschema) SetError ¶
func (o *PostCoreNodeTransactionsErrorschema) SetError(v string)
SetError sets field value
func (*PostCoreNodeTransactionsErrorschema) SetReason ¶
func (o *PostCoreNodeTransactionsErrorschema) SetReason(v string)
SetReason sets field value
func (*PostCoreNodeTransactionsErrorschema) SetReasonData ¶
func (o *PostCoreNodeTransactionsErrorschema) SetReasonData(v map[string]interface{})
SetReasonData sets field value
func (*PostCoreNodeTransactionsErrorschema) SetTxid ¶
func (o *PostCoreNodeTransactionsErrorschema) SetTxid(v string)
SetTxid sets field value
func (PostCoreNodeTransactionsErrorschema) ToMap ¶
func (o PostCoreNodeTransactionsErrorschema) ToMap() (map[string]interface{}, error)
func (*PostCoreNodeTransactionsErrorschema) UnmarshalJSON ¶
func (o *PostCoreNodeTransactionsErrorschema) UnmarshalJSON(data []byte) (err error)
type PostFeeTransactionResponseschema ¶
type PostFeeTransactionResponseschema struct { EstimatedCostScalar int32 `json:"estimated_cost_scalar"` CostScalarChangeByByte *float32 `json:"cost_scalar_change_by_byte,omitempty"` EstimatedCost PostFeeTransactionResponseschemaEstimatedCost `json:"estimated_cost"` Estimations []PostFeeTransactionResponseschemaEstimationsInner `json:"estimations,omitempty"` }
PostFeeTransactionResponseschema POST response for estimated fee
func NewPostFeeTransactionResponseschema ¶
func NewPostFeeTransactionResponseschema(estimatedCostScalar int32, estimatedCost PostFeeTransactionResponseschemaEstimatedCost) *PostFeeTransactionResponseschema
NewPostFeeTransactionResponseschema instantiates a new PostFeeTransactionResponseschema 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
func NewPostFeeTransactionResponseschemaWithDefaults ¶
func NewPostFeeTransactionResponseschemaWithDefaults() *PostFeeTransactionResponseschema
NewPostFeeTransactionResponseschemaWithDefaults instantiates a new PostFeeTransactionResponseschema 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
func (*PostFeeTransactionResponseschema) GetCostScalarChangeByByte ¶
func (o *PostFeeTransactionResponseschema) GetCostScalarChangeByByte() float32
GetCostScalarChangeByByte returns the CostScalarChangeByByte field value if set, zero value otherwise.
func (*PostFeeTransactionResponseschema) GetCostScalarChangeByByteOk ¶
func (o *PostFeeTransactionResponseschema) GetCostScalarChangeByByteOk() (*float32, bool)
GetCostScalarChangeByByteOk returns a tuple with the CostScalarChangeByByte field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschema) GetEstimatedCost ¶
func (o *PostFeeTransactionResponseschema) GetEstimatedCost() PostFeeTransactionResponseschemaEstimatedCost
GetEstimatedCost returns the EstimatedCost field value
func (*PostFeeTransactionResponseschema) GetEstimatedCostOk ¶
func (o *PostFeeTransactionResponseschema) GetEstimatedCostOk() (*PostFeeTransactionResponseschemaEstimatedCost, bool)
GetEstimatedCostOk returns a tuple with the EstimatedCost field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschema) GetEstimatedCostScalar ¶
func (o *PostFeeTransactionResponseschema) GetEstimatedCostScalar() int32
GetEstimatedCostScalar returns the EstimatedCostScalar field value
func (*PostFeeTransactionResponseschema) GetEstimatedCostScalarOk ¶
func (o *PostFeeTransactionResponseschema) GetEstimatedCostScalarOk() (*int32, bool)
GetEstimatedCostScalarOk returns a tuple with the EstimatedCostScalar field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschema) GetEstimations ¶
func (o *PostFeeTransactionResponseschema) GetEstimations() []PostFeeTransactionResponseschemaEstimationsInner
GetEstimations returns the Estimations field value if set, zero value otherwise.
func (*PostFeeTransactionResponseschema) GetEstimationsOk ¶
func (o *PostFeeTransactionResponseschema) GetEstimationsOk() ([]PostFeeTransactionResponseschemaEstimationsInner, bool)
GetEstimationsOk returns a tuple with the Estimations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschema) HasCostScalarChangeByByte ¶
func (o *PostFeeTransactionResponseschema) HasCostScalarChangeByByte() bool
HasCostScalarChangeByByte returns a boolean if a field has been set.
func (*PostFeeTransactionResponseschema) HasEstimations ¶
func (o *PostFeeTransactionResponseschema) HasEstimations() bool
HasEstimations returns a boolean if a field has been set.
func (PostFeeTransactionResponseschema) MarshalJSON ¶
func (o PostFeeTransactionResponseschema) MarshalJSON() ([]byte, error)
func (*PostFeeTransactionResponseschema) SetCostScalarChangeByByte ¶
func (o *PostFeeTransactionResponseschema) SetCostScalarChangeByByte(v float32)
SetCostScalarChangeByByte gets a reference to the given float32 and assigns it to the CostScalarChangeByByte field.
func (*PostFeeTransactionResponseschema) SetEstimatedCost ¶
func (o *PostFeeTransactionResponseschema) SetEstimatedCost(v PostFeeTransactionResponseschemaEstimatedCost)
SetEstimatedCost sets field value
func (*PostFeeTransactionResponseschema) SetEstimatedCostScalar ¶
func (o *PostFeeTransactionResponseschema) SetEstimatedCostScalar(v int32)
SetEstimatedCostScalar sets field value
func (*PostFeeTransactionResponseschema) SetEstimations ¶
func (o *PostFeeTransactionResponseschema) SetEstimations(v []PostFeeTransactionResponseschemaEstimationsInner)
SetEstimations gets a reference to the given []PostFeeTransactionResponseschemaEstimationsInner and assigns it to the Estimations field.
func (PostFeeTransactionResponseschema) ToMap ¶
func (o PostFeeTransactionResponseschema) ToMap() (map[string]interface{}, error)
func (*PostFeeTransactionResponseschema) UnmarshalJSON ¶
func (o *PostFeeTransactionResponseschema) UnmarshalJSON(data []byte) (err error)
type PostFeeTransactionResponseschemaEstimatedCost ¶
type PostFeeTransactionResponseschemaEstimatedCost struct { ReadCount int32 `json:"read_count"` ReadLength int32 `json:"read_length"` Runtime int32 `json:"runtime"` WriteCount int32 `json:"write_count"` WriteLength int32 `json:"write_length"` }
PostFeeTransactionResponseschemaEstimatedCost struct for PostFeeTransactionResponseschemaEstimatedCost
func NewPostFeeTransactionResponseschemaEstimatedCost ¶
func NewPostFeeTransactionResponseschemaEstimatedCost(readCount int32, readLength int32, runtime int32, writeCount int32, writeLength int32) *PostFeeTransactionResponseschemaEstimatedCost
NewPostFeeTransactionResponseschemaEstimatedCost instantiates a new PostFeeTransactionResponseschemaEstimatedCost 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
func NewPostFeeTransactionResponseschemaEstimatedCostWithDefaults ¶
func NewPostFeeTransactionResponseschemaEstimatedCostWithDefaults() *PostFeeTransactionResponseschemaEstimatedCost
NewPostFeeTransactionResponseschemaEstimatedCostWithDefaults instantiates a new PostFeeTransactionResponseschemaEstimatedCost 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
func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadCount ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadCount() int32
GetReadCount returns the ReadCount field value
func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadCountOk ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadCountOk() (*int32, bool)
GetReadCountOk returns a tuple with the ReadCount field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadLength ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadLength() int32
GetReadLength returns the ReadLength field value
func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadLengthOk ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetReadLengthOk() (*int32, bool)
GetReadLengthOk returns a tuple with the ReadLength field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimatedCost) GetRuntime ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetRuntime() int32
GetRuntime returns the Runtime field value
func (*PostFeeTransactionResponseschemaEstimatedCost) GetRuntimeOk ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetRuntimeOk() (*int32, bool)
GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimatedCost) GetWriteCount ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteCount() int32
GetWriteCount returns the WriteCount field value
func (*PostFeeTransactionResponseschemaEstimatedCost) GetWriteCountOk ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteCountOk() (*int32, bool)
GetWriteCountOk returns a tuple with the WriteCount field value and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimatedCost) GetWriteLength ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteLength() int32
GetWriteLength returns the WriteLength field value
func (*PostFeeTransactionResponseschemaEstimatedCost) GetWriteLengthOk ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) GetWriteLengthOk() (*int32, bool)
GetWriteLengthOk returns a tuple with the WriteLength field value and a boolean to check if the value has been set.
func (PostFeeTransactionResponseschemaEstimatedCost) MarshalJSON ¶
func (o PostFeeTransactionResponseschemaEstimatedCost) MarshalJSON() ([]byte, error)
func (*PostFeeTransactionResponseschemaEstimatedCost) SetReadCount ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) SetReadCount(v int32)
SetReadCount sets field value
func (*PostFeeTransactionResponseschemaEstimatedCost) SetReadLength ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) SetReadLength(v int32)
SetReadLength sets field value
func (*PostFeeTransactionResponseschemaEstimatedCost) SetRuntime ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) SetRuntime(v int32)
SetRuntime sets field value
func (*PostFeeTransactionResponseschemaEstimatedCost) SetWriteCount ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) SetWriteCount(v int32)
SetWriteCount sets field value
func (*PostFeeTransactionResponseschemaEstimatedCost) SetWriteLength ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) SetWriteLength(v int32)
SetWriteLength sets field value
func (PostFeeTransactionResponseschemaEstimatedCost) ToMap ¶
func (o PostFeeTransactionResponseschemaEstimatedCost) ToMap() (map[string]interface{}, error)
func (*PostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON ¶
func (o *PostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON(data []byte) (err error)
type PostFeeTransactionResponseschemaEstimationsInner ¶
type PostFeeTransactionResponseschemaEstimationsInner struct { FeeRate *float32 `json:"fee_rate,omitempty"` Fee *float32 `json:"fee,omitempty"` }
PostFeeTransactionResponseschemaEstimationsInner struct for PostFeeTransactionResponseschemaEstimationsInner
func NewPostFeeTransactionResponseschemaEstimationsInner ¶
func NewPostFeeTransactionResponseschemaEstimationsInner() *PostFeeTransactionResponseschemaEstimationsInner
NewPostFeeTransactionResponseschemaEstimationsInner instantiates a new PostFeeTransactionResponseschemaEstimationsInner 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
func NewPostFeeTransactionResponseschemaEstimationsInnerWithDefaults ¶
func NewPostFeeTransactionResponseschemaEstimationsInnerWithDefaults() *PostFeeTransactionResponseschemaEstimationsInner
NewPostFeeTransactionResponseschemaEstimationsInnerWithDefaults instantiates a new PostFeeTransactionResponseschemaEstimationsInner 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
func (*PostFeeTransactionResponseschemaEstimationsInner) GetFee ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFee() float32
GetFee returns the Fee field value if set, zero value otherwise.
func (*PostFeeTransactionResponseschemaEstimationsInner) GetFeeOk ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeOk() (*float32, bool)
GetFeeOk returns a tuple with the Fee field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimationsInner) GetFeeRate ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeRate() float32
GetFeeRate returns the FeeRate field value if set, zero value otherwise.
func (*PostFeeTransactionResponseschemaEstimationsInner) GetFeeRateOk ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) GetFeeRateOk() (*float32, bool)
GetFeeRateOk returns a tuple with the FeeRate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostFeeTransactionResponseschemaEstimationsInner) HasFee ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) HasFee() bool
HasFee returns a boolean if a field has been set.
func (*PostFeeTransactionResponseschemaEstimationsInner) HasFeeRate ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) HasFeeRate() bool
HasFeeRate returns a boolean if a field has been set.
func (PostFeeTransactionResponseschemaEstimationsInner) MarshalJSON ¶
func (o PostFeeTransactionResponseschemaEstimationsInner) MarshalJSON() ([]byte, error)
func (*PostFeeTransactionResponseschemaEstimationsInner) SetFee ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) SetFee(v float32)
SetFee gets a reference to the given float32 and assigns it to the Fee field.
func (*PostFeeTransactionResponseschemaEstimationsInner) SetFeeRate ¶
func (o *PostFeeTransactionResponseschemaEstimationsInner) SetFeeRate(v float32)
SetFeeRate gets a reference to the given float32 and assigns it to the FeeRate field.
func (PostFeeTransactionResponseschemaEstimationsInner) ToMap ¶
func (o PostFeeTransactionResponseschemaEstimationsInner) ToMap() (map[string]interface{}, error)
type PostFeeTransactionschema ¶
type PostFeeTransactionschema struct { TransactionPayload string `json:"transaction_payload"` EstimatedLen *int32 `json:"estimated_len,omitempty"` }
PostFeeTransactionschema POST request for estimated fee
func NewPostFeeTransactionschema ¶
func NewPostFeeTransactionschema(transactionPayload string) *PostFeeTransactionschema
NewPostFeeTransactionschema instantiates a new PostFeeTransactionschema 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
func NewPostFeeTransactionschemaWithDefaults ¶
func NewPostFeeTransactionschemaWithDefaults() *PostFeeTransactionschema
NewPostFeeTransactionschemaWithDefaults instantiates a new PostFeeTransactionschema 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
func (*PostFeeTransactionschema) GetEstimatedLen ¶
func (o *PostFeeTransactionschema) GetEstimatedLen() int32
GetEstimatedLen returns the EstimatedLen field value if set, zero value otherwise.
func (*PostFeeTransactionschema) GetEstimatedLenOk ¶
func (o *PostFeeTransactionschema) GetEstimatedLenOk() (*int32, bool)
GetEstimatedLenOk returns a tuple with the EstimatedLen field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PostFeeTransactionschema) GetTransactionPayload ¶
func (o *PostFeeTransactionschema) GetTransactionPayload() string
GetTransactionPayload returns the TransactionPayload field value
func (*PostFeeTransactionschema) GetTransactionPayloadOk ¶
func (o *PostFeeTransactionschema) GetTransactionPayloadOk() (*string, bool)
GetTransactionPayloadOk returns a tuple with the TransactionPayload field value and a boolean to check if the value has been set.
func (*PostFeeTransactionschema) HasEstimatedLen ¶
func (o *PostFeeTransactionschema) HasEstimatedLen() bool
HasEstimatedLen returns a boolean if a field has been set.
func (PostFeeTransactionschema) MarshalJSON ¶
func (o PostFeeTransactionschema) MarshalJSON() ([]byte, error)
func (*PostFeeTransactionschema) SetEstimatedLen ¶
func (o *PostFeeTransactionschema) SetEstimatedLen(v int32)
SetEstimatedLen gets a reference to the given int32 and assigns it to the EstimatedLen field.
func (*PostFeeTransactionschema) SetTransactionPayload ¶
func (o *PostFeeTransactionschema) SetTransactionPayload(v string)
SetTransactionPayload sets field value
func (PostFeeTransactionschema) ToMap ¶
func (o PostFeeTransactionschema) ToMap() (map[string]interface{}, error)
func (*PostFeeTransactionschema) UnmarshalJSON ¶
func (o *PostFeeTransactionschema) UnmarshalJSON(data []byte) (err error)
type ReadOnlyFunctionArgsschema ¶
type ReadOnlyFunctionArgsschema struct { // The simulated tx-sender Sender string `json:"sender"` // An array of hex serialized Clarity values Arguments []string `json:"arguments"` }
ReadOnlyFunctionArgsschema Describes representation of a Type-0 Stacks 2.0 transaction. https://github.com/blockstack/stacks-blockchain/blob/master/sip/sip-005-blocks-and-transactions.md#type-0-transferring-an-asset
func NewReadOnlyFunctionArgsschema ¶
func NewReadOnlyFunctionArgsschema(sender string, arguments []string) *ReadOnlyFunctionArgsschema
NewReadOnlyFunctionArgsschema instantiates a new ReadOnlyFunctionArgsschema 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
func NewReadOnlyFunctionArgsschemaWithDefaults ¶
func NewReadOnlyFunctionArgsschemaWithDefaults() *ReadOnlyFunctionArgsschema
NewReadOnlyFunctionArgsschemaWithDefaults instantiates a new ReadOnlyFunctionArgsschema 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
func (*ReadOnlyFunctionArgsschema) GetArguments ¶
func (o *ReadOnlyFunctionArgsschema) GetArguments() []string
GetArguments returns the Arguments field value
func (*ReadOnlyFunctionArgsschema) GetArgumentsOk ¶
func (o *ReadOnlyFunctionArgsschema) GetArgumentsOk() ([]string, bool)
GetArgumentsOk returns a tuple with the Arguments field value and a boolean to check if the value has been set.
func (*ReadOnlyFunctionArgsschema) GetSender ¶
func (o *ReadOnlyFunctionArgsschema) GetSender() string
GetSender returns the Sender field value
func (*ReadOnlyFunctionArgsschema) GetSenderOk ¶
func (o *ReadOnlyFunctionArgsschema) GetSenderOk() (*string, bool)
GetSenderOk returns a tuple with the Sender field value and a boolean to check if the value has been set.
func (ReadOnlyFunctionArgsschema) MarshalJSON ¶
func (o ReadOnlyFunctionArgsschema) MarshalJSON() ([]byte, error)
func (*ReadOnlyFunctionArgsschema) SetArguments ¶
func (o *ReadOnlyFunctionArgsschema) SetArguments(v []string)
SetArguments sets field value
func (*ReadOnlyFunctionArgsschema) SetSender ¶
func (o *ReadOnlyFunctionArgsschema) SetSender(v string)
SetSender sets field value
func (ReadOnlyFunctionArgsschema) ToMap ¶
func (o ReadOnlyFunctionArgsschema) ToMap() (map[string]interface{}, error)
func (*ReadOnlyFunctionArgsschema) UnmarshalJSON ¶
func (o *ReadOnlyFunctionArgsschema) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type SmartContractsAPIService ¶
type SmartContractsAPIService service
SmartContractsAPIService SmartContractsAPI service
func (*SmartContractsAPIService) CallReadOnlyFunction ¶
func (a *SmartContractsAPIService) CallReadOnlyFunction(ctx context.Context, contractAddress string, contractName string, functionName string) ApiCallReadOnlyFunctionRequest
CallReadOnlyFunction Call read-only function
Call a read-only public function on a given smart contract.
The smart contract and function are specified using the URL path. The arguments and the simulated tx-sender are supplied via the POST body in the following JSON format:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @param functionName Function name @return ApiCallReadOnlyFunctionRequest
func (*SmartContractsAPIService) CallReadOnlyFunctionExecute ¶
func (a *SmartContractsAPIService) CallReadOnlyFunctionExecute(r ApiCallReadOnlyFunctionRequest) (*PostCallReadOnlyFnschema, *http.Response, error)
Execute executes the request
@return PostCallReadOnlyFnschema
func (*SmartContractsAPIService) GetConstantVal ¶
func (a *SmartContractsAPIService) GetConstantVal(ctx context.Context, contractAddress string, contractName string, constantName string) ApiGetConstantValRequest
GetConstantVal Get the value of a constant inside a contract
Attempt to fetch the value of a constant inside a contract. The contract is identified with [Stacks Address] and [Contract Name] in the URL path. The constant is identified with [Constant Name].
In the response, `data` is the hex serialization of the constant value.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @param constantName Constant name @return ApiGetConstantValRequest
func (*SmartContractsAPIService) GetConstantValExecute ¶
func (a *SmartContractsAPIService) GetConstantValExecute(r ApiGetConstantValRequest) (*map[string]interface{}, *http.Response, error)
Execute executes the request
@return Object
func (*SmartContractsAPIService) GetContractDataMapEntry ¶
func (a *SmartContractsAPIService) GetContractDataMapEntry(ctx context.Context, contractAddress string, contractName string, mapName string) ApiGetContractDataMapEntryRequest
GetContractDataMapEntry Get specific data-map inside a contract
Attempt to fetch data from a contract data map. The contract is identified with [Stacks Address] and [Contract Name] in the URL path. The map is identified with [Map Name].
The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom.
In the response, `data` is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @param mapName Map name @return ApiGetContractDataMapEntryRequest
func (*SmartContractsAPIService) GetContractDataMapEntryExecute ¶
func (a *SmartContractsAPIService) GetContractDataMapEntryExecute(r ApiGetContractDataMapEntryRequest) (*GetContractDataMapEntryschema, *http.Response, error)
Execute executes the request
@return GetContractDataMapEntryschema
func (*SmartContractsAPIService) GetContractInterface ¶
func (a *SmartContractsAPIService) GetContractInterface(ctx context.Context, contractAddress string, contractName string) ApiGetContractInterfaceRequest
GetContractInterface Get contract interface
Get contract interface using a `contract_address` and `contract name`
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @return ApiGetContractInterfaceRequest
func (*SmartContractsAPIService) GetContractInterfaceExecute ¶
func (a *SmartContractsAPIService) GetContractInterfaceExecute(r ApiGetContractInterfaceRequest) (*GetContractInterfaceschema, *http.Response, error)
Execute executes the request
@return GetContractInterfaceschema
func (*SmartContractsAPIService) GetContractSource ¶
func (a *SmartContractsAPIService) GetContractSource(ctx context.Context, contractAddress string, contractName string) ApiGetContractSourceRequest
GetContractSource Get contract source
Returns the Clarity source code of a given contract, along with the block height it was published in, and the MARF proof for the data
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @return ApiGetContractSourceRequest
func (*SmartContractsAPIService) GetContractSourceExecute ¶
func (a *SmartContractsAPIService) GetContractSourceExecute(r ApiGetContractSourceRequest) (*GetContractSourceschema, *http.Response, error)
Execute executes the request
@return GetContractSourceschema
func (*SmartContractsAPIService) GetIsTraitImplemented ¶
func (a *SmartContractsAPIService) GetIsTraitImplemented(ctx context.Context, contractAddress string, contractName string, traitContractAddress string, traitContractName string, traitName string) ApiGetIsTraitImplementedRequest
GetIsTraitImplemented Get trait implementation details
Determine whether or not a specified trait is implemented (either explicitly or implicitly) within a given contract.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contractAddress Stacks address @param contractName Contract name @param traitContractAddress Trait Stacks address @param traitContractName Trait contract name @param traitName Trait name @return ApiGetIsTraitImplementedRequest
func (*SmartContractsAPIService) GetIsTraitImplementedExecute ¶
func (a *SmartContractsAPIService) GetIsTraitImplementedExecute(r ApiGetIsTraitImplementedRequest) (*map[string]interface{}, *http.Response, error)
Execute executes the request
@return Object
type TransactionsAPIService ¶
type TransactionsAPIService service
TransactionsAPIService TransactionsAPI service
func (*TransactionsAPIService) PostCoreNodeTransactions ¶
func (a *TransactionsAPIService) PostCoreNodeTransactions(ctx context.Context) ApiPostCoreNodeTransactionsRequest
PostCoreNodeTransactions Broadcast raw transaction
Broadcast raw transactions on the network. You can use the [@stacks/transactions](https://github.com/blockstack/stacks.js) project to generate a raw transaction payload.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPostCoreNodeTransactionsRequest
func (*TransactionsAPIService) PostCoreNodeTransactionsExecute ¶
func (a *TransactionsAPIService) PostCoreNodeTransactionsExecute(r ApiPostCoreNodeTransactionsRequest) (string, *http.Response, error)
Execute executes the request
@return string
Source Files ¶
- api_accounts.go
- api_blocks.go
- api_fees.go
- api_info.go
- api_mining.go
- api_smart_contracts.go
- api_transactions.go
- client.go
- configuration.go
- model_get_account_dataschema.go
- model_get_contract_data_map_entryschema.go
- model_get_contract_interfaceschema.go
- model_get_contract_sourceschema.go
- model_get_infoschema.go
- model_get_poxschema.go
- model_get_poxschema_contract_versions_inner.go
- model_get_poxschema_current_cycle.go
- model_get_poxschema_next_cycle.go
- model_post_call_read_only_fnschema.go
- model_post_core_node_transactions_errorschema.go
- model_post_fee_transaction_responseschema.go
- model_post_fee_transaction_responseschema_estimated_cost.go
- model_post_fee_transaction_responseschema_estimations_inner.go
- model_post_fee_transactionschema.go
- model_read_only_function_argsschema.go
- response.go
- utils.go