Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error)
- func (a *Client) GetBlocks(params *GetBlocksParams, opts ...ClientOption) (*GetBlocksOK, error)
- func (a *Client) GetBlocksBlockHeight(params *GetBlocksBlockHeightParams, opts ...ClientOption) (*GetBlocksBlockHeightOK, error)
- func (a *Client) GetMetadata(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)
- func (a *Client) GetOutputs(params *GetOutputsParams, opts ...ClientOption) (*GetOutputsOK, error)
- func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error)
- func (a *Client) GetTransactionsTransactionID(params *GetTransactionsTransactionIDParams, opts ...ClientOption) (*GetTransactionsTransactionIDOK, error)
- func (a *Client) PostTransactions(params *PostTransactionsParams, opts ...ClientOption) (*PostTransactionsAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAssetsBadRequest
- func (o *GetAssetsBadRequest) Code() int
- func (o *GetAssetsBadRequest) Error() string
- func (o *GetAssetsBadRequest) GetPayload() *models.Error
- func (o *GetAssetsBadRequest) IsClientError() bool
- func (o *GetAssetsBadRequest) IsCode(code int) bool
- func (o *GetAssetsBadRequest) IsRedirect() bool
- func (o *GetAssetsBadRequest) IsServerError() bool
- func (o *GetAssetsBadRequest) IsSuccess() bool
- func (o *GetAssetsBadRequest) String() string
- type GetAssetsOK
- func (o *GetAssetsOK) Code() int
- func (o *GetAssetsOK) Error() string
- func (o *GetAssetsOK) GetPayload() []*models.Asset
- func (o *GetAssetsOK) IsClientError() bool
- func (o *GetAssetsOK) IsCode(code int) bool
- func (o *GetAssetsOK) IsRedirect() bool
- func (o *GetAssetsOK) IsServerError() bool
- func (o *GetAssetsOK) IsSuccess() bool
- func (o *GetAssetsOK) String() string
- type GetAssetsParams
- func (o *GetAssetsParams) SetContext(ctx context.Context)
- func (o *GetAssetsParams) SetDefaults()
- func (o *GetAssetsParams) SetHTTPClient(client *http.Client)
- func (o *GetAssetsParams) SetLimit(limit *int64)
- func (o *GetAssetsParams) SetSearch(search string)
- func (o *GetAssetsParams) SetTimeout(timeout time.Duration)
- func (o *GetAssetsParams) WithContext(ctx context.Context) *GetAssetsParams
- func (o *GetAssetsParams) WithDefaults() *GetAssetsParams
- func (o *GetAssetsParams) WithHTTPClient(client *http.Client) *GetAssetsParams
- func (o *GetAssetsParams) WithLimit(limit *int64) *GetAssetsParams
- func (o *GetAssetsParams) WithSearch(search string) *GetAssetsParams
- func (o *GetAssetsParams) WithTimeout(timeout time.Duration) *GetAssetsParams
- func (o *GetAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAssetsReader
- type GetBlocksBadRequest
- func (o *GetBlocksBadRequest) Code() int
- func (o *GetBlocksBadRequest) Error() string
- func (o *GetBlocksBadRequest) GetPayload() *models.Error
- func (o *GetBlocksBadRequest) IsClientError() bool
- func (o *GetBlocksBadRequest) IsCode(code int) bool
- func (o *GetBlocksBadRequest) IsRedirect() bool
- func (o *GetBlocksBadRequest) IsServerError() bool
- func (o *GetBlocksBadRequest) IsSuccess() bool
- func (o *GetBlocksBadRequest) String() string
- type GetBlocksBlockHeightBadRequest
- func (o *GetBlocksBlockHeightBadRequest) Code() int
- func (o *GetBlocksBlockHeightBadRequest) Error() string
- func (o *GetBlocksBlockHeightBadRequest) GetPayload() *models.Error
- func (o *GetBlocksBlockHeightBadRequest) IsClientError() bool
- func (o *GetBlocksBlockHeightBadRequest) IsCode(code int) bool
- func (o *GetBlocksBlockHeightBadRequest) IsRedirect() bool
- func (o *GetBlocksBlockHeightBadRequest) IsServerError() bool
- func (o *GetBlocksBlockHeightBadRequest) IsSuccess() bool
- func (o *GetBlocksBlockHeightBadRequest) String() string
- type GetBlocksBlockHeightNotFound
- func (o *GetBlocksBlockHeightNotFound) Code() int
- func (o *GetBlocksBlockHeightNotFound) Error() string
- func (o *GetBlocksBlockHeightNotFound) GetPayload() *models.Error
- func (o *GetBlocksBlockHeightNotFound) IsClientError() bool
- func (o *GetBlocksBlockHeightNotFound) IsCode(code int) bool
- func (o *GetBlocksBlockHeightNotFound) IsRedirect() bool
- func (o *GetBlocksBlockHeightNotFound) IsServerError() bool
- func (o *GetBlocksBlockHeightNotFound) IsSuccess() bool
- func (o *GetBlocksBlockHeightNotFound) String() string
- type GetBlocksBlockHeightOK
- func (o *GetBlocksBlockHeightOK) Code() int
- func (o *GetBlocksBlockHeightOK) Error() string
- func (o *GetBlocksBlockHeightOK) GetPayload() *models.Block
- func (o *GetBlocksBlockHeightOK) IsClientError() bool
- func (o *GetBlocksBlockHeightOK) IsCode(code int) bool
- func (o *GetBlocksBlockHeightOK) IsRedirect() bool
- func (o *GetBlocksBlockHeightOK) IsServerError() bool
- func (o *GetBlocksBlockHeightOK) IsSuccess() bool
- func (o *GetBlocksBlockHeightOK) String() string
- type GetBlocksBlockHeightParams
- func NewGetBlocksBlockHeightParams() *GetBlocksBlockHeightParams
- func NewGetBlocksBlockHeightParamsWithContext(ctx context.Context) *GetBlocksBlockHeightParams
- func NewGetBlocksBlockHeightParamsWithHTTPClient(client *http.Client) *GetBlocksBlockHeightParams
- func NewGetBlocksBlockHeightParamsWithTimeout(timeout time.Duration) *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) SetBlockHeight(blockHeight int64)
- func (o *GetBlocksBlockHeightParams) SetContext(ctx context.Context)
- func (o *GetBlocksBlockHeightParams) SetDefaults()
- func (o *GetBlocksBlockHeightParams) SetHTTPClient(client *http.Client)
- func (o *GetBlocksBlockHeightParams) SetTimeout(timeout time.Duration)
- func (o *GetBlocksBlockHeightParams) WithBlockHeight(blockHeight int64) *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) WithContext(ctx context.Context) *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) WithDefaults() *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) WithHTTPClient(client *http.Client) *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) WithTimeout(timeout time.Duration) *GetBlocksBlockHeightParams
- func (o *GetBlocksBlockHeightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBlocksBlockHeightReader
- type GetBlocksOK
- func (o *GetBlocksOK) Code() int
- func (o *GetBlocksOK) Error() string
- func (o *GetBlocksOK) GetPayload() []int64
- func (o *GetBlocksOK) IsClientError() bool
- func (o *GetBlocksOK) IsCode(code int) bool
- func (o *GetBlocksOK) IsRedirect() bool
- func (o *GetBlocksOK) IsServerError() bool
- func (o *GetBlocksOK) IsSuccess() bool
- func (o *GetBlocksOK) String() string
- type GetBlocksParams
- func (o *GetBlocksParams) SetContext(ctx context.Context)
- func (o *GetBlocksParams) SetDefaults()
- func (o *GetBlocksParams) SetHTTPClient(client *http.Client)
- func (o *GetBlocksParams) SetTimeout(timeout time.Duration)
- func (o *GetBlocksParams) SetTransactionID(transactionID string)
- func (o *GetBlocksParams) WithContext(ctx context.Context) *GetBlocksParams
- func (o *GetBlocksParams) WithDefaults() *GetBlocksParams
- func (o *GetBlocksParams) WithHTTPClient(client *http.Client) *GetBlocksParams
- func (o *GetBlocksParams) WithTimeout(timeout time.Duration) *GetBlocksParams
- func (o *GetBlocksParams) WithTransactionID(transactionID string) *GetBlocksParams
- func (o *GetBlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBlocksReader
- type GetMetadataBadRequest
- func (o *GetMetadataBadRequest) Code() int
- func (o *GetMetadataBadRequest) Error() string
- func (o *GetMetadataBadRequest) GetPayload() *models.Error
- func (o *GetMetadataBadRequest) IsClientError() bool
- func (o *GetMetadataBadRequest) IsCode(code int) bool
- func (o *GetMetadataBadRequest) IsRedirect() bool
- func (o *GetMetadataBadRequest) IsServerError() bool
- func (o *GetMetadataBadRequest) IsSuccess() bool
- func (o *GetMetadataBadRequest) String() string
- type GetMetadataOK
- func (o *GetMetadataOK) Code() int
- func (o *GetMetadataOK) Error() string
- func (o *GetMetadataOK) GetPayload() []models.Metadata
- func (o *GetMetadataOK) IsClientError() bool
- func (o *GetMetadataOK) IsCode(code int) bool
- func (o *GetMetadataOK) IsRedirect() bool
- func (o *GetMetadataOK) IsServerError() bool
- func (o *GetMetadataOK) IsSuccess() bool
- func (o *GetMetadataOK) String() string
- type GetMetadataParams
- func (o *GetMetadataParams) SetContext(ctx context.Context)
- func (o *GetMetadataParams) SetDefaults()
- func (o *GetMetadataParams) SetHTTPClient(client *http.Client)
- func (o *GetMetadataParams) SetLimit(limit *int64)
- func (o *GetMetadataParams) SetSearch(search string)
- func (o *GetMetadataParams) SetTimeout(timeout time.Duration)
- func (o *GetMetadataParams) WithContext(ctx context.Context) *GetMetadataParams
- func (o *GetMetadataParams) WithDefaults() *GetMetadataParams
- func (o *GetMetadataParams) WithHTTPClient(client *http.Client) *GetMetadataParams
- func (o *GetMetadataParams) WithLimit(limit *int64) *GetMetadataParams
- func (o *GetMetadataParams) WithSearch(search string) *GetMetadataParams
- func (o *GetMetadataParams) WithTimeout(timeout time.Duration) *GetMetadataParams
- func (o *GetMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetadataReader
- type GetOutputsBadRequest
- func (o *GetOutputsBadRequest) Code() int
- func (o *GetOutputsBadRequest) Error() string
- func (o *GetOutputsBadRequest) GetPayload() *models.Error
- func (o *GetOutputsBadRequest) IsClientError() bool
- func (o *GetOutputsBadRequest) IsCode(code int) bool
- func (o *GetOutputsBadRequest) IsRedirect() bool
- func (o *GetOutputsBadRequest) IsServerError() bool
- func (o *GetOutputsBadRequest) IsSuccess() bool
- func (o *GetOutputsBadRequest) String() string
- type GetOutputsOK
- func (o *GetOutputsOK) Code() int
- func (o *GetOutputsOK) Error() string
- func (o *GetOutputsOK) GetPayload() []*models.Fulfills
- func (o *GetOutputsOK) IsClientError() bool
- func (o *GetOutputsOK) IsCode(code int) bool
- func (o *GetOutputsOK) IsRedirect() bool
- func (o *GetOutputsOK) IsServerError() bool
- func (o *GetOutputsOK) IsSuccess() bool
- func (o *GetOutputsOK) String() string
- type GetOutputsParams
- func (o *GetOutputsParams) SetContext(ctx context.Context)
- func (o *GetOutputsParams) SetDefaults()
- func (o *GetOutputsParams) SetHTTPClient(client *http.Client)
- func (o *GetOutputsParams) SetPublicKey(publicKey string)
- func (o *GetOutputsParams) SetSpent(spent *bool)
- func (o *GetOutputsParams) SetTimeout(timeout time.Duration)
- func (o *GetOutputsParams) WithContext(ctx context.Context) *GetOutputsParams
- func (o *GetOutputsParams) WithDefaults() *GetOutputsParams
- func (o *GetOutputsParams) WithHTTPClient(client *http.Client) *GetOutputsParams
- func (o *GetOutputsParams) WithPublicKey(publicKey string) *GetOutputsParams
- func (o *GetOutputsParams) WithSpent(spent *bool) *GetOutputsParams
- func (o *GetOutputsParams) WithTimeout(timeout time.Duration) *GetOutputsParams
- func (o *GetOutputsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOutputsReader
- type GetTransactionsBadRequest
- func (o *GetTransactionsBadRequest) Code() int
- func (o *GetTransactionsBadRequest) Error() string
- func (o *GetTransactionsBadRequest) GetPayload() *models.Error
- func (o *GetTransactionsBadRequest) IsClientError() bool
- func (o *GetTransactionsBadRequest) IsCode(code int) bool
- func (o *GetTransactionsBadRequest) IsRedirect() bool
- func (o *GetTransactionsBadRequest) IsServerError() bool
- func (o *GetTransactionsBadRequest) IsSuccess() bool
- func (o *GetTransactionsBadRequest) String() string
- type GetTransactionsOK
- func (o *GetTransactionsOK) Code() int
- func (o *GetTransactionsOK) Error() string
- func (o *GetTransactionsOK) GetPayload() []*models.Transaction
- func (o *GetTransactionsOK) IsClientError() bool
- func (o *GetTransactionsOK) IsCode(code int) bool
- func (o *GetTransactionsOK) IsRedirect() bool
- func (o *GetTransactionsOK) IsServerError() bool
- func (o *GetTransactionsOK) IsSuccess() bool
- func (o *GetTransactionsOK) String() string
- type GetTransactionsParams
- func NewGetTransactionsParams() *GetTransactionsParams
- func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams
- func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams
- func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams
- func (o *GetTransactionsParams) SetAssetID(assetID *string)
- func (o *GetTransactionsParams) SetContext(ctx context.Context)
- func (o *GetTransactionsParams) SetDefaults()
- func (o *GetTransactionsParams) SetHTTPClient(client *http.Client)
- func (o *GetTransactionsParams) SetLastTx(lastTx *bool)
- func (o *GetTransactionsParams) SetOperation(operation *string)
- func (o *GetTransactionsParams) SetTimeout(timeout time.Duration)
- func (o *GetTransactionsParams) WithAssetID(assetID *string) *GetTransactionsParams
- func (o *GetTransactionsParams) WithContext(ctx context.Context) *GetTransactionsParams
- func (o *GetTransactionsParams) WithDefaults() *GetTransactionsParams
- func (o *GetTransactionsParams) WithHTTPClient(client *http.Client) *GetTransactionsParams
- func (o *GetTransactionsParams) WithLastTx(lastTx *bool) *GetTransactionsParams
- func (o *GetTransactionsParams) WithOperation(operation *string) *GetTransactionsParams
- func (o *GetTransactionsParams) WithTimeout(timeout time.Duration) *GetTransactionsParams
- func (o *GetTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransactionsReader
- type GetTransactionsTransactionIDNotFound
- func (o *GetTransactionsTransactionIDNotFound) Code() int
- func (o *GetTransactionsTransactionIDNotFound) Error() string
- func (o *GetTransactionsTransactionIDNotFound) GetPayload() *models.Error
- func (o *GetTransactionsTransactionIDNotFound) IsClientError() bool
- func (o *GetTransactionsTransactionIDNotFound) IsCode(code int) bool
- func (o *GetTransactionsTransactionIDNotFound) IsRedirect() bool
- func (o *GetTransactionsTransactionIDNotFound) IsServerError() bool
- func (o *GetTransactionsTransactionIDNotFound) IsSuccess() bool
- func (o *GetTransactionsTransactionIDNotFound) String() string
- type GetTransactionsTransactionIDOK
- func (o *GetTransactionsTransactionIDOK) Code() int
- func (o *GetTransactionsTransactionIDOK) Error() string
- func (o *GetTransactionsTransactionIDOK) GetPayload() *models.Transaction
- func (o *GetTransactionsTransactionIDOK) IsClientError() bool
- func (o *GetTransactionsTransactionIDOK) IsCode(code int) bool
- func (o *GetTransactionsTransactionIDOK) IsRedirect() bool
- func (o *GetTransactionsTransactionIDOK) IsServerError() bool
- func (o *GetTransactionsTransactionIDOK) IsSuccess() bool
- func (o *GetTransactionsTransactionIDOK) String() string
- type GetTransactionsTransactionIDParams
- func NewGetTransactionsTransactionIDParams() *GetTransactionsTransactionIDParams
- func NewGetTransactionsTransactionIDParamsWithContext(ctx context.Context) *GetTransactionsTransactionIDParams
- func NewGetTransactionsTransactionIDParamsWithHTTPClient(client *http.Client) *GetTransactionsTransactionIDParams
- func NewGetTransactionsTransactionIDParamsWithTimeout(timeout time.Duration) *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) SetContext(ctx context.Context)
- func (o *GetTransactionsTransactionIDParams) SetDefaults()
- func (o *GetTransactionsTransactionIDParams) SetHTTPClient(client *http.Client)
- func (o *GetTransactionsTransactionIDParams) SetTimeout(timeout time.Duration)
- func (o *GetTransactionsTransactionIDParams) SetTransactionID(transactionID string)
- func (o *GetTransactionsTransactionIDParams) WithContext(ctx context.Context) *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) WithDefaults() *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) WithHTTPClient(client *http.Client) *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) WithTimeout(timeout time.Duration) *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) WithTransactionID(transactionID string) *GetTransactionsTransactionIDParams
- func (o *GetTransactionsTransactionIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransactionsTransactionIDReader
- type PostTransactionsAccepted
- func (o *PostTransactionsAccepted) Code() int
- func (o *PostTransactionsAccepted) Error() string
- func (o *PostTransactionsAccepted) GetPayload() *models.Transaction
- func (o *PostTransactionsAccepted) IsClientError() bool
- func (o *PostTransactionsAccepted) IsCode(code int) bool
- func (o *PostTransactionsAccepted) IsRedirect() bool
- func (o *PostTransactionsAccepted) IsServerError() bool
- func (o *PostTransactionsAccepted) IsSuccess() bool
- func (o *PostTransactionsAccepted) String() string
- type PostTransactionsBadRequest
- func (o *PostTransactionsBadRequest) Code() int
- func (o *PostTransactionsBadRequest) Error() string
- func (o *PostTransactionsBadRequest) GetPayload() *models.Error
- func (o *PostTransactionsBadRequest) IsClientError() bool
- func (o *PostTransactionsBadRequest) IsCode(code int) bool
- func (o *PostTransactionsBadRequest) IsRedirect() bool
- func (o *PostTransactionsBadRequest) IsServerError() bool
- func (o *PostTransactionsBadRequest) IsSuccess() bool
- func (o *PostTransactionsBadRequest) String() string
- type PostTransactionsInternalServerError
- func (o *PostTransactionsInternalServerError) Code() int
- func (o *PostTransactionsInternalServerError) Error() string
- func (o *PostTransactionsInternalServerError) GetPayload() *models.Error
- func (o *PostTransactionsInternalServerError) IsClientError() bool
- func (o *PostTransactionsInternalServerError) IsCode(code int) bool
- func (o *PostTransactionsInternalServerError) IsRedirect() bool
- func (o *PostTransactionsInternalServerError) IsServerError() bool
- func (o *PostTransactionsInternalServerError) IsSuccess() bool
- func (o *PostTransactionsInternalServerError) String() string
- type PostTransactionsParams
- func NewPostTransactionsParams() *PostTransactionsParams
- func NewPostTransactionsParamsWithContext(ctx context.Context) *PostTransactionsParams
- func NewPostTransactionsParamsWithHTTPClient(client *http.Client) *PostTransactionsParams
- func NewPostTransactionsParamsWithTimeout(timeout time.Duration) *PostTransactionsParams
- func (o *PostTransactionsParams) SetContext(ctx context.Context)
- func (o *PostTransactionsParams) SetDefaults()
- func (o *PostTransactionsParams) SetHTTPClient(client *http.Client)
- func (o *PostTransactionsParams) SetMode(mode *string)
- func (o *PostTransactionsParams) SetPostBody(postBody *models.Transaction)
- func (o *PostTransactionsParams) SetTimeout(timeout time.Duration)
- func (o *PostTransactionsParams) WithContext(ctx context.Context) *PostTransactionsParams
- func (o *PostTransactionsParams) WithDefaults() *PostTransactionsParams
- func (o *PostTransactionsParams) WithHTTPClient(client *http.Client) *PostTransactionsParams
- func (o *PostTransactionsParams) WithMode(mode *string) *PostTransactionsParams
- func (o *PostTransactionsParams) WithPostBody(postBody *models.Transaction) *PostTransactionsParams
- func (o *PostTransactionsParams) WithTimeout(timeout time.Duration) *PostTransactionsParams
- func (o *PostTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostTransactionsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) GetAssets ¶
func (a *Client) GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error)
GetAssets gets assets by text search
Retrieves assets that match a given text search
func (*Client) GetBlocks ¶
func (a *Client) GetBlocks(params *GetBlocksParams, opts ...ClientOption) (*GetBlocksOK, error)
GetBlocks gets blocks by transaction ID
Retrieves a list of block IDs that contain a transaction with the specified transaction ID
func (*Client) GetBlocksBlockHeight ¶
func (a *Client) GetBlocksBlockHeight(params *GetBlocksBlockHeightParams, opts ...ClientOption) (*GetBlocksBlockHeightOK, error)
GetBlocksBlockHeight gets block by height
Retrieves the block with the specified block height
func (*Client) GetMetadata ¶
func (a *Client) GetMetadata(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)
GetMetadata gets metadata objects by text search
Retrieves metadata objects that match a given text search
func (*Client) GetOutputs ¶
func (a *Client) GetOutputs(params *GetOutputsParams, opts ...ClientOption) (*GetOutputsOK, error)
GetOutputs gets transaction outputs
Retrieves transaction outputs by public key
func (*Client) GetTransactions ¶
func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error)
GetTransactions gets a list of transactions
func (*Client) GetTransactionsTransactionID ¶
func (a *Client) GetTransactionsTransactionID(params *GetTransactionsTransactionIDParams, opts ...ClientOption) (*GetTransactionsTransactionIDOK, error)
GetTransactionsTransactionID gets a transaction by ID
func (*Client) PostTransactions ¶
func (a *Client) PostTransactions(params *PostTransactionsParams, opts ...ClientOption) (*PostTransactionsAccepted, error)
PostTransactions sends a transaction
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error) GetBlocks(params *GetBlocksParams, opts ...ClientOption) (*GetBlocksOK, error) GetBlocksBlockHeight(params *GetBlocksBlockHeightParams, opts ...ClientOption) (*GetBlocksBlockHeightOK, error) GetMetadata(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error) GetOutputs(params *GetOutputsParams, opts ...ClientOption) (*GetOutputsOK, error) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) GetTransactionsTransactionID(params *GetTransactionsTransactionIDParams, opts ...ClientOption) (*GetTransactionsTransactionIDOK, error) PostTransactions(params *PostTransactionsParams, opts ...ClientOption) (*PostTransactionsAccepted, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new operations API client.
type GetAssetsBadRequest ¶
GetAssetsBadRequest describes a response with status code 400, with default header values.
Bad Request - The query was not executed successfully
func NewGetAssetsBadRequest ¶
func NewGetAssetsBadRequest() *GetAssetsBadRequest
NewGetAssetsBadRequest creates a GetAssetsBadRequest with default headers values
func (*GetAssetsBadRequest) Code ¶
func (o *GetAssetsBadRequest) Code() int
Code gets the status code for the get assets bad request response
func (*GetAssetsBadRequest) Error ¶
func (o *GetAssetsBadRequest) Error() string
func (*GetAssetsBadRequest) GetPayload ¶
func (o *GetAssetsBadRequest) GetPayload() *models.Error
func (*GetAssetsBadRequest) IsClientError ¶
func (o *GetAssetsBadRequest) IsClientError() bool
IsClientError returns true when this get assets bad request response has a 4xx status code
func (*GetAssetsBadRequest) IsCode ¶
func (o *GetAssetsBadRequest) IsCode(code int) bool
IsCode returns true when this get assets bad request response a status code equal to that given
func (*GetAssetsBadRequest) IsRedirect ¶
func (o *GetAssetsBadRequest) IsRedirect() bool
IsRedirect returns true when this get assets bad request response has a 3xx status code
func (*GetAssetsBadRequest) IsServerError ¶
func (o *GetAssetsBadRequest) IsServerError() bool
IsServerError returns true when this get assets bad request response has a 5xx status code
func (*GetAssetsBadRequest) IsSuccess ¶
func (o *GetAssetsBadRequest) IsSuccess() bool
IsSuccess returns true when this get assets bad request response has a 2xx status code
func (*GetAssetsBadRequest) String ¶
func (o *GetAssetsBadRequest) String() string
type GetAssetsOK ¶
GetAssetsOK describes a response with status code 200, with default header values.
Successful response with a list of matching assets
func NewGetAssetsOK ¶
func NewGetAssetsOK() *GetAssetsOK
NewGetAssetsOK creates a GetAssetsOK with default headers values
func (*GetAssetsOK) Code ¶
func (o *GetAssetsOK) Code() int
Code gets the status code for the get assets o k response
func (*GetAssetsOK) Error ¶
func (o *GetAssetsOK) Error() string
func (*GetAssetsOK) GetPayload ¶
func (o *GetAssetsOK) GetPayload() []*models.Asset
func (*GetAssetsOK) IsClientError ¶
func (o *GetAssetsOK) IsClientError() bool
IsClientError returns true when this get assets o k response has a 4xx status code
func (*GetAssetsOK) IsCode ¶
func (o *GetAssetsOK) IsCode(code int) bool
IsCode returns true when this get assets o k response a status code equal to that given
func (*GetAssetsOK) IsRedirect ¶
func (o *GetAssetsOK) IsRedirect() bool
IsRedirect returns true when this get assets o k response has a 3xx status code
func (*GetAssetsOK) IsServerError ¶
func (o *GetAssetsOK) IsServerError() bool
IsServerError returns true when this get assets o k response has a 5xx status code
func (*GetAssetsOK) IsSuccess ¶
func (o *GetAssetsOK) IsSuccess() bool
IsSuccess returns true when this get assets o k response has a 2xx status code
func (*GetAssetsOK) String ¶
func (o *GetAssetsOK) String() string
type GetAssetsParams ¶
type GetAssetsParams struct { /* Limit. Limit the number of returned assets */ Limit *int64 /* Search. Text search string to query */ Search string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAssetsParams contains all the parameters to send to the API endpoint
for the get assets operation. Typically these are written to a http.Request.
func NewGetAssetsParams ¶
func NewGetAssetsParams() *GetAssetsParams
NewGetAssetsParams creates a new GetAssetsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetAssetsParamsWithContext ¶
func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams
NewGetAssetsParamsWithContext creates a new GetAssetsParams object with the ability to set a context for a request.
func NewGetAssetsParamsWithHTTPClient ¶
func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams
NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAssetsParamsWithTimeout ¶
func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams
NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object with the ability to set a timeout on a request.
func (*GetAssetsParams) SetContext ¶
func (o *GetAssetsParams) SetContext(ctx context.Context)
SetContext adds the context to the get assets params
func (*GetAssetsParams) SetDefaults ¶
func (o *GetAssetsParams) SetDefaults()
SetDefaults hydrates default values in the get assets params (not the query body).
All values with no default are reset to their zero value.
func (*GetAssetsParams) SetHTTPClient ¶
func (o *GetAssetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get assets params
func (*GetAssetsParams) SetLimit ¶
func (o *GetAssetsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get assets params
func (*GetAssetsParams) SetSearch ¶
func (o *GetAssetsParams) SetSearch(search string)
SetSearch adds the search to the get assets params
func (*GetAssetsParams) SetTimeout ¶
func (o *GetAssetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get assets params
func (*GetAssetsParams) WithContext ¶
func (o *GetAssetsParams) WithContext(ctx context.Context) *GetAssetsParams
WithContext adds the context to the get assets params
func (*GetAssetsParams) WithDefaults ¶
func (o *GetAssetsParams) WithDefaults() *GetAssetsParams
WithDefaults hydrates default values in the get assets params (not the query body).
All values with no default are reset to their zero value.
func (*GetAssetsParams) WithHTTPClient ¶
func (o *GetAssetsParams) WithHTTPClient(client *http.Client) *GetAssetsParams
WithHTTPClient adds the HTTPClient to the get assets params
func (*GetAssetsParams) WithLimit ¶
func (o *GetAssetsParams) WithLimit(limit *int64) *GetAssetsParams
WithLimit adds the limit to the get assets params
func (*GetAssetsParams) WithSearch ¶
func (o *GetAssetsParams) WithSearch(search string) *GetAssetsParams
WithSearch adds the search to the get assets params
func (*GetAssetsParams) WithTimeout ¶
func (o *GetAssetsParams) WithTimeout(timeout time.Duration) *GetAssetsParams
WithTimeout adds the timeout to the get assets params
func (*GetAssetsParams) WriteToRequest ¶
func (o *GetAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAssetsReader ¶
type GetAssetsReader struct {
// contains filtered or unexported fields
}
GetAssetsReader is a Reader for the GetAssets structure.
func (*GetAssetsReader) ReadResponse ¶
func (o *GetAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBlocksBadRequest ¶
GetBlocksBadRequest describes a response with status code 400, with default header values.
Bad Request - The request wasn’t understood by the server
func NewGetBlocksBadRequest ¶
func NewGetBlocksBadRequest() *GetBlocksBadRequest
NewGetBlocksBadRequest creates a GetBlocksBadRequest with default headers values
func (*GetBlocksBadRequest) Code ¶
func (o *GetBlocksBadRequest) Code() int
Code gets the status code for the get blocks bad request response
func (*GetBlocksBadRequest) Error ¶
func (o *GetBlocksBadRequest) Error() string
func (*GetBlocksBadRequest) GetPayload ¶
func (o *GetBlocksBadRequest) GetPayload() *models.Error
func (*GetBlocksBadRequest) IsClientError ¶
func (o *GetBlocksBadRequest) IsClientError() bool
IsClientError returns true when this get blocks bad request response has a 4xx status code
func (*GetBlocksBadRequest) IsCode ¶
func (o *GetBlocksBadRequest) IsCode(code int) bool
IsCode returns true when this get blocks bad request response a status code equal to that given
func (*GetBlocksBadRequest) IsRedirect ¶
func (o *GetBlocksBadRequest) IsRedirect() bool
IsRedirect returns true when this get blocks bad request response has a 3xx status code
func (*GetBlocksBadRequest) IsServerError ¶
func (o *GetBlocksBadRequest) IsServerError() bool
IsServerError returns true when this get blocks bad request response has a 5xx status code
func (*GetBlocksBadRequest) IsSuccess ¶
func (o *GetBlocksBadRequest) IsSuccess() bool
IsSuccess returns true when this get blocks bad request response has a 2xx status code
func (*GetBlocksBadRequest) String ¶
func (o *GetBlocksBadRequest) String() string
type GetBlocksBlockHeightBadRequest ¶
GetBlocksBlockHeightBadRequest describes a response with status code 400, with default header values.
Bad Request - The request wasn’t understood by the server
func NewGetBlocksBlockHeightBadRequest ¶
func NewGetBlocksBlockHeightBadRequest() *GetBlocksBlockHeightBadRequest
NewGetBlocksBlockHeightBadRequest creates a GetBlocksBlockHeightBadRequest with default headers values
func (*GetBlocksBlockHeightBadRequest) Code ¶
func (o *GetBlocksBlockHeightBadRequest) Code() int
Code gets the status code for the get blocks block height bad request response
func (*GetBlocksBlockHeightBadRequest) Error ¶
func (o *GetBlocksBlockHeightBadRequest) Error() string
func (*GetBlocksBlockHeightBadRequest) GetPayload ¶
func (o *GetBlocksBlockHeightBadRequest) GetPayload() *models.Error
func (*GetBlocksBlockHeightBadRequest) IsClientError ¶
func (o *GetBlocksBlockHeightBadRequest) IsClientError() bool
IsClientError returns true when this get blocks block height bad request response has a 4xx status code
func (*GetBlocksBlockHeightBadRequest) IsCode ¶
func (o *GetBlocksBlockHeightBadRequest) IsCode(code int) bool
IsCode returns true when this get blocks block height bad request response a status code equal to that given
func (*GetBlocksBlockHeightBadRequest) IsRedirect ¶
func (o *GetBlocksBlockHeightBadRequest) IsRedirect() bool
IsRedirect returns true when this get blocks block height bad request response has a 3xx status code
func (*GetBlocksBlockHeightBadRequest) IsServerError ¶
func (o *GetBlocksBlockHeightBadRequest) IsServerError() bool
IsServerError returns true when this get blocks block height bad request response has a 5xx status code
func (*GetBlocksBlockHeightBadRequest) IsSuccess ¶
func (o *GetBlocksBlockHeightBadRequest) IsSuccess() bool
IsSuccess returns true when this get blocks block height bad request response has a 2xx status code
func (*GetBlocksBlockHeightBadRequest) String ¶
func (o *GetBlocksBlockHeightBadRequest) String() string
type GetBlocksBlockHeightNotFound ¶
GetBlocksBlockHeightNotFound describes a response with status code 404, with default header values.
Not Found - A block with that block height was not found
func NewGetBlocksBlockHeightNotFound ¶
func NewGetBlocksBlockHeightNotFound() *GetBlocksBlockHeightNotFound
NewGetBlocksBlockHeightNotFound creates a GetBlocksBlockHeightNotFound with default headers values
func (*GetBlocksBlockHeightNotFound) Code ¶
func (o *GetBlocksBlockHeightNotFound) Code() int
Code gets the status code for the get blocks block height not found response
func (*GetBlocksBlockHeightNotFound) Error ¶
func (o *GetBlocksBlockHeightNotFound) Error() string
func (*GetBlocksBlockHeightNotFound) GetPayload ¶
func (o *GetBlocksBlockHeightNotFound) GetPayload() *models.Error
func (*GetBlocksBlockHeightNotFound) IsClientError ¶
func (o *GetBlocksBlockHeightNotFound) IsClientError() bool
IsClientError returns true when this get blocks block height not found response has a 4xx status code
func (*GetBlocksBlockHeightNotFound) IsCode ¶
func (o *GetBlocksBlockHeightNotFound) IsCode(code int) bool
IsCode returns true when this get blocks block height not found response a status code equal to that given
func (*GetBlocksBlockHeightNotFound) IsRedirect ¶
func (o *GetBlocksBlockHeightNotFound) IsRedirect() bool
IsRedirect returns true when this get blocks block height not found response has a 3xx status code
func (*GetBlocksBlockHeightNotFound) IsServerError ¶
func (o *GetBlocksBlockHeightNotFound) IsServerError() bool
IsServerError returns true when this get blocks block height not found response has a 5xx status code
func (*GetBlocksBlockHeightNotFound) IsSuccess ¶
func (o *GetBlocksBlockHeightNotFound) IsSuccess() bool
IsSuccess returns true when this get blocks block height not found response has a 2xx status code
func (*GetBlocksBlockHeightNotFound) String ¶
func (o *GetBlocksBlockHeightNotFound) String() string
type GetBlocksBlockHeightOK ¶
GetBlocksBlockHeightOK describes a response with status code 200, with default header values.
Successful response with the block details
func NewGetBlocksBlockHeightOK ¶
func NewGetBlocksBlockHeightOK() *GetBlocksBlockHeightOK
NewGetBlocksBlockHeightOK creates a GetBlocksBlockHeightOK with default headers values
func (*GetBlocksBlockHeightOK) Code ¶
func (o *GetBlocksBlockHeightOK) Code() int
Code gets the status code for the get blocks block height o k response
func (*GetBlocksBlockHeightOK) Error ¶
func (o *GetBlocksBlockHeightOK) Error() string
func (*GetBlocksBlockHeightOK) GetPayload ¶
func (o *GetBlocksBlockHeightOK) GetPayload() *models.Block
func (*GetBlocksBlockHeightOK) IsClientError ¶
func (o *GetBlocksBlockHeightOK) IsClientError() bool
IsClientError returns true when this get blocks block height o k response has a 4xx status code
func (*GetBlocksBlockHeightOK) IsCode ¶
func (o *GetBlocksBlockHeightOK) IsCode(code int) bool
IsCode returns true when this get blocks block height o k response a status code equal to that given
func (*GetBlocksBlockHeightOK) IsRedirect ¶
func (o *GetBlocksBlockHeightOK) IsRedirect() bool
IsRedirect returns true when this get blocks block height o k response has a 3xx status code
func (*GetBlocksBlockHeightOK) IsServerError ¶
func (o *GetBlocksBlockHeightOK) IsServerError() bool
IsServerError returns true when this get blocks block height o k response has a 5xx status code
func (*GetBlocksBlockHeightOK) IsSuccess ¶
func (o *GetBlocksBlockHeightOK) IsSuccess() bool
IsSuccess returns true when this get blocks block height o k response has a 2xx status code
func (*GetBlocksBlockHeightOK) String ¶
func (o *GetBlocksBlockHeightOK) String() string
type GetBlocksBlockHeightParams ¶
type GetBlocksBlockHeightParams struct { /* BlockHeight. Block height */ BlockHeight int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBlocksBlockHeightParams contains all the parameters to send to the API endpoint
for the get blocks block height operation. Typically these are written to a http.Request.
func NewGetBlocksBlockHeightParams ¶
func NewGetBlocksBlockHeightParams() *GetBlocksBlockHeightParams
NewGetBlocksBlockHeightParams creates a new GetBlocksBlockHeightParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetBlocksBlockHeightParamsWithContext ¶
func NewGetBlocksBlockHeightParamsWithContext(ctx context.Context) *GetBlocksBlockHeightParams
NewGetBlocksBlockHeightParamsWithContext creates a new GetBlocksBlockHeightParams object with the ability to set a context for a request.
func NewGetBlocksBlockHeightParamsWithHTTPClient ¶
func NewGetBlocksBlockHeightParamsWithHTTPClient(client *http.Client) *GetBlocksBlockHeightParams
NewGetBlocksBlockHeightParamsWithHTTPClient creates a new GetBlocksBlockHeightParams object with the ability to set a custom HTTPClient for a request.
func NewGetBlocksBlockHeightParamsWithTimeout ¶
func NewGetBlocksBlockHeightParamsWithTimeout(timeout time.Duration) *GetBlocksBlockHeightParams
NewGetBlocksBlockHeightParamsWithTimeout creates a new GetBlocksBlockHeightParams object with the ability to set a timeout on a request.
func (*GetBlocksBlockHeightParams) SetBlockHeight ¶
func (o *GetBlocksBlockHeightParams) SetBlockHeight(blockHeight int64)
SetBlockHeight adds the blockHeight to the get blocks block height params
func (*GetBlocksBlockHeightParams) SetContext ¶
func (o *GetBlocksBlockHeightParams) SetContext(ctx context.Context)
SetContext adds the context to the get blocks block height params
func (*GetBlocksBlockHeightParams) SetDefaults ¶
func (o *GetBlocksBlockHeightParams) SetDefaults()
SetDefaults hydrates default values in the get blocks block height params (not the query body).
All values with no default are reset to their zero value.
func (*GetBlocksBlockHeightParams) SetHTTPClient ¶
func (o *GetBlocksBlockHeightParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get blocks block height params
func (*GetBlocksBlockHeightParams) SetTimeout ¶
func (o *GetBlocksBlockHeightParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get blocks block height params
func (*GetBlocksBlockHeightParams) WithBlockHeight ¶
func (o *GetBlocksBlockHeightParams) WithBlockHeight(blockHeight int64) *GetBlocksBlockHeightParams
WithBlockHeight adds the blockHeight to the get blocks block height params
func (*GetBlocksBlockHeightParams) WithContext ¶
func (o *GetBlocksBlockHeightParams) WithContext(ctx context.Context) *GetBlocksBlockHeightParams
WithContext adds the context to the get blocks block height params
func (*GetBlocksBlockHeightParams) WithDefaults ¶
func (o *GetBlocksBlockHeightParams) WithDefaults() *GetBlocksBlockHeightParams
WithDefaults hydrates default values in the get blocks block height params (not the query body).
All values with no default are reset to their zero value.
func (*GetBlocksBlockHeightParams) WithHTTPClient ¶
func (o *GetBlocksBlockHeightParams) WithHTTPClient(client *http.Client) *GetBlocksBlockHeightParams
WithHTTPClient adds the HTTPClient to the get blocks block height params
func (*GetBlocksBlockHeightParams) WithTimeout ¶
func (o *GetBlocksBlockHeightParams) WithTimeout(timeout time.Duration) *GetBlocksBlockHeightParams
WithTimeout adds the timeout to the get blocks block height params
func (*GetBlocksBlockHeightParams) WriteToRequest ¶
func (o *GetBlocksBlockHeightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBlocksBlockHeightReader ¶
type GetBlocksBlockHeightReader struct {
// contains filtered or unexported fields
}
GetBlocksBlockHeightReader is a Reader for the GetBlocksBlockHeight structure.
func (*GetBlocksBlockHeightReader) ReadResponse ¶
func (o *GetBlocksBlockHeightReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBlocksOK ¶
type GetBlocksOK struct {
Payload []int64
}
GetBlocksOK describes a response with status code 200, with default header values.
Successful response with a list of block IDs
func NewGetBlocksOK ¶
func NewGetBlocksOK() *GetBlocksOK
NewGetBlocksOK creates a GetBlocksOK with default headers values
func (*GetBlocksOK) Code ¶
func (o *GetBlocksOK) Code() int
Code gets the status code for the get blocks o k response
func (*GetBlocksOK) Error ¶
func (o *GetBlocksOK) Error() string
func (*GetBlocksOK) GetPayload ¶
func (o *GetBlocksOK) GetPayload() []int64
func (*GetBlocksOK) IsClientError ¶
func (o *GetBlocksOK) IsClientError() bool
IsClientError returns true when this get blocks o k response has a 4xx status code
func (*GetBlocksOK) IsCode ¶
func (o *GetBlocksOK) IsCode(code int) bool
IsCode returns true when this get blocks o k response a status code equal to that given
func (*GetBlocksOK) IsRedirect ¶
func (o *GetBlocksOK) IsRedirect() bool
IsRedirect returns true when this get blocks o k response has a 3xx status code
func (*GetBlocksOK) IsServerError ¶
func (o *GetBlocksOK) IsServerError() bool
IsServerError returns true when this get blocks o k response has a 5xx status code
func (*GetBlocksOK) IsSuccess ¶
func (o *GetBlocksOK) IsSuccess() bool
IsSuccess returns true when this get blocks o k response has a 2xx status code
func (*GetBlocksOK) String ¶
func (o *GetBlocksOK) String() string
type GetBlocksParams ¶
type GetBlocksParams struct { /* TransactionID. Transaction ID */ TransactionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBlocksParams contains all the parameters to send to the API endpoint
for the get blocks operation. Typically these are written to a http.Request.
func NewGetBlocksParams ¶
func NewGetBlocksParams() *GetBlocksParams
NewGetBlocksParams creates a new GetBlocksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetBlocksParamsWithContext ¶
func NewGetBlocksParamsWithContext(ctx context.Context) *GetBlocksParams
NewGetBlocksParamsWithContext creates a new GetBlocksParams object with the ability to set a context for a request.
func NewGetBlocksParamsWithHTTPClient ¶
func NewGetBlocksParamsWithHTTPClient(client *http.Client) *GetBlocksParams
NewGetBlocksParamsWithHTTPClient creates a new GetBlocksParams object with the ability to set a custom HTTPClient for a request.
func NewGetBlocksParamsWithTimeout ¶
func NewGetBlocksParamsWithTimeout(timeout time.Duration) *GetBlocksParams
NewGetBlocksParamsWithTimeout creates a new GetBlocksParams object with the ability to set a timeout on a request.
func (*GetBlocksParams) SetContext ¶
func (o *GetBlocksParams) SetContext(ctx context.Context)
SetContext adds the context to the get blocks params
func (*GetBlocksParams) SetDefaults ¶
func (o *GetBlocksParams) SetDefaults()
SetDefaults hydrates default values in the get blocks params (not the query body).
All values with no default are reset to their zero value.
func (*GetBlocksParams) SetHTTPClient ¶
func (o *GetBlocksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get blocks params
func (*GetBlocksParams) SetTimeout ¶
func (o *GetBlocksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get blocks params
func (*GetBlocksParams) SetTransactionID ¶
func (o *GetBlocksParams) SetTransactionID(transactionID string)
SetTransactionID adds the transactionId to the get blocks params
func (*GetBlocksParams) WithContext ¶
func (o *GetBlocksParams) WithContext(ctx context.Context) *GetBlocksParams
WithContext adds the context to the get blocks params
func (*GetBlocksParams) WithDefaults ¶
func (o *GetBlocksParams) WithDefaults() *GetBlocksParams
WithDefaults hydrates default values in the get blocks params (not the query body).
All values with no default are reset to their zero value.
func (*GetBlocksParams) WithHTTPClient ¶
func (o *GetBlocksParams) WithHTTPClient(client *http.Client) *GetBlocksParams
WithHTTPClient adds the HTTPClient to the get blocks params
func (*GetBlocksParams) WithTimeout ¶
func (o *GetBlocksParams) WithTimeout(timeout time.Duration) *GetBlocksParams
WithTimeout adds the timeout to the get blocks params
func (*GetBlocksParams) WithTransactionID ¶
func (o *GetBlocksParams) WithTransactionID(transactionID string) *GetBlocksParams
WithTransactionID adds the transactionID to the get blocks params
func (*GetBlocksParams) WriteToRequest ¶
func (o *GetBlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBlocksReader ¶
type GetBlocksReader struct {
// contains filtered or unexported fields
}
GetBlocksReader is a Reader for the GetBlocks structure.
func (*GetBlocksReader) ReadResponse ¶
func (o *GetBlocksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMetadataBadRequest ¶
GetMetadataBadRequest describes a response with status code 400, with default header values.
Bad Request - The query was not executed successfully
func NewGetMetadataBadRequest ¶
func NewGetMetadataBadRequest() *GetMetadataBadRequest
NewGetMetadataBadRequest creates a GetMetadataBadRequest with default headers values
func (*GetMetadataBadRequest) Code ¶
func (o *GetMetadataBadRequest) Code() int
Code gets the status code for the get metadata bad request response
func (*GetMetadataBadRequest) Error ¶
func (o *GetMetadataBadRequest) Error() string
func (*GetMetadataBadRequest) GetPayload ¶
func (o *GetMetadataBadRequest) GetPayload() *models.Error
func (*GetMetadataBadRequest) IsClientError ¶
func (o *GetMetadataBadRequest) IsClientError() bool
IsClientError returns true when this get metadata bad request response has a 4xx status code
func (*GetMetadataBadRequest) IsCode ¶
func (o *GetMetadataBadRequest) IsCode(code int) bool
IsCode returns true when this get metadata bad request response a status code equal to that given
func (*GetMetadataBadRequest) IsRedirect ¶
func (o *GetMetadataBadRequest) IsRedirect() bool
IsRedirect returns true when this get metadata bad request response has a 3xx status code
func (*GetMetadataBadRequest) IsServerError ¶
func (o *GetMetadataBadRequest) IsServerError() bool
IsServerError returns true when this get metadata bad request response has a 5xx status code
func (*GetMetadataBadRequest) IsSuccess ¶
func (o *GetMetadataBadRequest) IsSuccess() bool
IsSuccess returns true when this get metadata bad request response has a 2xx status code
func (*GetMetadataBadRequest) String ¶
func (o *GetMetadataBadRequest) String() string
type GetMetadataOK ¶
GetMetadataOK describes a response with status code 200, with default header values.
Successful response with a list of matching metadata objects
func NewGetMetadataOK ¶
func NewGetMetadataOK() *GetMetadataOK
NewGetMetadataOK creates a GetMetadataOK with default headers values
func (*GetMetadataOK) Code ¶
func (o *GetMetadataOK) Code() int
Code gets the status code for the get metadata o k response
func (*GetMetadataOK) Error ¶
func (o *GetMetadataOK) Error() string
func (*GetMetadataOK) GetPayload ¶
func (o *GetMetadataOK) GetPayload() []models.Metadata
func (*GetMetadataOK) IsClientError ¶
func (o *GetMetadataOK) IsClientError() bool
IsClientError returns true when this get metadata o k response has a 4xx status code
func (*GetMetadataOK) IsCode ¶
func (o *GetMetadataOK) IsCode(code int) bool
IsCode returns true when this get metadata o k response a status code equal to that given
func (*GetMetadataOK) IsRedirect ¶
func (o *GetMetadataOK) IsRedirect() bool
IsRedirect returns true when this get metadata o k response has a 3xx status code
func (*GetMetadataOK) IsServerError ¶
func (o *GetMetadataOK) IsServerError() bool
IsServerError returns true when this get metadata o k response has a 5xx status code
func (*GetMetadataOK) IsSuccess ¶
func (o *GetMetadataOK) IsSuccess() bool
IsSuccess returns true when this get metadata o k response has a 2xx status code
func (*GetMetadataOK) String ¶
func (o *GetMetadataOK) String() string
type GetMetadataParams ¶
type GetMetadataParams struct { /* Limit. Limit the number of returned metadata objects */ Limit *int64 /* Search. Text search string to query */ Search string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMetadataParams contains all the parameters to send to the API endpoint
for the get metadata operation. Typically these are written to a http.Request.
func NewGetMetadataParams ¶
func NewGetMetadataParams() *GetMetadataParams
NewGetMetadataParams creates a new GetMetadataParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMetadataParamsWithContext ¶
func NewGetMetadataParamsWithContext(ctx context.Context) *GetMetadataParams
NewGetMetadataParamsWithContext creates a new GetMetadataParams object with the ability to set a context for a request.
func NewGetMetadataParamsWithHTTPClient ¶
func NewGetMetadataParamsWithHTTPClient(client *http.Client) *GetMetadataParams
NewGetMetadataParamsWithHTTPClient creates a new GetMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewGetMetadataParamsWithTimeout ¶
func NewGetMetadataParamsWithTimeout(timeout time.Duration) *GetMetadataParams
NewGetMetadataParamsWithTimeout creates a new GetMetadataParams object with the ability to set a timeout on a request.
func (*GetMetadataParams) SetContext ¶
func (o *GetMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the get metadata params
func (*GetMetadataParams) SetDefaults ¶
func (o *GetMetadataParams) SetDefaults()
SetDefaults hydrates default values in the get metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetadataParams) SetHTTPClient ¶
func (o *GetMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metadata params
func (*GetMetadataParams) SetLimit ¶
func (o *GetMetadataParams) SetLimit(limit *int64)
SetLimit adds the limit to the get metadata params
func (*GetMetadataParams) SetSearch ¶
func (o *GetMetadataParams) SetSearch(search string)
SetSearch adds the search to the get metadata params
func (*GetMetadataParams) SetTimeout ¶
func (o *GetMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metadata params
func (*GetMetadataParams) WithContext ¶
func (o *GetMetadataParams) WithContext(ctx context.Context) *GetMetadataParams
WithContext adds the context to the get metadata params
func (*GetMetadataParams) WithDefaults ¶
func (o *GetMetadataParams) WithDefaults() *GetMetadataParams
WithDefaults hydrates default values in the get metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetadataParams) WithHTTPClient ¶
func (o *GetMetadataParams) WithHTTPClient(client *http.Client) *GetMetadataParams
WithHTTPClient adds the HTTPClient to the get metadata params
func (*GetMetadataParams) WithLimit ¶
func (o *GetMetadataParams) WithLimit(limit *int64) *GetMetadataParams
WithLimit adds the limit to the get metadata params
func (*GetMetadataParams) WithSearch ¶
func (o *GetMetadataParams) WithSearch(search string) *GetMetadataParams
WithSearch adds the search to the get metadata params
func (*GetMetadataParams) WithTimeout ¶
func (o *GetMetadataParams) WithTimeout(timeout time.Duration) *GetMetadataParams
WithTimeout adds the timeout to the get metadata params
func (*GetMetadataParams) WriteToRequest ¶
func (o *GetMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMetadataReader ¶
type GetMetadataReader struct {
// contains filtered or unexported fields
}
GetMetadataReader is a Reader for the GetMetadata structure.
func (*GetMetadataReader) ReadResponse ¶
func (o *GetMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOutputsBadRequest ¶
GetOutputsBadRequest describes a response with status code 400, with default header values.
Bad Request - The request wasn’t understood by the server
func NewGetOutputsBadRequest ¶
func NewGetOutputsBadRequest() *GetOutputsBadRequest
NewGetOutputsBadRequest creates a GetOutputsBadRequest with default headers values
func (*GetOutputsBadRequest) Code ¶
func (o *GetOutputsBadRequest) Code() int
Code gets the status code for the get outputs bad request response
func (*GetOutputsBadRequest) Error ¶
func (o *GetOutputsBadRequest) Error() string
func (*GetOutputsBadRequest) GetPayload ¶
func (o *GetOutputsBadRequest) GetPayload() *models.Error
func (*GetOutputsBadRequest) IsClientError ¶
func (o *GetOutputsBadRequest) IsClientError() bool
IsClientError returns true when this get outputs bad request response has a 4xx status code
func (*GetOutputsBadRequest) IsCode ¶
func (o *GetOutputsBadRequest) IsCode(code int) bool
IsCode returns true when this get outputs bad request response a status code equal to that given
func (*GetOutputsBadRequest) IsRedirect ¶
func (o *GetOutputsBadRequest) IsRedirect() bool
IsRedirect returns true when this get outputs bad request response has a 3xx status code
func (*GetOutputsBadRequest) IsServerError ¶
func (o *GetOutputsBadRequest) IsServerError() bool
IsServerError returns true when this get outputs bad request response has a 5xx status code
func (*GetOutputsBadRequest) IsSuccess ¶
func (o *GetOutputsBadRequest) IsSuccess() bool
IsSuccess returns true when this get outputs bad request response has a 2xx status code
func (*GetOutputsBadRequest) String ¶
func (o *GetOutputsBadRequest) String() string
type GetOutputsOK ¶
GetOutputsOK describes a response with status code 200, with default header values.
Successful response with a list of transaction outputs
func NewGetOutputsOK ¶
func NewGetOutputsOK() *GetOutputsOK
NewGetOutputsOK creates a GetOutputsOK with default headers values
func (*GetOutputsOK) Code ¶
func (o *GetOutputsOK) Code() int
Code gets the status code for the get outputs o k response
func (*GetOutputsOK) Error ¶
func (o *GetOutputsOK) Error() string
func (*GetOutputsOK) GetPayload ¶
func (o *GetOutputsOK) GetPayload() []*models.Fulfills
func (*GetOutputsOK) IsClientError ¶
func (o *GetOutputsOK) IsClientError() bool
IsClientError returns true when this get outputs o k response has a 4xx status code
func (*GetOutputsOK) IsCode ¶
func (o *GetOutputsOK) IsCode(code int) bool
IsCode returns true when this get outputs o k response a status code equal to that given
func (*GetOutputsOK) IsRedirect ¶
func (o *GetOutputsOK) IsRedirect() bool
IsRedirect returns true when this get outputs o k response has a 3xx status code
func (*GetOutputsOK) IsServerError ¶
func (o *GetOutputsOK) IsServerError() bool
IsServerError returns true when this get outputs o k response has a 5xx status code
func (*GetOutputsOK) IsSuccess ¶
func (o *GetOutputsOK) IsSuccess() bool
IsSuccess returns true when this get outputs o k response has a 2xx status code
func (*GetOutputsOK) String ¶
func (o *GetOutputsOK) String() string
type GetOutputsParams ¶
type GetOutputsParams struct { /* PublicKey. Base58 encoded public key associated with output ownership */ PublicKey string /* Spent. Boolean value indicating if the result set should include only spent or only unspent outputs */ Spent *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetOutputsParams contains all the parameters to send to the API endpoint
for the get outputs operation. Typically these are written to a http.Request.
func NewGetOutputsParams ¶
func NewGetOutputsParams() *GetOutputsParams
NewGetOutputsParams creates a new GetOutputsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetOutputsParamsWithContext ¶
func NewGetOutputsParamsWithContext(ctx context.Context) *GetOutputsParams
NewGetOutputsParamsWithContext creates a new GetOutputsParams object with the ability to set a context for a request.
func NewGetOutputsParamsWithHTTPClient ¶
func NewGetOutputsParamsWithHTTPClient(client *http.Client) *GetOutputsParams
NewGetOutputsParamsWithHTTPClient creates a new GetOutputsParams object with the ability to set a custom HTTPClient for a request.
func NewGetOutputsParamsWithTimeout ¶
func NewGetOutputsParamsWithTimeout(timeout time.Duration) *GetOutputsParams
NewGetOutputsParamsWithTimeout creates a new GetOutputsParams object with the ability to set a timeout on a request.
func (*GetOutputsParams) SetContext ¶
func (o *GetOutputsParams) SetContext(ctx context.Context)
SetContext adds the context to the get outputs params
func (*GetOutputsParams) SetDefaults ¶
func (o *GetOutputsParams) SetDefaults()
SetDefaults hydrates default values in the get outputs params (not the query body).
All values with no default are reset to their zero value.
func (*GetOutputsParams) SetHTTPClient ¶
func (o *GetOutputsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get outputs params
func (*GetOutputsParams) SetPublicKey ¶
func (o *GetOutputsParams) SetPublicKey(publicKey string)
SetPublicKey adds the publicKey to the get outputs params
func (*GetOutputsParams) SetSpent ¶
func (o *GetOutputsParams) SetSpent(spent *bool)
SetSpent adds the spent to the get outputs params
func (*GetOutputsParams) SetTimeout ¶
func (o *GetOutputsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get outputs params
func (*GetOutputsParams) WithContext ¶
func (o *GetOutputsParams) WithContext(ctx context.Context) *GetOutputsParams
WithContext adds the context to the get outputs params
func (*GetOutputsParams) WithDefaults ¶
func (o *GetOutputsParams) WithDefaults() *GetOutputsParams
WithDefaults hydrates default values in the get outputs params (not the query body).
All values with no default are reset to their zero value.
func (*GetOutputsParams) WithHTTPClient ¶
func (o *GetOutputsParams) WithHTTPClient(client *http.Client) *GetOutputsParams
WithHTTPClient adds the HTTPClient to the get outputs params
func (*GetOutputsParams) WithPublicKey ¶
func (o *GetOutputsParams) WithPublicKey(publicKey string) *GetOutputsParams
WithPublicKey adds the publicKey to the get outputs params
func (*GetOutputsParams) WithSpent ¶
func (o *GetOutputsParams) WithSpent(spent *bool) *GetOutputsParams
WithSpent adds the spent to the get outputs params
func (*GetOutputsParams) WithTimeout ¶
func (o *GetOutputsParams) WithTimeout(timeout time.Duration) *GetOutputsParams
WithTimeout adds the timeout to the get outputs params
func (*GetOutputsParams) WriteToRequest ¶
func (o *GetOutputsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOutputsReader ¶
type GetOutputsReader struct {
// contains filtered or unexported fields
}
GetOutputsReader is a Reader for the GetOutputs structure.
func (*GetOutputsReader) ReadResponse ¶
func (o *GetOutputsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTransactionsBadRequest ¶
GetTransactionsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetTransactionsBadRequest ¶
func NewGetTransactionsBadRequest() *GetTransactionsBadRequest
NewGetTransactionsBadRequest creates a GetTransactionsBadRequest with default headers values
func (*GetTransactionsBadRequest) Code ¶
func (o *GetTransactionsBadRequest) Code() int
Code gets the status code for the get transactions bad request response
func (*GetTransactionsBadRequest) Error ¶
func (o *GetTransactionsBadRequest) Error() string
func (*GetTransactionsBadRequest) GetPayload ¶
func (o *GetTransactionsBadRequest) GetPayload() *models.Error
func (*GetTransactionsBadRequest) IsClientError ¶
func (o *GetTransactionsBadRequest) IsClientError() bool
IsClientError returns true when this get transactions bad request response has a 4xx status code
func (*GetTransactionsBadRequest) IsCode ¶
func (o *GetTransactionsBadRequest) IsCode(code int) bool
IsCode returns true when this get transactions bad request response a status code equal to that given
func (*GetTransactionsBadRequest) IsRedirect ¶
func (o *GetTransactionsBadRequest) IsRedirect() bool
IsRedirect returns true when this get transactions bad request response has a 3xx status code
func (*GetTransactionsBadRequest) IsServerError ¶
func (o *GetTransactionsBadRequest) IsServerError() bool
IsServerError returns true when this get transactions bad request response has a 5xx status code
func (*GetTransactionsBadRequest) IsSuccess ¶
func (o *GetTransactionsBadRequest) IsSuccess() bool
IsSuccess returns true when this get transactions bad request response has a 2xx status code
func (*GetTransactionsBadRequest) String ¶
func (o *GetTransactionsBadRequest) String() string
type GetTransactionsOK ¶
type GetTransactionsOK struct {
Payload []*models.Transaction
}
GetTransactionsOK describes a response with status code 200, with default header values.
OK
func NewGetTransactionsOK ¶
func NewGetTransactionsOK() *GetTransactionsOK
NewGetTransactionsOK creates a GetTransactionsOK with default headers values
func (*GetTransactionsOK) Code ¶
func (o *GetTransactionsOK) Code() int
Code gets the status code for the get transactions o k response
func (*GetTransactionsOK) Error ¶
func (o *GetTransactionsOK) Error() string
func (*GetTransactionsOK) GetPayload ¶
func (o *GetTransactionsOK) GetPayload() []*models.Transaction
func (*GetTransactionsOK) IsClientError ¶
func (o *GetTransactionsOK) IsClientError() bool
IsClientError returns true when this get transactions o k response has a 4xx status code
func (*GetTransactionsOK) IsCode ¶
func (o *GetTransactionsOK) IsCode(code int) bool
IsCode returns true when this get transactions o k response a status code equal to that given
func (*GetTransactionsOK) IsRedirect ¶
func (o *GetTransactionsOK) IsRedirect() bool
IsRedirect returns true when this get transactions o k response has a 3xx status code
func (*GetTransactionsOK) IsServerError ¶
func (o *GetTransactionsOK) IsServerError() bool
IsServerError returns true when this get transactions o k response has a 5xx status code
func (*GetTransactionsOK) IsSuccess ¶
func (o *GetTransactionsOK) IsSuccess() bool
IsSuccess returns true when this get transactions o k response has a 2xx status code
func (*GetTransactionsOK) String ¶
func (o *GetTransactionsOK) String() string
type GetTransactionsParams ¶
type GetTransactionsParams struct { /* AssetID. Asset ID */ AssetID *string /* LastTx. Return only the last transaction */ LastTx *bool /* Operation. Operation type (CREATE or TRANSFER) */ Operation *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTransactionsParams contains all the parameters to send to the API endpoint
for the get transactions operation. Typically these are written to a http.Request.
func NewGetTransactionsParams ¶
func NewGetTransactionsParams() *GetTransactionsParams
NewGetTransactionsParams creates a new GetTransactionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetTransactionsParamsWithContext ¶
func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams
NewGetTransactionsParamsWithContext creates a new GetTransactionsParams object with the ability to set a context for a request.
func NewGetTransactionsParamsWithHTTPClient ¶
func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams
NewGetTransactionsParamsWithHTTPClient creates a new GetTransactionsParams object with the ability to set a custom HTTPClient for a request.
func NewGetTransactionsParamsWithTimeout ¶
func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams
NewGetTransactionsParamsWithTimeout creates a new GetTransactionsParams object with the ability to set a timeout on a request.
func (*GetTransactionsParams) SetAssetID ¶
func (o *GetTransactionsParams) SetAssetID(assetID *string)
SetAssetID adds the assetId to the get transactions params
func (*GetTransactionsParams) SetContext ¶
func (o *GetTransactionsParams) SetContext(ctx context.Context)
SetContext adds the context to the get transactions params
func (*GetTransactionsParams) SetDefaults ¶
func (o *GetTransactionsParams) SetDefaults()
SetDefaults hydrates default values in the get transactions params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransactionsParams) SetHTTPClient ¶
func (o *GetTransactionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get transactions params
func (*GetTransactionsParams) SetLastTx ¶
func (o *GetTransactionsParams) SetLastTx(lastTx *bool)
SetLastTx adds the lastTx to the get transactions params
func (*GetTransactionsParams) SetOperation ¶
func (o *GetTransactionsParams) SetOperation(operation *string)
SetOperation adds the operation to the get transactions params
func (*GetTransactionsParams) SetTimeout ¶
func (o *GetTransactionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get transactions params
func (*GetTransactionsParams) WithAssetID ¶
func (o *GetTransactionsParams) WithAssetID(assetID *string) *GetTransactionsParams
WithAssetID adds the assetID to the get transactions params
func (*GetTransactionsParams) WithContext ¶
func (o *GetTransactionsParams) WithContext(ctx context.Context) *GetTransactionsParams
WithContext adds the context to the get transactions params
func (*GetTransactionsParams) WithDefaults ¶
func (o *GetTransactionsParams) WithDefaults() *GetTransactionsParams
WithDefaults hydrates default values in the get transactions params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransactionsParams) WithHTTPClient ¶
func (o *GetTransactionsParams) WithHTTPClient(client *http.Client) *GetTransactionsParams
WithHTTPClient adds the HTTPClient to the get transactions params
func (*GetTransactionsParams) WithLastTx ¶
func (o *GetTransactionsParams) WithLastTx(lastTx *bool) *GetTransactionsParams
WithLastTx adds the lastTx to the get transactions params
func (*GetTransactionsParams) WithOperation ¶
func (o *GetTransactionsParams) WithOperation(operation *string) *GetTransactionsParams
WithOperation adds the operation to the get transactions params
func (*GetTransactionsParams) WithTimeout ¶
func (o *GetTransactionsParams) WithTimeout(timeout time.Duration) *GetTransactionsParams
WithTimeout adds the timeout to the get transactions params
func (*GetTransactionsParams) WriteToRequest ¶
func (o *GetTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTransactionsReader ¶
type GetTransactionsReader struct {
// contains filtered or unexported fields
}
GetTransactionsReader is a Reader for the GetTransactions structure.
func (*GetTransactionsReader) ReadResponse ¶
func (o *GetTransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTransactionsTransactionIDNotFound ¶
GetTransactionsTransactionIDNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetTransactionsTransactionIDNotFound ¶
func NewGetTransactionsTransactionIDNotFound() *GetTransactionsTransactionIDNotFound
NewGetTransactionsTransactionIDNotFound creates a GetTransactionsTransactionIDNotFound with default headers values
func (*GetTransactionsTransactionIDNotFound) Code ¶
func (o *GetTransactionsTransactionIDNotFound) Code() int
Code gets the status code for the get transactions transaction Id not found response
func (*GetTransactionsTransactionIDNotFound) Error ¶
func (o *GetTransactionsTransactionIDNotFound) Error() string
func (*GetTransactionsTransactionIDNotFound) GetPayload ¶
func (o *GetTransactionsTransactionIDNotFound) GetPayload() *models.Error
func (*GetTransactionsTransactionIDNotFound) IsClientError ¶
func (o *GetTransactionsTransactionIDNotFound) IsClientError() bool
IsClientError returns true when this get transactions transaction Id not found response has a 4xx status code
func (*GetTransactionsTransactionIDNotFound) IsCode ¶
func (o *GetTransactionsTransactionIDNotFound) IsCode(code int) bool
IsCode returns true when this get transactions transaction Id not found response a status code equal to that given
func (*GetTransactionsTransactionIDNotFound) IsRedirect ¶
func (o *GetTransactionsTransactionIDNotFound) IsRedirect() bool
IsRedirect returns true when this get transactions transaction Id not found response has a 3xx status code
func (*GetTransactionsTransactionIDNotFound) IsServerError ¶
func (o *GetTransactionsTransactionIDNotFound) IsServerError() bool
IsServerError returns true when this get transactions transaction Id not found response has a 5xx status code
func (*GetTransactionsTransactionIDNotFound) IsSuccess ¶
func (o *GetTransactionsTransactionIDNotFound) IsSuccess() bool
IsSuccess returns true when this get transactions transaction Id not found response has a 2xx status code
func (*GetTransactionsTransactionIDNotFound) String ¶
func (o *GetTransactionsTransactionIDNotFound) String() string
type GetTransactionsTransactionIDOK ¶
type GetTransactionsTransactionIDOK struct {
Payload *models.Transaction
}
GetTransactionsTransactionIDOK describes a response with status code 200, with default header values.
OK
func NewGetTransactionsTransactionIDOK ¶
func NewGetTransactionsTransactionIDOK() *GetTransactionsTransactionIDOK
NewGetTransactionsTransactionIDOK creates a GetTransactionsTransactionIDOK with default headers values
func (*GetTransactionsTransactionIDOK) Code ¶
func (o *GetTransactionsTransactionIDOK) Code() int
Code gets the status code for the get transactions transaction Id o k response
func (*GetTransactionsTransactionIDOK) Error ¶
func (o *GetTransactionsTransactionIDOK) Error() string
func (*GetTransactionsTransactionIDOK) GetPayload ¶
func (o *GetTransactionsTransactionIDOK) GetPayload() *models.Transaction
func (*GetTransactionsTransactionIDOK) IsClientError ¶
func (o *GetTransactionsTransactionIDOK) IsClientError() bool
IsClientError returns true when this get transactions transaction Id o k response has a 4xx status code
func (*GetTransactionsTransactionIDOK) IsCode ¶
func (o *GetTransactionsTransactionIDOK) IsCode(code int) bool
IsCode returns true when this get transactions transaction Id o k response a status code equal to that given
func (*GetTransactionsTransactionIDOK) IsRedirect ¶
func (o *GetTransactionsTransactionIDOK) IsRedirect() bool
IsRedirect returns true when this get transactions transaction Id o k response has a 3xx status code
func (*GetTransactionsTransactionIDOK) IsServerError ¶
func (o *GetTransactionsTransactionIDOK) IsServerError() bool
IsServerError returns true when this get transactions transaction Id o k response has a 5xx status code
func (*GetTransactionsTransactionIDOK) IsSuccess ¶
func (o *GetTransactionsTransactionIDOK) IsSuccess() bool
IsSuccess returns true when this get transactions transaction Id o k response has a 2xx status code
func (*GetTransactionsTransactionIDOK) String ¶
func (o *GetTransactionsTransactionIDOK) String() string
type GetTransactionsTransactionIDParams ¶
type GetTransactionsTransactionIDParams struct { /* TransactionID. Transaction ID */ TransactionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTransactionsTransactionIDParams contains all the parameters to send to the API endpoint
for the get transactions transaction ID operation. Typically these are written to a http.Request.
func NewGetTransactionsTransactionIDParams ¶
func NewGetTransactionsTransactionIDParams() *GetTransactionsTransactionIDParams
NewGetTransactionsTransactionIDParams creates a new GetTransactionsTransactionIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetTransactionsTransactionIDParamsWithContext ¶
func NewGetTransactionsTransactionIDParamsWithContext(ctx context.Context) *GetTransactionsTransactionIDParams
NewGetTransactionsTransactionIDParamsWithContext creates a new GetTransactionsTransactionIDParams object with the ability to set a context for a request.
func NewGetTransactionsTransactionIDParamsWithHTTPClient ¶
func NewGetTransactionsTransactionIDParamsWithHTTPClient(client *http.Client) *GetTransactionsTransactionIDParams
NewGetTransactionsTransactionIDParamsWithHTTPClient creates a new GetTransactionsTransactionIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetTransactionsTransactionIDParamsWithTimeout ¶
func NewGetTransactionsTransactionIDParamsWithTimeout(timeout time.Duration) *GetTransactionsTransactionIDParams
NewGetTransactionsTransactionIDParamsWithTimeout creates a new GetTransactionsTransactionIDParams object with the ability to set a timeout on a request.
func (*GetTransactionsTransactionIDParams) SetContext ¶
func (o *GetTransactionsTransactionIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) SetDefaults ¶
func (o *GetTransactionsTransactionIDParams) SetDefaults()
SetDefaults hydrates default values in the get transactions transaction ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransactionsTransactionIDParams) SetHTTPClient ¶
func (o *GetTransactionsTransactionIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) SetTimeout ¶
func (o *GetTransactionsTransactionIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) SetTransactionID ¶
func (o *GetTransactionsTransactionIDParams) SetTransactionID(transactionID string)
SetTransactionID adds the transactionId to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) WithContext ¶
func (o *GetTransactionsTransactionIDParams) WithContext(ctx context.Context) *GetTransactionsTransactionIDParams
WithContext adds the context to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) WithDefaults ¶
func (o *GetTransactionsTransactionIDParams) WithDefaults() *GetTransactionsTransactionIDParams
WithDefaults hydrates default values in the get transactions transaction ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransactionsTransactionIDParams) WithHTTPClient ¶
func (o *GetTransactionsTransactionIDParams) WithHTTPClient(client *http.Client) *GetTransactionsTransactionIDParams
WithHTTPClient adds the HTTPClient to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) WithTimeout ¶
func (o *GetTransactionsTransactionIDParams) WithTimeout(timeout time.Duration) *GetTransactionsTransactionIDParams
WithTimeout adds the timeout to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) WithTransactionID ¶
func (o *GetTransactionsTransactionIDParams) WithTransactionID(transactionID string) *GetTransactionsTransactionIDParams
WithTransactionID adds the transactionID to the get transactions transaction ID params
func (*GetTransactionsTransactionIDParams) WriteToRequest ¶
func (o *GetTransactionsTransactionIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTransactionsTransactionIDReader ¶
type GetTransactionsTransactionIDReader struct {
// contains filtered or unexported fields
}
GetTransactionsTransactionIDReader is a Reader for the GetTransactionsTransactionID structure.
func (*GetTransactionsTransactionIDReader) ReadResponse ¶
func (o *GetTransactionsTransactionIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostTransactionsAccepted ¶
type PostTransactionsAccepted struct {
Payload *models.Transaction
}
PostTransactionsAccepted describes a response with status code 202, with default header values.
Accepted
func NewPostTransactionsAccepted ¶
func NewPostTransactionsAccepted() *PostTransactionsAccepted
NewPostTransactionsAccepted creates a PostTransactionsAccepted with default headers values
func (*PostTransactionsAccepted) Code ¶
func (o *PostTransactionsAccepted) Code() int
Code gets the status code for the post transactions accepted response
func (*PostTransactionsAccepted) Error ¶
func (o *PostTransactionsAccepted) Error() string
func (*PostTransactionsAccepted) GetPayload ¶
func (o *PostTransactionsAccepted) GetPayload() *models.Transaction
func (*PostTransactionsAccepted) IsClientError ¶
func (o *PostTransactionsAccepted) IsClientError() bool
IsClientError returns true when this post transactions accepted response has a 4xx status code
func (*PostTransactionsAccepted) IsCode ¶
func (o *PostTransactionsAccepted) IsCode(code int) bool
IsCode returns true when this post transactions accepted response a status code equal to that given
func (*PostTransactionsAccepted) IsRedirect ¶
func (o *PostTransactionsAccepted) IsRedirect() bool
IsRedirect returns true when this post transactions accepted response has a 3xx status code
func (*PostTransactionsAccepted) IsServerError ¶
func (o *PostTransactionsAccepted) IsServerError() bool
IsServerError returns true when this post transactions accepted response has a 5xx status code
func (*PostTransactionsAccepted) IsSuccess ¶
func (o *PostTransactionsAccepted) IsSuccess() bool
IsSuccess returns true when this post transactions accepted response has a 2xx status code
func (*PostTransactionsAccepted) String ¶
func (o *PostTransactionsAccepted) String() string
type PostTransactionsBadRequest ¶
PostTransactionsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewPostTransactionsBadRequest ¶
func NewPostTransactionsBadRequest() *PostTransactionsBadRequest
NewPostTransactionsBadRequest creates a PostTransactionsBadRequest with default headers values
func (*PostTransactionsBadRequest) Code ¶
func (o *PostTransactionsBadRequest) Code() int
Code gets the status code for the post transactions bad request response
func (*PostTransactionsBadRequest) Error ¶
func (o *PostTransactionsBadRequest) Error() string
func (*PostTransactionsBadRequest) GetPayload ¶
func (o *PostTransactionsBadRequest) GetPayload() *models.Error
func (*PostTransactionsBadRequest) IsClientError ¶
func (o *PostTransactionsBadRequest) IsClientError() bool
IsClientError returns true when this post transactions bad request response has a 4xx status code
func (*PostTransactionsBadRequest) IsCode ¶
func (o *PostTransactionsBadRequest) IsCode(code int) bool
IsCode returns true when this post transactions bad request response a status code equal to that given
func (*PostTransactionsBadRequest) IsRedirect ¶
func (o *PostTransactionsBadRequest) IsRedirect() bool
IsRedirect returns true when this post transactions bad request response has a 3xx status code
func (*PostTransactionsBadRequest) IsServerError ¶
func (o *PostTransactionsBadRequest) IsServerError() bool
IsServerError returns true when this post transactions bad request response has a 5xx status code
func (*PostTransactionsBadRequest) IsSuccess ¶
func (o *PostTransactionsBadRequest) IsSuccess() bool
IsSuccess returns true when this post transactions bad request response has a 2xx status code
func (*PostTransactionsBadRequest) String ¶
func (o *PostTransactionsBadRequest) String() string
type PostTransactionsInternalServerError ¶
PostTransactionsInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostTransactionsInternalServerError ¶
func NewPostTransactionsInternalServerError() *PostTransactionsInternalServerError
NewPostTransactionsInternalServerError creates a PostTransactionsInternalServerError with default headers values
func (*PostTransactionsInternalServerError) Code ¶
func (o *PostTransactionsInternalServerError) Code() int
Code gets the status code for the post transactions internal server error response
func (*PostTransactionsInternalServerError) Error ¶
func (o *PostTransactionsInternalServerError) Error() string
func (*PostTransactionsInternalServerError) GetPayload ¶
func (o *PostTransactionsInternalServerError) GetPayload() *models.Error
func (*PostTransactionsInternalServerError) IsClientError ¶
func (o *PostTransactionsInternalServerError) IsClientError() bool
IsClientError returns true when this post transactions internal server error response has a 4xx status code
func (*PostTransactionsInternalServerError) IsCode ¶
func (o *PostTransactionsInternalServerError) IsCode(code int) bool
IsCode returns true when this post transactions internal server error response a status code equal to that given
func (*PostTransactionsInternalServerError) IsRedirect ¶
func (o *PostTransactionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this post transactions internal server error response has a 3xx status code
func (*PostTransactionsInternalServerError) IsServerError ¶
func (o *PostTransactionsInternalServerError) IsServerError() bool
IsServerError returns true when this post transactions internal server error response has a 5xx status code
func (*PostTransactionsInternalServerError) IsSuccess ¶
func (o *PostTransactionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this post transactions internal server error response has a 2xx status code
func (*PostTransactionsInternalServerError) String ¶
func (o *PostTransactionsInternalServerError) String() string
type PostTransactionsParams ¶
type PostTransactionsParams struct { /* Mode. Transaction mode (async, sync, commit) Default: "async" */ Mode *string /* PostBody. Transaction body */ PostBody *models.Transaction Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostTransactionsParams contains all the parameters to send to the API endpoint
for the post transactions operation. Typically these are written to a http.Request.
func NewPostTransactionsParams ¶
func NewPostTransactionsParams() *PostTransactionsParams
NewPostTransactionsParams creates a new PostTransactionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostTransactionsParamsWithContext ¶
func NewPostTransactionsParamsWithContext(ctx context.Context) *PostTransactionsParams
NewPostTransactionsParamsWithContext creates a new PostTransactionsParams object with the ability to set a context for a request.
func NewPostTransactionsParamsWithHTTPClient ¶
func NewPostTransactionsParamsWithHTTPClient(client *http.Client) *PostTransactionsParams
NewPostTransactionsParamsWithHTTPClient creates a new PostTransactionsParams object with the ability to set a custom HTTPClient for a request.
func NewPostTransactionsParamsWithTimeout ¶
func NewPostTransactionsParamsWithTimeout(timeout time.Duration) *PostTransactionsParams
NewPostTransactionsParamsWithTimeout creates a new PostTransactionsParams object with the ability to set a timeout on a request.
func (*PostTransactionsParams) SetContext ¶
func (o *PostTransactionsParams) SetContext(ctx context.Context)
SetContext adds the context to the post transactions params
func (*PostTransactionsParams) SetDefaults ¶
func (o *PostTransactionsParams) SetDefaults()
SetDefaults hydrates default values in the post transactions params (not the query body).
All values with no default are reset to their zero value.
func (*PostTransactionsParams) SetHTTPClient ¶
func (o *PostTransactionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post transactions params
func (*PostTransactionsParams) SetMode ¶
func (o *PostTransactionsParams) SetMode(mode *string)
SetMode adds the mode to the post transactions params
func (*PostTransactionsParams) SetPostBody ¶
func (o *PostTransactionsParams) SetPostBody(postBody *models.Transaction)
SetPostBody adds the postBody to the post transactions params
func (*PostTransactionsParams) SetTimeout ¶
func (o *PostTransactionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post transactions params
func (*PostTransactionsParams) WithContext ¶
func (o *PostTransactionsParams) WithContext(ctx context.Context) *PostTransactionsParams
WithContext adds the context to the post transactions params
func (*PostTransactionsParams) WithDefaults ¶
func (o *PostTransactionsParams) WithDefaults() *PostTransactionsParams
WithDefaults hydrates default values in the post transactions params (not the query body).
All values with no default are reset to their zero value.
func (*PostTransactionsParams) WithHTTPClient ¶
func (o *PostTransactionsParams) WithHTTPClient(client *http.Client) *PostTransactionsParams
WithHTTPClient adds the HTTPClient to the post transactions params
func (*PostTransactionsParams) WithMode ¶
func (o *PostTransactionsParams) WithMode(mode *string) *PostTransactionsParams
WithMode adds the mode to the post transactions params
func (*PostTransactionsParams) WithPostBody ¶
func (o *PostTransactionsParams) WithPostBody(postBody *models.Transaction) *PostTransactionsParams
WithPostBody adds the postBody to the post transactions params
func (*PostTransactionsParams) WithTimeout ¶
func (o *PostTransactionsParams) WithTimeout(timeout time.Duration) *PostTransactionsParams
WithTimeout adds the timeout to the post transactions params
func (*PostTransactionsParams) WriteToRequest ¶
func (o *PostTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostTransactionsReader ¶
type PostTransactionsReader struct {
// contains filtered or unexported fields
}
PostTransactionsReader is a Reader for the PostTransactions structure.
func (*PostTransactionsReader) ReadResponse ¶
func (o *PostTransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_assets_parameters.go
- get_assets_responses.go
- get_blocks_block_height_parameters.go
- get_blocks_block_height_responses.go
- get_blocks_parameters.go
- get_blocks_responses.go
- get_metadata_parameters.go
- get_metadata_responses.go
- get_outputs_parameters.go
- get_outputs_responses.go
- get_transactions_parameters.go
- get_transactions_responses.go
- get_transactions_transaction_id_parameters.go
- get_transactions_transaction_id_responses.go
- operations_client.go
- post_transactions_parameters.go
- post_transactions_responses.go