rpc_client

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 20 Imported by: 0

README

Go API client for rpc_client

This is the documentation for the stacks-node RPC interface.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import rpc_client "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value rpc_client.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), rpc_client.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value rpc_client.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), rpc_client.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using rpc_client.ContextOperationServerIndices and rpc_client.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), rpc_client.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), rpc_client.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:20443

Class Method HTTP request Description
AccountsAPI GetAccountInfo Get /v2/accounts/{principal} Get account info
BlocksAPI GetBlockV3 Get /v3/blocks/{block_id} Fetch a Nakamoto block
BlocksAPI GetTenureInfo Get /v3/tenures/info Fetch metadata about the ongoing Nakamoto tenure
BlocksAPI GetTenures Get /v3/tenures/{block_id} Fetch a sequence of Nakamoto blocks in a tenure
FeesAPI GetFeeTransfer Get /v2/fees/transfer Get estimated fee
FeesAPI PostFeeTransaction Post /v2/fees/transaction Get approximate fees for the given transaction
InfoAPI GetBurnOps Get /v2/burn_ops/{burn_height}/{op_type} Get burn operations
InfoAPI GetCoreApiInfo Get /v2/info Get Core API info
InfoAPI GetPoxInfo Get /v2/pox Get PoX details
MiningAPI GetStackerSet Get /v2/stacker_set/{cycle_number} Fetch the stacker and signer set information for a given cycle.
MiningAPI PostBlockProposal Post /v2/block_proposal Validate a proposed Stacks block
SmartContractsAPI CallReadOnlyFunction Post /v2/contracts/call-read/{contract_address}/{contract_name}/{function_name} Call read-only function
SmartContractsAPI GetConstantVal Post /v2/constant_val/{contract_address}/{contract_name}/{constant_name} Get the value of a constant inside a contract
SmartContractsAPI GetContractDataMapEntry Post /v2/map_entry/{contract_address}/{contract_name}/{map_name} Get specific data-map inside a contract
SmartContractsAPI GetContractInterface Get /v2/contracts/interface/{contract_address}/{contract_name} Get contract interface
SmartContractsAPI GetContractSource Get /v2/contracts/source/{contract_address}/{contract_name} Get contract source
SmartContractsAPI GetIsTraitImplemented Get /v2/traits/{contract_address}/{contract_name}/{trait_contract_address}/{trait_contract_name}/{trait_name} Get trait implementation details
TransactionsAPI PostCoreNodeTransactions Post /v2/transactions Broadcast raw transaction

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
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

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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

Execute executes the request

@return GetAccountDataschema

type ApiCallReadOnlyFunctionRequest

type ApiCallReadOnlyFunctionRequest struct {
	ApiService *SmartContractsAPIService
	// contains filtered or unexported fields
}

func (ApiCallReadOnlyFunctionRequest) Execute

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

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 (ApiGetAccountInfoRequest) Proof

Returns object without the proof field if set to 0

func (ApiGetAccountInfoRequest) Tip

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
}

func (ApiGetBlockV3Request) Execute

func (r ApiGetBlockV3Request) Execute() (*os.File, *http.Response, error)

type ApiGetBurnOpsRequest

type ApiGetBurnOpsRequest struct {
	ApiService *InfoAPIService
	// contains filtered or unexported fields
}

func (ApiGetBurnOpsRequest) Execute

func (r ApiGetBurnOpsRequest) Execute() (*http.Response, error)

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

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 (ApiGetContractDataMapEntryRequest) Key

Hex string serialization of the lookup key (which should be a Clarity value)

func (ApiGetContractDataMapEntryRequest) Proof

Returns object without the proof field when set to 0

func (ApiGetContractDataMapEntryRequest) Tip

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 (ApiGetContractInterfaceRequest) Tip

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 (ApiGetContractSourceRequest) Proof

Returns object without the proof field if set to 0

func (ApiGetContractSourceRequest) Tip

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

type ApiGetFeeTransferRequest

type ApiGetFeeTransferRequest struct {
	ApiService *FeesAPIService
	// contains filtered or unexported fields
}

func (ApiGetFeeTransferRequest) Execute

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

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 (ApiGetPoxInfoRequest) Tip

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
}

func (ApiGetStackerSetRequest) Execute

func (r ApiGetStackerSetRequest) Execute() (*http.Response, error)

type ApiGetTenureInfoRequest

type ApiGetTenureInfoRequest struct {
	ApiService *BlocksAPIService
	// contains filtered or unexported fields
}

func (ApiGetTenureInfoRequest) Execute

func (r ApiGetTenureInfoRequest) Execute() (*http.Response, error)

type ApiGetTenuresRequest

type ApiGetTenuresRequest struct {
	ApiService *BlocksAPIService
	// contains filtered or unexported fields
}

func (ApiGetTenuresRequest) Execute

func (r ApiGetTenuresRequest) Execute() (*os.File, *http.Response, error)

func (ApiGetTenuresRequest) Stop

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
}

func (ApiPostBlockProposalRequest) Execute

type ApiPostCoreNodeTransactionsRequest

type ApiPostCoreNodeTransactionsRequest struct {
	ApiService *TransactionsAPIService
	// contains filtered or unexported fields
}

func (ApiPostCoreNodeTransactionsRequest) Body

func (ApiPostCoreNodeTransactionsRequest) Execute

type ApiPostFeeTransactionRequest

type ApiPostFeeTransactionRequest struct {
	ApiService *FeesAPIService
	// contains filtered or unexported fields
}

func (ApiPostFeeTransactionRequest) Execute

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

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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

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

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

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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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 (NullableGetAccountDataschema) IsSet

func (NullableGetAccountDataschema) MarshalJSON

func (v NullableGetAccountDataschema) MarshalJSON() ([]byte, error)

func (*NullableGetAccountDataschema) Set

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 (NullableGetContractDataMapEntryschema) Get

func (NullableGetContractDataMapEntryschema) IsSet

func (NullableGetContractDataMapEntryschema) MarshalJSON

func (v NullableGetContractDataMapEntryschema) MarshalJSON() ([]byte, error)

func (*NullableGetContractDataMapEntryschema) Set

func (*NullableGetContractDataMapEntryschema) UnmarshalJSON

func (v *NullableGetContractDataMapEntryschema) UnmarshalJSON(src []byte) error

func (*NullableGetContractDataMapEntryschema) Unset

type NullableGetContractInterfaceschema

type NullableGetContractInterfaceschema struct {
	// contains filtered or unexported fields
}

func (NullableGetContractInterfaceschema) Get

func (NullableGetContractInterfaceschema) IsSet

func (NullableGetContractInterfaceschema) MarshalJSON

func (v NullableGetContractInterfaceschema) MarshalJSON() ([]byte, error)

func (*NullableGetContractInterfaceschema) Set

func (*NullableGetContractInterfaceschema) UnmarshalJSON

func (v *NullableGetContractInterfaceschema) UnmarshalJSON(src []byte) error

func (*NullableGetContractInterfaceschema) Unset

type NullableGetContractSourceschema

type NullableGetContractSourceschema struct {
	// contains filtered or unexported fields
}

func (NullableGetContractSourceschema) Get

func (NullableGetContractSourceschema) IsSet

func (NullableGetContractSourceschema) MarshalJSON

func (v NullableGetContractSourceschema) MarshalJSON() ([]byte, error)

func (*NullableGetContractSourceschema) Set

func (*NullableGetContractSourceschema) UnmarshalJSON

func (v *NullableGetContractSourceschema) UnmarshalJSON(src []byte) error

func (*NullableGetContractSourceschema) Unset

type NullableGetInfoschema

type NullableGetInfoschema struct {
	// contains filtered or unexported fields
}

func NewNullableGetInfoschema

func NewNullableGetInfoschema(val *GetInfoschema) *NullableGetInfoschema

func (NullableGetInfoschema) Get

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 (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 (NullableGetPoxschemaContractVersionsInner) Get

func (NullableGetPoxschemaContractVersionsInner) IsSet

func (NullableGetPoxschemaContractVersionsInner) MarshalJSON

func (*NullableGetPoxschemaContractVersionsInner) Set

func (*NullableGetPoxschemaContractVersionsInner) UnmarshalJSON

func (v *NullableGetPoxschemaContractVersionsInner) UnmarshalJSON(src []byte) error

func (*NullableGetPoxschemaContractVersionsInner) Unset

type NullableGetPoxschemaCurrentCycle

type NullableGetPoxschemaCurrentCycle struct {
	// contains filtered or unexported fields
}

func (NullableGetPoxschemaCurrentCycle) Get

func (NullableGetPoxschemaCurrentCycle) IsSet

func (NullableGetPoxschemaCurrentCycle) MarshalJSON

func (v NullableGetPoxschemaCurrentCycle) MarshalJSON() ([]byte, error)

func (*NullableGetPoxschemaCurrentCycle) Set

func (*NullableGetPoxschemaCurrentCycle) UnmarshalJSON

func (v *NullableGetPoxschemaCurrentCycle) UnmarshalJSON(src []byte) error

func (*NullableGetPoxschemaCurrentCycle) Unset

type NullableGetPoxschemaNextCycle

type NullableGetPoxschemaNextCycle struct {
	// contains filtered or unexported fields
}

func (NullableGetPoxschemaNextCycle) Get

func (NullableGetPoxschemaNextCycle) IsSet

func (NullableGetPoxschemaNextCycle) MarshalJSON

func (v NullableGetPoxschemaNextCycle) MarshalJSON() ([]byte, error)

func (*NullableGetPoxschemaNextCycle) Set

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 (NullablePostCallReadOnlyFnschema) Get

func (NullablePostCallReadOnlyFnschema) IsSet

func (NullablePostCallReadOnlyFnschema) MarshalJSON

func (v NullablePostCallReadOnlyFnschema) MarshalJSON() ([]byte, error)

func (*NullablePostCallReadOnlyFnschema) Set

func (*NullablePostCallReadOnlyFnschema) UnmarshalJSON

func (v *NullablePostCallReadOnlyFnschema) UnmarshalJSON(src []byte) error

func (*NullablePostCallReadOnlyFnschema) Unset

type NullablePostCoreNodeTransactionsErrorschema

type NullablePostCoreNodeTransactionsErrorschema struct {
	// contains filtered or unexported fields
}

func (NullablePostCoreNodeTransactionsErrorschema) Get

func (NullablePostCoreNodeTransactionsErrorschema) IsSet

func (NullablePostCoreNodeTransactionsErrorschema) MarshalJSON

func (*NullablePostCoreNodeTransactionsErrorschema) Set

func (*NullablePostCoreNodeTransactionsErrorschema) UnmarshalJSON

func (v *NullablePostCoreNodeTransactionsErrorschema) UnmarshalJSON(src []byte) error

func (*NullablePostCoreNodeTransactionsErrorschema) Unset

type NullablePostFeeTransactionResponseschema

type NullablePostFeeTransactionResponseschema struct {
	// contains filtered or unexported fields
}

func (NullablePostFeeTransactionResponseschema) Get

func (NullablePostFeeTransactionResponseschema) IsSet

func (NullablePostFeeTransactionResponseschema) MarshalJSON

func (*NullablePostFeeTransactionResponseschema) Set

func (*NullablePostFeeTransactionResponseschema) UnmarshalJSON

func (v *NullablePostFeeTransactionResponseschema) UnmarshalJSON(src []byte) error

func (*NullablePostFeeTransactionResponseschema) Unset

type NullablePostFeeTransactionResponseschemaEstimatedCost

type NullablePostFeeTransactionResponseschemaEstimatedCost struct {
	// contains filtered or unexported fields
}

func (NullablePostFeeTransactionResponseschemaEstimatedCost) Get

func (NullablePostFeeTransactionResponseschemaEstimatedCost) IsSet

func (NullablePostFeeTransactionResponseschemaEstimatedCost) MarshalJSON

func (*NullablePostFeeTransactionResponseschemaEstimatedCost) Set

func (*NullablePostFeeTransactionResponseschemaEstimatedCost) UnmarshalJSON

func (*NullablePostFeeTransactionResponseschemaEstimatedCost) Unset

type NullablePostFeeTransactionResponseschemaEstimationsInner

type NullablePostFeeTransactionResponseschemaEstimationsInner struct {
	// contains filtered or unexported fields
}

func (NullablePostFeeTransactionResponseschemaEstimationsInner) Get

func (NullablePostFeeTransactionResponseschemaEstimationsInner) IsSet

func (NullablePostFeeTransactionResponseschemaEstimationsInner) MarshalJSON

func (*NullablePostFeeTransactionResponseschemaEstimationsInner) Set

func (*NullablePostFeeTransactionResponseschemaEstimationsInner) UnmarshalJSON

func (*NullablePostFeeTransactionResponseschemaEstimationsInner) Unset

type NullablePostFeeTransactionschema

type NullablePostFeeTransactionschema struct {
	// contains filtered or unexported fields
}

func (NullablePostFeeTransactionschema) Get

func (NullablePostFeeTransactionschema) IsSet

func (NullablePostFeeTransactionschema) MarshalJSON

func (v NullablePostFeeTransactionschema) MarshalJSON() ([]byte, error)

func (*NullablePostFeeTransactionschema) Set

func (*NullablePostFeeTransactionschema) UnmarshalJSON

func (v *NullablePostFeeTransactionschema) UnmarshalJSON(src []byte) error

func (*NullablePostFeeTransactionschema) Unset

type NullableReadOnlyFunctionArgsschema

type NullableReadOnlyFunctionArgsschema struct {
	// contains filtered or unexported fields
}

func (NullableReadOnlyFunctionArgsschema) Get

func (NullableReadOnlyFunctionArgsschema) IsSet

func (NullableReadOnlyFunctionArgsschema) MarshalJSON

func (v NullableReadOnlyFunctionArgsschema) MarshalJSON() ([]byte, error)

func (*NullableReadOnlyFunctionArgsschema) Set

func (*NullableReadOnlyFunctionArgsschema) UnmarshalJSON

func (v *NullableReadOnlyFunctionArgsschema) UnmarshalJSON(src []byte) error

func (*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

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

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

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

SetError sets field value

func (*PostCoreNodeTransactionsErrorschema) SetReason

SetReason sets field value

func (*PostCoreNodeTransactionsErrorschema) SetReasonData

func (o *PostCoreNodeTransactionsErrorschema) SetReasonData(v map[string]interface{})

SetReasonData sets field value

func (*PostCoreNodeTransactionsErrorschema) SetTxid

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

GetEstimatedCost returns the EstimatedCost field value

func (*PostFeeTransactionResponseschema) GetEstimatedCostOk

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

GetEstimations returns the Estimations field value if set, zero value otherwise.

func (*PostFeeTransactionResponseschema) GetEstimationsOk

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

SetEstimatedCost sets field value

func (*PostFeeTransactionResponseschema) SetEstimatedCostScalar

func (o *PostFeeTransactionResponseschema) SetEstimatedCostScalar(v int32)

SetEstimatedCostScalar sets field value

func (*PostFeeTransactionResponseschema) SetEstimations

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

GetReadCount returns the ReadCount field value

func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadCountOk

GetReadCountOk returns a tuple with the ReadCount field value and a boolean to check if the value has been set.

func (*PostFeeTransactionResponseschemaEstimatedCost) GetReadLength

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

GetRuntime returns the Runtime field value

func (*PostFeeTransactionResponseschemaEstimatedCost) GetRuntimeOk

GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.

func (*PostFeeTransactionResponseschemaEstimatedCost) GetWriteCount

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

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 (*PostFeeTransactionResponseschemaEstimatedCost) SetReadCount

SetReadCount sets field value

func (*PostFeeTransactionResponseschemaEstimatedCost) SetReadLength

SetReadLength sets field value

func (*PostFeeTransactionResponseschemaEstimatedCost) SetRuntime

SetRuntime sets field value

func (*PostFeeTransactionResponseschemaEstimatedCost) SetWriteCount

SetWriteCount sets field value

func (*PostFeeTransactionResponseschemaEstimatedCost) SetWriteLength

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

GetFee returns the Fee field value if set, zero value otherwise.

func (*PostFeeTransactionResponseschemaEstimationsInner) GetFeeOk

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

GetFeeRate returns the FeeRate field value if set, zero value otherwise.

func (*PostFeeTransactionResponseschemaEstimationsInner) GetFeeRateOk

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

HasFee returns a boolean if a field has been set.

func (*PostFeeTransactionResponseschemaEstimationsInner) HasFeeRate

HasFeeRate returns a boolean if a field has been set.

func (PostFeeTransactionResponseschemaEstimationsInner) MarshalJSON

func (*PostFeeTransactionResponseschemaEstimationsInner) SetFee

SetFee gets a reference to the given float32 and assigns it to the Fee field.

func (*PostFeeTransactionResponseschemaEstimationsInner) SetFeeRate

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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

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

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

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL