wallet

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 wallet API

func (*Client) GetWallet

func (a *Client) GetWallet(params *GetWalletParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletOK, error)

GetWallet returns basic information about the wallet, such as whether the wallet is locked or unlocked.

func (*Client) GetWalletAddress

func (a *Client) GetWalletAddress(params *GetWalletAddressParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressOK, error)

GetWalletAddress gets a new address from the wallet generated by the primary seed. An error will be returned if the wallet is locked.

func (*Client) GetWalletAddresses

func (a *Client) GetWalletAddresses(params *GetWalletAddressesParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressesOK, error)

GetWalletAddresses fetches the list of addresses from the wallet. If the wallet has not been created or unlocked, no addresses will be returned. After the wallet is unlocked, this call will continue to return its addresses even after the wallet is locked again.

func (*Client) GetWalletBackup

func (a *Client) GetWalletBackup(params *GetWalletBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletBackupNoContent, error)

GetWalletBackup creates a backup of the wallet settings file. Though this can easily be done manually, the settings file is often in an unknown or difficult to find location. The /wallet/backup call can spare users the trouble of needing to find their wallet file. The destination file is overwritten if it already exists.

func (*Client) GetWalletSeeds

func (a *Client) GetWalletSeeds(params *GetWalletSeedsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletSeedsOK, error)
GetWalletSeeds returns a list of seeds in use by the wallet.  The primary seed is the only seed that gets used to generate new addresses. This call is unavailable when the wallet is locked.

A seed is an encoded version of a 128 bit random seed. The output is 15 words chosen from a small dictionary as indicated by the input. The most common choice for the dictionary is going to be 'english'. The underlying seed is the same no matter what dictionary is used for the encoding. The encoding also contains a small checksum of the seed, to help catch simple mistakes when copying. The library entropy-mnemonics is used when encoding.

func (*Client) GetWalletTransactionID

func (a *Client) GetWalletTransactionID(params *GetWalletTransactionIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionIDOK, error)

GetWalletTransactionID gets the transaction associated with a specific transaction id.

func (*Client) GetWalletTransactions

func (a *Client) GetWalletTransactions(params *GetWalletTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsOK, error)

GetWalletTransactions returns a list of transactions related to the wallet.

func (*Client) GetWalletTransactionsAddr

func (a *Client) GetWalletTransactionsAddr(params *GetWalletTransactionsAddrParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsAddrOK, error)

GetWalletTransactionsAddr returns all of the transactions related to a specific address.

func (*Client) GetWalletVerifyAddressAddr

func (a *Client) GetWalletVerifyAddressAddr(params *GetWalletVerifyAddressAddrParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletVerifyAddressAddrOK, error)

GetWalletVerifyAddressAddr takes the address specified by addr and returns a JSON response indicating if the address is valid.

func (*Client) PostWallet033x

func (a *Client) PostWallet033x(params *PostWallet033xParams, authInfo runtime.ClientAuthInfoWriter) (*PostWallet033xNoContent, error)

PostWallet033x loads a v0.3.3.x wallet into the current wallet, harvesting all of the secret keys. All spendable addresses in the loaded wallet will become spendable from the current wallet. An error will be returned if the given encryptionpassword is incorrect.

func (*Client) PostWalletChangepassword

PostWalletChangepassword changes the wallet's encryption password.

func (*Client) PostWalletInit

func (a *Client) PostWalletInit(params *PostWalletInitParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitOK, error)

PostWalletInit initializes the wallet. After the wallet has been initialized once, it does not need to be initialized again, and future calls to /wallet/init will return an error, unless the force flag is set. The encryption password is provided by the api call. If the password is blank, then the password will be set to the same as the seed.

func (*Client) PostWalletInitSeed

PostWalletInitSeed initializes the wallet using a preexisting seed. After the wallet has been initialized once, it does not need to be initialized again, and future calls to /wallet/init/seed will return an error unless the force flag is set. The encryption password is provided by the api call. If the password is blank, then the password will be set to the same as the seed. Note that loading a preexisting seed requires scanning the blockchain to determine how many keys have been generated from the seed. For this reason, /wallet/init/seed can only be called if the blockchain is synced.

func (*Client) PostWalletLock

func (a *Client) PostWalletLock(params *PostWalletLockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletLockNoContent, error)

PostWalletLock locks the wallet, wiping all secret keys. After being locked, the keys are encrypted. Queries for the seed, to send siafunds, and related queries become unavailable. Queries concerning transaction history and balance are still available.

func (*Client) PostWalletSeed

func (a *Client) PostWalletSeed(params *PostWalletSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSeedNoContent, error)

PostWalletSeed gives the wallet a seed to track when looking for incoming transactions. The wallet will be able to spend outputs related to addresses created by the seed. The seed is added as an auxiliary seed, and does not replace the primary seed. Only the primary seed will be used for generating new addresses.

func (*Client) PostWalletSiacoins

func (a *Client) PostWalletSiacoins(params *PostWalletSiacoinsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiacoinsOK, error)

PostWalletSiacoins Send siacoins to an address or set of addresses. The outputs are arbitrarily selected from addresses in the wallet. If 'outputs' is supplied, 'amount' and 'destination' must be empty. The number of outputs should not exceed 400; this may result in a transaction too large to fit in the transaction pool.

func (*Client) PostWalletSiafunds

func (a *Client) PostWalletSiafunds(params *PostWalletSiafundsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiafundsOK, error)

PostWalletSiafunds sends siafunds to an address. The outputs are arbitrarily selected from addresses in the wallet. Any siacoins available in the siafunds being sent (as well as the siacoins available in any siafunds that end up in a refund address) will become available to the wallet as siacoins after 144 confirmations. To access all of the siacoins in the siacoin claim balance, send all of the siafunds to an address in your control (this will give you all the siacoins, while still letting you control the siafunds).

func (*Client) PostWalletSiagkey

func (a *Client) PostWalletSiagkey(params *PostWalletSiagkeyParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiagkeyNoContent, error)

PostWalletSiagkey Load a key into the wallet that was generated by siag. Most siafunds are currently in addresses created by siag.

func (*Client) PostWalletSweepSeed

func (a *Client) PostWalletSweepSeed(params *PostWalletSweepSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSweepSeedOK, error)

PostWalletSweepSeed Scan the blockchain for outputs belonging to a seed and send them to an address owned by the wallet.

func (*Client) PostWalletUnlock

func (a *Client) PostWalletUnlock(params *PostWalletUnlockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletUnlockNoContent, error)

PostWalletUnlock unlocks the wallet. The wallet is capable of knowing whether the correct password was provided.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService added in v0.5.9

type ClientService interface {
	GetWallet(params *GetWalletParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletOK, error)

	GetWalletAddress(params *GetWalletAddressParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressOK, error)

	GetWalletAddresses(params *GetWalletAddressesParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressesOK, error)

	GetWalletBackup(params *GetWalletBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletBackupNoContent, error)

	GetWalletSeeds(params *GetWalletSeedsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletSeedsOK, error)

	GetWalletTransactionID(params *GetWalletTransactionIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionIDOK, error)

	GetWalletTransactions(params *GetWalletTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsOK, error)

	GetWalletTransactionsAddr(params *GetWalletTransactionsAddrParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsAddrOK, error)

	GetWalletVerifyAddressAddr(params *GetWalletVerifyAddressAddrParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletVerifyAddressAddrOK, error)

	PostWallet033x(params *PostWallet033xParams, authInfo runtime.ClientAuthInfoWriter) (*PostWallet033xNoContent, error)

	PostWalletChangepassword(params *PostWalletChangepasswordParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletChangepasswordNoContent, error)

	PostWalletInit(params *PostWalletInitParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitOK, error)

	PostWalletInitSeed(params *PostWalletInitSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitSeedNoContent, error)

	PostWalletLock(params *PostWalletLockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletLockNoContent, error)

	PostWalletSeed(params *PostWalletSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSeedNoContent, error)

	PostWalletSiacoins(params *PostWalletSiacoinsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiacoinsOK, error)

	PostWalletSiafunds(params *PostWalletSiafundsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiafundsOK, error)

	PostWalletSiagkey(params *PostWalletSiagkeyParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiagkeyNoContent, error)

	PostWalletSweepSeed(params *PostWalletSweepSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSweepSeedOK, error)

	PostWalletUnlock(params *PostWalletUnlockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletUnlockNoContent, 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 wallet API client.

type GetWalletAddressDefault

type GetWalletAddressDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletAddressDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletAddressDefault

func NewGetWalletAddressDefault(code int) *GetWalletAddressDefault

NewGetWalletAddressDefault creates a GetWalletAddressDefault with default headers values

func (*GetWalletAddressDefault) Code

func (o *GetWalletAddressDefault) Code() int

Code gets the status code for the get wallet address default response

func (*GetWalletAddressDefault) Error

func (o *GetWalletAddressDefault) Error() string

func (*GetWalletAddressDefault) GetPayload added in v0.5.4

func (o *GetWalletAddressDefault) GetPayload() *models.StandardError

type GetWalletAddressOK

type GetWalletAddressOK struct {
	Payload *GetWalletAddressOKBody
}
GetWalletAddressOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletAddressOK

func NewGetWalletAddressOK() *GetWalletAddressOK

NewGetWalletAddressOK creates a GetWalletAddressOK with default headers values

func (*GetWalletAddressOK) Error

func (o *GetWalletAddressOK) Error() string

func (*GetWalletAddressOK) GetPayload added in v0.5.4

func (o *GetWalletAddressOK) GetPayload() *GetWalletAddressOKBody

type GetWalletAddressOKBody

type GetWalletAddressOKBody struct {

	// Wallet address that can receive siacoins or siafunds. Addresses are 76 character long hex strings.
	// Example: 1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab
	Address string `json:"address,omitempty"`
}

GetWalletAddressOKBody get wallet address o k body swagger:model GetWalletAddressOKBody

func (*GetWalletAddressOKBody) ContextValidate added in v0.5.9

func (o *GetWalletAddressOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get wallet address o k body based on context it is used

func (*GetWalletAddressOKBody) MarshalBinary

func (o *GetWalletAddressOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletAddressOKBody) UnmarshalBinary

func (o *GetWalletAddressOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletAddressOKBody) Validate

func (o *GetWalletAddressOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet address o k body

type GetWalletAddressParams

type GetWalletAddressParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletAddressParams contains all the parameters to send to the API endpoint

for the get wallet address operation.

Typically these are written to a http.Request.

func NewGetWalletAddressParams

func NewGetWalletAddressParams() *GetWalletAddressParams

NewGetWalletAddressParams creates a new GetWalletAddressParams 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 NewGetWalletAddressParamsWithContext

func NewGetWalletAddressParamsWithContext(ctx context.Context) *GetWalletAddressParams

NewGetWalletAddressParamsWithContext creates a new GetWalletAddressParams object with the ability to set a context for a request.

func NewGetWalletAddressParamsWithHTTPClient

func NewGetWalletAddressParamsWithHTTPClient(client *http.Client) *GetWalletAddressParams

NewGetWalletAddressParamsWithHTTPClient creates a new GetWalletAddressParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletAddressParamsWithTimeout

func NewGetWalletAddressParamsWithTimeout(timeout time.Duration) *GetWalletAddressParams

NewGetWalletAddressParamsWithTimeout creates a new GetWalletAddressParams object with the ability to set a timeout on a request.

func (*GetWalletAddressParams) SetContext

func (o *GetWalletAddressParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet address params

func (*GetWalletAddressParams) SetDefaults added in v0.5.9

func (o *GetWalletAddressParams) SetDefaults()

SetDefaults hydrates default values in the get wallet address params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletAddressParams) SetHTTPClient

func (o *GetWalletAddressParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet address params

func (*GetWalletAddressParams) SetTimeout

func (o *GetWalletAddressParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet address params

func (*GetWalletAddressParams) WithContext

WithContext adds the context to the get wallet address params

func (*GetWalletAddressParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet address params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletAddressParams) WithHTTPClient

func (o *GetWalletAddressParams) WithHTTPClient(client *http.Client) *GetWalletAddressParams

WithHTTPClient adds the HTTPClient to the get wallet address params

func (*GetWalletAddressParams) WithTimeout

WithTimeout adds the timeout to the get wallet address params

func (*GetWalletAddressParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletAddressReader

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

GetWalletAddressReader is a Reader for the GetWalletAddress structure.

func (*GetWalletAddressReader) ReadResponse

func (o *GetWalletAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletAddressesDefault

type GetWalletAddressesDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletAddressesDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletAddressesDefault

func NewGetWalletAddressesDefault(code int) *GetWalletAddressesDefault

NewGetWalletAddressesDefault creates a GetWalletAddressesDefault with default headers values

func (*GetWalletAddressesDefault) Code

func (o *GetWalletAddressesDefault) Code() int

Code gets the status code for the get wallet addresses default response

func (*GetWalletAddressesDefault) Error

func (o *GetWalletAddressesDefault) Error() string

func (*GetWalletAddressesDefault) GetPayload added in v0.5.4

type GetWalletAddressesOK

type GetWalletAddressesOK struct {
	Payload *GetWalletAddressesOKBody
}
GetWalletAddressesOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletAddressesOK

func NewGetWalletAddressesOK() *GetWalletAddressesOK

NewGetWalletAddressesOK creates a GetWalletAddressesOK with default headers values

func (*GetWalletAddressesOK) Error

func (o *GetWalletAddressesOK) Error() string

func (*GetWalletAddressesOK) GetPayload added in v0.5.4

type GetWalletAddressesOKBody

type GetWalletAddressesOKBody struct {

	// Array of wallet addresses owned by the wallet.
	// Example: {"addresses":["1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"]}
	Addresses []string `json:"addresses"`
}

GetWalletAddressesOKBody get wallet addresses o k body swagger:model GetWalletAddressesOKBody

func (*GetWalletAddressesOKBody) ContextValidate added in v0.5.9

func (o *GetWalletAddressesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get wallet addresses o k body based on context it is used

func (*GetWalletAddressesOKBody) MarshalBinary

func (o *GetWalletAddressesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletAddressesOKBody) UnmarshalBinary

func (o *GetWalletAddressesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletAddressesOKBody) Validate

func (o *GetWalletAddressesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet addresses o k body

type GetWalletAddressesParams

type GetWalletAddressesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletAddressesParams contains all the parameters to send to the API endpoint

for the get wallet addresses operation.

Typically these are written to a http.Request.

func NewGetWalletAddressesParams

func NewGetWalletAddressesParams() *GetWalletAddressesParams

NewGetWalletAddressesParams creates a new GetWalletAddressesParams 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 NewGetWalletAddressesParamsWithContext

func NewGetWalletAddressesParamsWithContext(ctx context.Context) *GetWalletAddressesParams

NewGetWalletAddressesParamsWithContext creates a new GetWalletAddressesParams object with the ability to set a context for a request.

func NewGetWalletAddressesParamsWithHTTPClient

func NewGetWalletAddressesParamsWithHTTPClient(client *http.Client) *GetWalletAddressesParams

NewGetWalletAddressesParamsWithHTTPClient creates a new GetWalletAddressesParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletAddressesParamsWithTimeout

func NewGetWalletAddressesParamsWithTimeout(timeout time.Duration) *GetWalletAddressesParams

NewGetWalletAddressesParamsWithTimeout creates a new GetWalletAddressesParams object with the ability to set a timeout on a request.

func (*GetWalletAddressesParams) SetContext

func (o *GetWalletAddressesParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet addresses params

func (*GetWalletAddressesParams) SetDefaults added in v0.5.9

func (o *GetWalletAddressesParams) SetDefaults()

SetDefaults hydrates default values in the get wallet addresses params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletAddressesParams) SetHTTPClient

func (o *GetWalletAddressesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet addresses params

func (*GetWalletAddressesParams) SetTimeout

func (o *GetWalletAddressesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet addresses params

func (*GetWalletAddressesParams) WithContext

WithContext adds the context to the get wallet addresses params

func (*GetWalletAddressesParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet addresses params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletAddressesParams) WithHTTPClient

func (o *GetWalletAddressesParams) WithHTTPClient(client *http.Client) *GetWalletAddressesParams

WithHTTPClient adds the HTTPClient to the get wallet addresses params

func (*GetWalletAddressesParams) WithTimeout

WithTimeout adds the timeout to the get wallet addresses params

func (*GetWalletAddressesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletAddressesReader

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

GetWalletAddressesReader is a Reader for the GetWalletAddresses structure.

func (*GetWalletAddressesReader) ReadResponse

func (o *GetWalletAddressesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletBackupDefault

type GetWalletBackupDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletBackupDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletBackupDefault

func NewGetWalletBackupDefault(code int) *GetWalletBackupDefault

NewGetWalletBackupDefault creates a GetWalletBackupDefault with default headers values

func (*GetWalletBackupDefault) Code

func (o *GetWalletBackupDefault) Code() int

Code gets the status code for the get wallet backup default response

func (*GetWalletBackupDefault) Error

func (o *GetWalletBackupDefault) Error() string

func (*GetWalletBackupDefault) GetPayload added in v0.5.4

func (o *GetWalletBackupDefault) GetPayload() *models.StandardError

type GetWalletBackupNoContent

type GetWalletBackupNoContent struct {
}
GetWalletBackupNoContent describes a response with status code 204, with default header values.

Successful Response

func NewGetWalletBackupNoContent

func NewGetWalletBackupNoContent() *GetWalletBackupNoContent

NewGetWalletBackupNoContent creates a GetWalletBackupNoContent with default headers values

func (*GetWalletBackupNoContent) Error

func (o *GetWalletBackupNoContent) Error() string

type GetWalletBackupParams

type GetWalletBackupParams struct {

	/* Destination.

	   path to the location on disk where the backup file will be saved.
	*/
	Destination *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletBackupParams contains all the parameters to send to the API endpoint

for the get wallet backup operation.

Typically these are written to a http.Request.

func NewGetWalletBackupParams

func NewGetWalletBackupParams() *GetWalletBackupParams

NewGetWalletBackupParams creates a new GetWalletBackupParams 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 NewGetWalletBackupParamsWithContext

func NewGetWalletBackupParamsWithContext(ctx context.Context) *GetWalletBackupParams

NewGetWalletBackupParamsWithContext creates a new GetWalletBackupParams object with the ability to set a context for a request.

func NewGetWalletBackupParamsWithHTTPClient

func NewGetWalletBackupParamsWithHTTPClient(client *http.Client) *GetWalletBackupParams

NewGetWalletBackupParamsWithHTTPClient creates a new GetWalletBackupParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletBackupParamsWithTimeout

func NewGetWalletBackupParamsWithTimeout(timeout time.Duration) *GetWalletBackupParams

NewGetWalletBackupParamsWithTimeout creates a new GetWalletBackupParams object with the ability to set a timeout on a request.

func (*GetWalletBackupParams) SetContext

func (o *GetWalletBackupParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet backup params

func (*GetWalletBackupParams) SetDefaults added in v0.5.9

func (o *GetWalletBackupParams) SetDefaults()

SetDefaults hydrates default values in the get wallet backup params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletBackupParams) SetDestination

func (o *GetWalletBackupParams) SetDestination(destination *string)

SetDestination adds the destination to the get wallet backup params

func (*GetWalletBackupParams) SetHTTPClient

func (o *GetWalletBackupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet backup params

func (*GetWalletBackupParams) SetTimeout

func (o *GetWalletBackupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet backup params

func (*GetWalletBackupParams) WithContext

WithContext adds the context to the get wallet backup params

func (*GetWalletBackupParams) WithDefaults added in v0.5.9

func (o *GetWalletBackupParams) WithDefaults() *GetWalletBackupParams

WithDefaults hydrates default values in the get wallet backup params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletBackupParams) WithDestination

func (o *GetWalletBackupParams) WithDestination(destination *string) *GetWalletBackupParams

WithDestination adds the destination to the get wallet backup params

func (*GetWalletBackupParams) WithHTTPClient

func (o *GetWalletBackupParams) WithHTTPClient(client *http.Client) *GetWalletBackupParams

WithHTTPClient adds the HTTPClient to the get wallet backup params

func (*GetWalletBackupParams) WithTimeout

func (o *GetWalletBackupParams) WithTimeout(timeout time.Duration) *GetWalletBackupParams

WithTimeout adds the timeout to the get wallet backup params

func (*GetWalletBackupParams) WriteToRequest

func (o *GetWalletBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetWalletBackupReader

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

GetWalletBackupReader is a Reader for the GetWalletBackup structure.

func (*GetWalletBackupReader) ReadResponse

func (o *GetWalletBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletDefault

type GetWalletDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletDefault

func NewGetWalletDefault(code int) *GetWalletDefault

NewGetWalletDefault creates a GetWalletDefault with default headers values

func (*GetWalletDefault) Code

func (o *GetWalletDefault) Code() int

Code gets the status code for the get wallet default response

func (*GetWalletDefault) Error

func (o *GetWalletDefault) Error() string

func (*GetWalletDefault) GetPayload added in v0.5.4

func (o *GetWalletDefault) GetPayload() *models.StandardError

type GetWalletOK

type GetWalletOK struct {
	Payload *GetWalletOKBody
}
GetWalletOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletOK

func NewGetWalletOK() *GetWalletOK

NewGetWalletOK creates a GetWalletOK with default headers values

func (*GetWalletOK) Error

func (o *GetWalletOK) Error() string

func (*GetWalletOK) GetPayload added in v0.5.4

func (o *GetWalletOK) GetPayload() *GetWalletOKBody

type GetWalletOKBody

type GetWalletOKBody struct {

	// Number of siacoins, in hastings, available to the wallet as of the most recent block in the blockchain.
	// Example: 123456
	Confirmedsiacoinbalance string `json:"confirmedsiacoinbalance,omitempty"`

	// Number of siacoins, in hastings per byte, below which a transaction output cannot be used because the wallet considers it a dust output
	// Example: 1234
	Dustthreshold string `json:"dustthreshold,omitempty"`

	// Indicates whether the wallet has been encrypted or not. If the wallet has not been encrypted, then no data has been generated at all, and the first time the wallet is unlocked, the password given will be used as the password for encrypting all of the data. 'encrypted' will only be set to false if the wallet has never been unlocked before (the unlocked wallet is still encryped - but the encryption key is in memory).
	// Example: true
	Encrypted bool `json:"encrypted,omitempty"`

	// Indicates whether the wallet is currently rescanning the blockchain. This will be true for the duration of calls to /unlock, /seeds, /init/seed, and /sweep/seed.
	// Example: false
	Rescanning bool `json:"rescanning,omitempty"`

	// Number of siacoins, in hastings, that can be claimed from the siafunds as of the most recent block. Because the claim balance increases every time a file contract is created, it is possible that the balance will increase before any claim transaction is confirmed.
	// Example: 9001
	Siacoinclaimbalance string `json:"siacoinclaimbalance,omitempty"`

	// Number of siafunds available to the wallet as of the most recent block in the blockchain.
	// Example: 1
	Siafundbalance string `json:"siafundbalance,omitempty"`

	// Number of siacoins, in hastings, are entering the wallet according to the set of unconfirmed transactions. This number is often inflated by outgoing siacoins, because outputs are frequently larger than the amount being sent. The refund will be included in the unconfirmed incoming siacoins balance.
	// Example: 789
	Unconfirmedincomingsiacoins string `json:"unconfirmedincomingsiacoins,omitempty"`

	// Number of siacoins, in hastings, that are leaving the wallet according to the set of unconfirmed transactions. Often this number appears inflated, because outputs are frequently larger than the number of coins being sent, and there is a refund. These coins are counted as outgoing, and the refund is counted as incoming. The difference in balance can be calculated using 'unconfirmedincomingsiacoins' - 'unconfirmedoutgoingsiacoins'
	// Example: 0
	Unconfirmedoutgoingsiacoins string `json:"unconfirmedoutgoingsiacoins,omitempty"`

	// Indicates whether the wallet is currently locked or unlocked. Some calls become unavailable when the wallet is locked.
	// Example: true
	Unlocked bool `json:"unlocked,omitempty"`
}

GetWalletOKBody get wallet o k body swagger:model GetWalletOKBody

func (*GetWalletOKBody) ContextValidate added in v0.5.9

func (o *GetWalletOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get wallet o k body based on context it is used

func (*GetWalletOKBody) MarshalBinary

func (o *GetWalletOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletOKBody) UnmarshalBinary

func (o *GetWalletOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletOKBody) Validate

func (o *GetWalletOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet o k body

type GetWalletParams

type GetWalletParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletParams contains all the parameters to send to the API endpoint

for the get wallet operation.

Typically these are written to a http.Request.

func NewGetWalletParams

func NewGetWalletParams() *GetWalletParams

NewGetWalletParams creates a new GetWalletParams 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 NewGetWalletParamsWithContext

func NewGetWalletParamsWithContext(ctx context.Context) *GetWalletParams

NewGetWalletParamsWithContext creates a new GetWalletParams object with the ability to set a context for a request.

func NewGetWalletParamsWithHTTPClient

func NewGetWalletParamsWithHTTPClient(client *http.Client) *GetWalletParams

NewGetWalletParamsWithHTTPClient creates a new GetWalletParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletParamsWithTimeout

func NewGetWalletParamsWithTimeout(timeout time.Duration) *GetWalletParams

NewGetWalletParamsWithTimeout creates a new GetWalletParams object with the ability to set a timeout on a request.

func (*GetWalletParams) SetContext

func (o *GetWalletParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet params

func (*GetWalletParams) SetDefaults added in v0.5.9

func (o *GetWalletParams) SetDefaults()

SetDefaults hydrates default values in the get wallet params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletParams) SetHTTPClient

func (o *GetWalletParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet params

func (*GetWalletParams) SetTimeout

func (o *GetWalletParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet params

func (*GetWalletParams) WithContext

func (o *GetWalletParams) WithContext(ctx context.Context) *GetWalletParams

WithContext adds the context to the get wallet params

func (*GetWalletParams) WithDefaults added in v0.5.9

func (o *GetWalletParams) WithDefaults() *GetWalletParams

WithDefaults hydrates default values in the get wallet params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletParams) WithHTTPClient

func (o *GetWalletParams) WithHTTPClient(client *http.Client) *GetWalletParams

WithHTTPClient adds the HTTPClient to the get wallet params

func (*GetWalletParams) WithTimeout

func (o *GetWalletParams) WithTimeout(timeout time.Duration) *GetWalletParams

WithTimeout adds the timeout to the get wallet params

func (*GetWalletParams) WriteToRequest

func (o *GetWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetWalletReader

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

GetWalletReader is a Reader for the GetWallet structure.

func (*GetWalletReader) ReadResponse

func (o *GetWalletReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletSeedsDefault

type GetWalletSeedsDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletSeedsDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletSeedsDefault

func NewGetWalletSeedsDefault(code int) *GetWalletSeedsDefault

NewGetWalletSeedsDefault creates a GetWalletSeedsDefault with default headers values

func (*GetWalletSeedsDefault) Code

func (o *GetWalletSeedsDefault) Code() int

Code gets the status code for the get wallet seeds default response

func (*GetWalletSeedsDefault) Error

func (o *GetWalletSeedsDefault) Error() string

func (*GetWalletSeedsDefault) GetPayload added in v0.5.4

func (o *GetWalletSeedsDefault) GetPayload() *models.StandardError

type GetWalletSeedsOK

type GetWalletSeedsOK struct {
	Payload *GetWalletSeedsOKBody
}
GetWalletSeedsOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletSeedsOK

func NewGetWalletSeedsOK() *GetWalletSeedsOK

NewGetWalletSeedsOK creates a GetWalletSeedsOK with default headers values

func (*GetWalletSeedsOK) Error

func (o *GetWalletSeedsOK) Error() string

func (*GetWalletSeedsOK) GetPayload added in v0.5.4

func (o *GetWalletSeedsOK) GetPayload() *GetWalletSeedsOKBody

type GetWalletSeedsOKBody

type GetWalletSeedsOKBody struct {

	// Number of addresses that remain in the primary seed until exhaustion has been reached. Once exhaustion has been reached, new addresses will continue to be generated but they will be more difficult to recover in the event of a lost wallet file or encryption password.
	// Example: 2500
	Addressesremaining int64 `json:"addressesremaining,omitempty"`

	// Array of all seeds that the wallet references when scanning the blockchain for outputs. The wallet is able to spend any output generated by any of the seeds, however only the primary seed is being used to generate new addresses.
	// Example: ["hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello","foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo"]
	Allseeds []string `json:"allseeds"`

	// Seed that is actively being used to generate new addresses for the wallet.
	// Example: hello world hello world hello world hello world hello world hello world  hello world hello world hello world hello world hello world hello world  hello world hello world hello
	Primaryseed string `json:"primaryseed,omitempty"`
}

GetWalletSeedsOKBody get wallet seeds o k body swagger:model GetWalletSeedsOKBody

func (*GetWalletSeedsOKBody) ContextValidate added in v0.5.9

func (o *GetWalletSeedsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get wallet seeds o k body based on context it is used

func (*GetWalletSeedsOKBody) MarshalBinary

func (o *GetWalletSeedsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletSeedsOKBody) UnmarshalBinary

func (o *GetWalletSeedsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletSeedsOKBody) Validate

func (o *GetWalletSeedsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet seeds o k body

type GetWalletSeedsParams

type GetWalletSeedsParams struct {

	/* Dictionary.

	   Name of the dictionary that should be used when encoding the seed. 'english' is the most common choice when picking a dictionary.
	*/
	Dictionary *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletSeedsParams contains all the parameters to send to the API endpoint

for the get wallet seeds operation.

Typically these are written to a http.Request.

func NewGetWalletSeedsParams

func NewGetWalletSeedsParams() *GetWalletSeedsParams

NewGetWalletSeedsParams creates a new GetWalletSeedsParams 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 NewGetWalletSeedsParamsWithContext

func NewGetWalletSeedsParamsWithContext(ctx context.Context) *GetWalletSeedsParams

NewGetWalletSeedsParamsWithContext creates a new GetWalletSeedsParams object with the ability to set a context for a request.

func NewGetWalletSeedsParamsWithHTTPClient

func NewGetWalletSeedsParamsWithHTTPClient(client *http.Client) *GetWalletSeedsParams

NewGetWalletSeedsParamsWithHTTPClient creates a new GetWalletSeedsParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletSeedsParamsWithTimeout

func NewGetWalletSeedsParamsWithTimeout(timeout time.Duration) *GetWalletSeedsParams

NewGetWalletSeedsParamsWithTimeout creates a new GetWalletSeedsParams object with the ability to set a timeout on a request.

func (*GetWalletSeedsParams) SetContext

func (o *GetWalletSeedsParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet seeds params

func (*GetWalletSeedsParams) SetDefaults added in v0.5.9

func (o *GetWalletSeedsParams) SetDefaults()

SetDefaults hydrates default values in the get wallet seeds params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletSeedsParams) SetDictionary

func (o *GetWalletSeedsParams) SetDictionary(dictionary *string)

SetDictionary adds the dictionary to the get wallet seeds params

func (*GetWalletSeedsParams) SetHTTPClient

func (o *GetWalletSeedsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet seeds params

func (*GetWalletSeedsParams) SetTimeout

func (o *GetWalletSeedsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet seeds params

func (*GetWalletSeedsParams) WithContext

WithContext adds the context to the get wallet seeds params

func (*GetWalletSeedsParams) WithDefaults added in v0.5.9

func (o *GetWalletSeedsParams) WithDefaults() *GetWalletSeedsParams

WithDefaults hydrates default values in the get wallet seeds params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletSeedsParams) WithDictionary

func (o *GetWalletSeedsParams) WithDictionary(dictionary *string) *GetWalletSeedsParams

WithDictionary adds the dictionary to the get wallet seeds params

func (*GetWalletSeedsParams) WithHTTPClient

func (o *GetWalletSeedsParams) WithHTTPClient(client *http.Client) *GetWalletSeedsParams

WithHTTPClient adds the HTTPClient to the get wallet seeds params

func (*GetWalletSeedsParams) WithTimeout

func (o *GetWalletSeedsParams) WithTimeout(timeout time.Duration) *GetWalletSeedsParams

WithTimeout adds the timeout to the get wallet seeds params

func (*GetWalletSeedsParams) WriteToRequest

func (o *GetWalletSeedsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetWalletSeedsReader

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

GetWalletSeedsReader is a Reader for the GetWalletSeeds structure.

func (*GetWalletSeedsReader) ReadResponse

func (o *GetWalletSeedsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletTransactionIDDefault

type GetWalletTransactionIDDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletTransactionIDDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletTransactionIDDefault

func NewGetWalletTransactionIDDefault(code int) *GetWalletTransactionIDDefault

NewGetWalletTransactionIDDefault creates a GetWalletTransactionIDDefault with default headers values

func (*GetWalletTransactionIDDefault) Code

Code gets the status code for the get wallet transaction ID default response

func (*GetWalletTransactionIDDefault) Error

func (*GetWalletTransactionIDDefault) GetPayload added in v0.5.4

type GetWalletTransactionIDOK

type GetWalletTransactionIDOK struct {
	Payload *GetWalletTransactionIDOKBody
}
GetWalletTransactionIDOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletTransactionIDOK

func NewGetWalletTransactionIDOK() *GetWalletTransactionIDOK

NewGetWalletTransactionIDOK creates a GetWalletTransactionIDOK with default headers values

func (*GetWalletTransactionIDOK) Error

func (o *GetWalletTransactionIDOK) Error() string

func (*GetWalletTransactionIDOK) GetPayload added in v0.5.4

type GetWalletTransactionIDOKBody

type GetWalletTransactionIDOKBody struct {

	// transaction
	Transaction *models.Transaction `json:"transaction,omitempty"`
}

GetWalletTransactionIDOKBody get wallet transaction ID o k body swagger:model GetWalletTransactionIDOKBody

func (*GetWalletTransactionIDOKBody) ContextValidate added in v0.5.9

func (o *GetWalletTransactionIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get wallet transaction ID o k body based on the context it is used

func (*GetWalletTransactionIDOKBody) MarshalBinary

func (o *GetWalletTransactionIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletTransactionIDOKBody) UnmarshalBinary

func (o *GetWalletTransactionIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletTransactionIDOKBody) Validate

func (o *GetWalletTransactionIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet transaction ID o k body

type GetWalletTransactionIDParams

type GetWalletTransactionIDParams struct {

	/* ID.

	   ID of the transaction being requested.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletTransactionIDParams contains all the parameters to send to the API endpoint

for the get wallet transaction ID operation.

Typically these are written to a http.Request.

func NewGetWalletTransactionIDParams

func NewGetWalletTransactionIDParams() *GetWalletTransactionIDParams

NewGetWalletTransactionIDParams creates a new GetWalletTransactionIDParams 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 NewGetWalletTransactionIDParamsWithContext

func NewGetWalletTransactionIDParamsWithContext(ctx context.Context) *GetWalletTransactionIDParams

NewGetWalletTransactionIDParamsWithContext creates a new GetWalletTransactionIDParams object with the ability to set a context for a request.

func NewGetWalletTransactionIDParamsWithHTTPClient

func NewGetWalletTransactionIDParamsWithHTTPClient(client *http.Client) *GetWalletTransactionIDParams

NewGetWalletTransactionIDParamsWithHTTPClient creates a new GetWalletTransactionIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletTransactionIDParamsWithTimeout

func NewGetWalletTransactionIDParamsWithTimeout(timeout time.Duration) *GetWalletTransactionIDParams

NewGetWalletTransactionIDParamsWithTimeout creates a new GetWalletTransactionIDParams object with the ability to set a timeout on a request.

func (*GetWalletTransactionIDParams) SetContext

func (o *GetWalletTransactionIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) SetDefaults added in v0.5.9

func (o *GetWalletTransactionIDParams) SetDefaults()

SetDefaults hydrates default values in the get wallet transaction ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionIDParams) SetHTTPClient

func (o *GetWalletTransactionIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) SetID

func (o *GetWalletTransactionIDParams) SetID(id string)

SetID adds the id to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) SetTimeout

func (o *GetWalletTransactionIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) WithContext

WithContext adds the context to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet transaction ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) WithID

WithID adds the id to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) WithTimeout

WithTimeout adds the timeout to the get wallet transaction ID params

func (*GetWalletTransactionIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletTransactionIDReader

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

GetWalletTransactionIDReader is a Reader for the GetWalletTransactionID structure.

func (*GetWalletTransactionIDReader) ReadResponse

func (o *GetWalletTransactionIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletTransactionsAddrDefault

type GetWalletTransactionsAddrDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletTransactionsAddrDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletTransactionsAddrDefault

func NewGetWalletTransactionsAddrDefault(code int) *GetWalletTransactionsAddrDefault

NewGetWalletTransactionsAddrDefault creates a GetWalletTransactionsAddrDefault with default headers values

func (*GetWalletTransactionsAddrDefault) Code

Code gets the status code for the get wallet transactions addr default response

func (*GetWalletTransactionsAddrDefault) Error

func (*GetWalletTransactionsAddrDefault) GetPayload added in v0.5.4

type GetWalletTransactionsAddrOK

type GetWalletTransactionsAddrOK struct {
	Payload *GetWalletTransactionsAddrOKBody
}
GetWalletTransactionsAddrOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletTransactionsAddrOK

func NewGetWalletTransactionsAddrOK() *GetWalletTransactionsAddrOK

NewGetWalletTransactionsAddrOK creates a GetWalletTransactionsAddrOK with default headers values

func (*GetWalletTransactionsAddrOK) Error

func (*GetWalletTransactionsAddrOK) GetPayload added in v0.5.4

type GetWalletTransactionsAddrOKBody

type GetWalletTransactionsAddrOKBody struct {

	// Array of processed transactions that relate to the supplied address.
	Transactions []*models.Transaction `json:"transactions"`
}

GetWalletTransactionsAddrOKBody get wallet transactions addr o k body swagger:model GetWalletTransactionsAddrOKBody

func (*GetWalletTransactionsAddrOKBody) ContextValidate added in v0.5.9

func (o *GetWalletTransactionsAddrOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get wallet transactions addr o k body based on the context it is used

func (*GetWalletTransactionsAddrOKBody) MarshalBinary

func (o *GetWalletTransactionsAddrOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletTransactionsAddrOKBody) UnmarshalBinary

func (o *GetWalletTransactionsAddrOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletTransactionsAddrOKBody) Validate

Validate validates this get wallet transactions addr o k body

type GetWalletTransactionsAddrParams

type GetWalletTransactionsAddrParams struct {

	/* Addr.

	   Unlock hash (i.e. wallet address) whose transactions are being requested.
	*/
	Addr string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletTransactionsAddrParams contains all the parameters to send to the API endpoint

for the get wallet transactions addr operation.

Typically these are written to a http.Request.

func NewGetWalletTransactionsAddrParams

func NewGetWalletTransactionsAddrParams() *GetWalletTransactionsAddrParams

NewGetWalletTransactionsAddrParams creates a new GetWalletTransactionsAddrParams 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 NewGetWalletTransactionsAddrParamsWithContext

func NewGetWalletTransactionsAddrParamsWithContext(ctx context.Context) *GetWalletTransactionsAddrParams

NewGetWalletTransactionsAddrParamsWithContext creates a new GetWalletTransactionsAddrParams object with the ability to set a context for a request.

func NewGetWalletTransactionsAddrParamsWithHTTPClient

func NewGetWalletTransactionsAddrParamsWithHTTPClient(client *http.Client) *GetWalletTransactionsAddrParams

NewGetWalletTransactionsAddrParamsWithHTTPClient creates a new GetWalletTransactionsAddrParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletTransactionsAddrParamsWithTimeout

func NewGetWalletTransactionsAddrParamsWithTimeout(timeout time.Duration) *GetWalletTransactionsAddrParams

NewGetWalletTransactionsAddrParamsWithTimeout creates a new GetWalletTransactionsAddrParams object with the ability to set a timeout on a request.

func (*GetWalletTransactionsAddrParams) SetAddr

func (o *GetWalletTransactionsAddrParams) SetAddr(addr string)

SetAddr adds the addr to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) SetContext

func (o *GetWalletTransactionsAddrParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) SetDefaults added in v0.5.9

func (o *GetWalletTransactionsAddrParams) SetDefaults()

SetDefaults hydrates default values in the get wallet transactions addr params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionsAddrParams) SetHTTPClient

func (o *GetWalletTransactionsAddrParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) SetTimeout

func (o *GetWalletTransactionsAddrParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) WithAddr

WithAddr adds the addr to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) WithContext

WithContext adds the context to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet transactions addr params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionsAddrParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) WithTimeout

WithTimeout adds the timeout to the get wallet transactions addr params

func (*GetWalletTransactionsAddrParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletTransactionsAddrReader

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

GetWalletTransactionsAddrReader is a Reader for the GetWalletTransactionsAddr structure.

func (*GetWalletTransactionsAddrReader) ReadResponse

func (o *GetWalletTransactionsAddrReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletTransactionsDefault

type GetWalletTransactionsDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletTransactionsDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletTransactionsDefault

func NewGetWalletTransactionsDefault(code int) *GetWalletTransactionsDefault

NewGetWalletTransactionsDefault creates a GetWalletTransactionsDefault with default headers values

func (*GetWalletTransactionsDefault) Code

Code gets the status code for the get wallet transactions default response

func (*GetWalletTransactionsDefault) Error

func (*GetWalletTransactionsDefault) GetPayload added in v0.5.4

type GetWalletTransactionsOK

type GetWalletTransactionsOK struct {
	Payload *GetWalletTransactionsOKBody
}
GetWalletTransactionsOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletTransactionsOK

func NewGetWalletTransactionsOK() *GetWalletTransactionsOK

NewGetWalletTransactionsOK creates a GetWalletTransactionsOK with default headers values

func (*GetWalletTransactionsOK) Error

func (o *GetWalletTransactionsOK) Error() string

func (*GetWalletTransactionsOK) GetPayload added in v0.5.4

type GetWalletTransactionsOKBody

type GetWalletTransactionsOKBody struct {

	// All of the confirmed transactions appearing between height 'startheight' and height 'endheight' (inclusive).
	Confirmedtransactions []*models.Transaction `json:"confirmedtransactions"`

	// All of the unconfirmed transactions.
	Unconfirmedtransactions []*models.Transaction `json:"unconfirmedtransactions"`
}

GetWalletTransactionsOKBody get wallet transactions o k body swagger:model GetWalletTransactionsOKBody

func (*GetWalletTransactionsOKBody) ContextValidate added in v0.5.9

func (o *GetWalletTransactionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get wallet transactions o k body based on the context it is used

func (*GetWalletTransactionsOKBody) MarshalBinary

func (o *GetWalletTransactionsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletTransactionsOKBody) UnmarshalBinary

func (o *GetWalletTransactionsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletTransactionsOKBody) Validate

func (o *GetWalletTransactionsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get wallet transactions o k body

type GetWalletTransactionsParams

type GetWalletTransactionsParams struct {

	/* Endheight.

	   Height of of the block where the transaction history should end. If 'endheight' is greater than the current height, all transactions up to and including the most recent block will be provided.
	*/
	Endheight *string

	/* Startheight.

	   Height of the block where transaction history should begin.
	*/
	Startheight *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletTransactionsParams contains all the parameters to send to the API endpoint

for the get wallet transactions operation.

Typically these are written to a http.Request.

func NewGetWalletTransactionsParams

func NewGetWalletTransactionsParams() *GetWalletTransactionsParams

NewGetWalletTransactionsParams creates a new GetWalletTransactionsParams 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 NewGetWalletTransactionsParamsWithContext

func NewGetWalletTransactionsParamsWithContext(ctx context.Context) *GetWalletTransactionsParams

NewGetWalletTransactionsParamsWithContext creates a new GetWalletTransactionsParams object with the ability to set a context for a request.

func NewGetWalletTransactionsParamsWithHTTPClient

func NewGetWalletTransactionsParamsWithHTTPClient(client *http.Client) *GetWalletTransactionsParams

NewGetWalletTransactionsParamsWithHTTPClient creates a new GetWalletTransactionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletTransactionsParamsWithTimeout

func NewGetWalletTransactionsParamsWithTimeout(timeout time.Duration) *GetWalletTransactionsParams

NewGetWalletTransactionsParamsWithTimeout creates a new GetWalletTransactionsParams object with the ability to set a timeout on a request.

func (*GetWalletTransactionsParams) SetContext

func (o *GetWalletTransactionsParams) SetContext(ctx context.Context)

SetContext adds the context to the get wallet transactions params

func (*GetWalletTransactionsParams) SetDefaults added in v0.5.9

func (o *GetWalletTransactionsParams) SetDefaults()

SetDefaults hydrates default values in the get wallet transactions params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionsParams) SetEndheight

func (o *GetWalletTransactionsParams) SetEndheight(endheight *string)

SetEndheight adds the endheight to the get wallet transactions params

func (*GetWalletTransactionsParams) SetHTTPClient

func (o *GetWalletTransactionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet transactions params

func (*GetWalletTransactionsParams) SetStartheight

func (o *GetWalletTransactionsParams) SetStartheight(startheight *string)

SetStartheight adds the startheight to the get wallet transactions params

func (*GetWalletTransactionsParams) SetTimeout

func (o *GetWalletTransactionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet transactions params

func (*GetWalletTransactionsParams) WithContext

WithContext adds the context to the get wallet transactions params

func (*GetWalletTransactionsParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet transactions params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletTransactionsParams) WithEndheight

func (o *GetWalletTransactionsParams) WithEndheight(endheight *string) *GetWalletTransactionsParams

WithEndheight adds the endheight to the get wallet transactions params

func (*GetWalletTransactionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get wallet transactions params

func (*GetWalletTransactionsParams) WithStartheight

func (o *GetWalletTransactionsParams) WithStartheight(startheight *string) *GetWalletTransactionsParams

WithStartheight adds the startheight to the get wallet transactions params

func (*GetWalletTransactionsParams) WithTimeout

WithTimeout adds the timeout to the get wallet transactions params

func (*GetWalletTransactionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletTransactionsReader

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

GetWalletTransactionsReader is a Reader for the GetWalletTransactions structure.

func (*GetWalletTransactionsReader) ReadResponse

func (o *GetWalletTransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWalletVerifyAddressAddrDefault

type GetWalletVerifyAddressAddrDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetWalletVerifyAddressAddrDefault describes a response with status code -1, with default header values.

Error Response

func NewGetWalletVerifyAddressAddrDefault

func NewGetWalletVerifyAddressAddrDefault(code int) *GetWalletVerifyAddressAddrDefault

NewGetWalletVerifyAddressAddrDefault creates a GetWalletVerifyAddressAddrDefault with default headers values

func (*GetWalletVerifyAddressAddrDefault) Code

Code gets the status code for the get wallet verify address addr default response

func (*GetWalletVerifyAddressAddrDefault) Error

func (*GetWalletVerifyAddressAddrDefault) GetPayload added in v0.5.4

type GetWalletVerifyAddressAddrOK

type GetWalletVerifyAddressAddrOK struct {
	Payload *GetWalletVerifyAddressAddrOKBody
}
GetWalletVerifyAddressAddrOK describes a response with status code 200, with default header values.

Successful Response

func NewGetWalletVerifyAddressAddrOK

func NewGetWalletVerifyAddressAddrOK() *GetWalletVerifyAddressAddrOK

NewGetWalletVerifyAddressAddrOK creates a GetWalletVerifyAddressAddrOK with default headers values

func (*GetWalletVerifyAddressAddrOK) Error

func (*GetWalletVerifyAddressAddrOK) GetPayload added in v0.5.4

type GetWalletVerifyAddressAddrOKBody

type GetWalletVerifyAddressAddrOKBody struct {

	// valid indicates if the address supplied to addr is a valid UnlockHash.
	// Example: true
	Valid bool `json:"valid,omitempty"`
}

GetWalletVerifyAddressAddrOKBody get wallet verify address addr o k body swagger:model GetWalletVerifyAddressAddrOKBody

func (*GetWalletVerifyAddressAddrOKBody) ContextValidate added in v0.5.9

func (o *GetWalletVerifyAddressAddrOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get wallet verify address addr o k body based on context it is used

func (*GetWalletVerifyAddressAddrOKBody) MarshalBinary

func (o *GetWalletVerifyAddressAddrOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetWalletVerifyAddressAddrOKBody) UnmarshalBinary

func (o *GetWalletVerifyAddressAddrOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetWalletVerifyAddressAddrOKBody) Validate

Validate validates this get wallet verify address addr o k body

type GetWalletVerifyAddressAddrParams

type GetWalletVerifyAddressAddrParams struct {

	// Addr.
	Addr string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWalletVerifyAddressAddrParams contains all the parameters to send to the API endpoint

for the get wallet verify address addr operation.

Typically these are written to a http.Request.

func NewGetWalletVerifyAddressAddrParams

func NewGetWalletVerifyAddressAddrParams() *GetWalletVerifyAddressAddrParams

NewGetWalletVerifyAddressAddrParams creates a new GetWalletVerifyAddressAddrParams 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 NewGetWalletVerifyAddressAddrParamsWithContext

func NewGetWalletVerifyAddressAddrParamsWithContext(ctx context.Context) *GetWalletVerifyAddressAddrParams

NewGetWalletVerifyAddressAddrParamsWithContext creates a new GetWalletVerifyAddressAddrParams object with the ability to set a context for a request.

func NewGetWalletVerifyAddressAddrParamsWithHTTPClient

func NewGetWalletVerifyAddressAddrParamsWithHTTPClient(client *http.Client) *GetWalletVerifyAddressAddrParams

NewGetWalletVerifyAddressAddrParamsWithHTTPClient creates a new GetWalletVerifyAddressAddrParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletVerifyAddressAddrParamsWithTimeout

func NewGetWalletVerifyAddressAddrParamsWithTimeout(timeout time.Duration) *GetWalletVerifyAddressAddrParams

NewGetWalletVerifyAddressAddrParamsWithTimeout creates a new GetWalletVerifyAddressAddrParams object with the ability to set a timeout on a request.

func (*GetWalletVerifyAddressAddrParams) SetAddr

func (o *GetWalletVerifyAddressAddrParams) SetAddr(addr string)

SetAddr adds the addr to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) SetContext

SetContext adds the context to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) SetDefaults added in v0.5.9

func (o *GetWalletVerifyAddressAddrParams) SetDefaults()

SetDefaults hydrates default values in the get wallet verify address addr params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletVerifyAddressAddrParams) SetHTTPClient

func (o *GetWalletVerifyAddressAddrParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) SetTimeout

func (o *GetWalletVerifyAddressAddrParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) WithAddr

WithAddr adds the addr to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) WithContext

WithContext adds the context to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the get wallet verify address addr params (not the query body).

All values with no default are reset to their zero value.

func (*GetWalletVerifyAddressAddrParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) WithTimeout

WithTimeout adds the timeout to the get wallet verify address addr params

func (*GetWalletVerifyAddressAddrParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWalletVerifyAddressAddrReader

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

GetWalletVerifyAddressAddrReader is a Reader for the GetWalletVerifyAddressAddr structure.

func (*GetWalletVerifyAddressAddrReader) ReadResponse

func (o *GetWalletVerifyAddressAddrReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWallet033xDefault

type PostWallet033xDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWallet033xDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWallet033xDefault

func NewPostWallet033xDefault(code int) *PostWallet033xDefault

NewPostWallet033xDefault creates a PostWallet033xDefault with default headers values

func (*PostWallet033xDefault) Code

func (o *PostWallet033xDefault) Code() int

Code gets the status code for the post wallet033x default response

func (*PostWallet033xDefault) Error

func (o *PostWallet033xDefault) Error() string

func (*PostWallet033xDefault) GetPayload added in v0.5.4

func (o *PostWallet033xDefault) GetPayload() *models.StandardError

type PostWallet033xNoContent

type PostWallet033xNoContent struct {
}
PostWallet033xNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWallet033xNoContent

func NewPostWallet033xNoContent() *PostWallet033xNoContent

NewPostWallet033xNoContent creates a PostWallet033xNoContent with default headers values

func (*PostWallet033xNoContent) Error

func (o *PostWallet033xNoContent) Error() string

type PostWallet033xParams

type PostWallet033xParams struct {

	/* Encryptionpassword.

	   Encryption key of the wallet.
	*/
	Encryptionpassword *string

	/* Source.

	   Path on disk to the v0.3.3.x wallet to be loaded.
	*/
	Source *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWallet033xParams contains all the parameters to send to the API endpoint

for the post wallet033x operation.

Typically these are written to a http.Request.

func NewPostWallet033xParams

func NewPostWallet033xParams() *PostWallet033xParams

NewPostWallet033xParams creates a new PostWallet033xParams 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 NewPostWallet033xParamsWithContext

func NewPostWallet033xParamsWithContext(ctx context.Context) *PostWallet033xParams

NewPostWallet033xParamsWithContext creates a new PostWallet033xParams object with the ability to set a context for a request.

func NewPostWallet033xParamsWithHTTPClient

func NewPostWallet033xParamsWithHTTPClient(client *http.Client) *PostWallet033xParams

NewPostWallet033xParamsWithHTTPClient creates a new PostWallet033xParams object with the ability to set a custom HTTPClient for a request.

func NewPostWallet033xParamsWithTimeout

func NewPostWallet033xParamsWithTimeout(timeout time.Duration) *PostWallet033xParams

NewPostWallet033xParamsWithTimeout creates a new PostWallet033xParams object with the ability to set a timeout on a request.

func (*PostWallet033xParams) SetContext

func (o *PostWallet033xParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet033x params

func (*PostWallet033xParams) SetDefaults added in v0.5.9

func (o *PostWallet033xParams) SetDefaults()

SetDefaults hydrates default values in the post wallet033x params (not the query body).

All values with no default are reset to their zero value.

func (*PostWallet033xParams) SetEncryptionpassword

func (o *PostWallet033xParams) SetEncryptionpassword(encryptionpassword *string)

SetEncryptionpassword adds the encryptionpassword to the post wallet033x params

func (*PostWallet033xParams) SetHTTPClient

func (o *PostWallet033xParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet033x params

func (*PostWallet033xParams) SetSource

func (o *PostWallet033xParams) SetSource(source *string)

SetSource adds the source to the post wallet033x params

func (*PostWallet033xParams) SetTimeout

func (o *PostWallet033xParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet033x params

func (*PostWallet033xParams) WithContext

WithContext adds the context to the post wallet033x params

func (*PostWallet033xParams) WithDefaults added in v0.5.9

func (o *PostWallet033xParams) WithDefaults() *PostWallet033xParams

WithDefaults hydrates default values in the post wallet033x params (not the query body).

All values with no default are reset to their zero value.

func (*PostWallet033xParams) WithEncryptionpassword

func (o *PostWallet033xParams) WithEncryptionpassword(encryptionpassword *string) *PostWallet033xParams

WithEncryptionpassword adds the encryptionpassword to the post wallet033x params

func (*PostWallet033xParams) WithHTTPClient

func (o *PostWallet033xParams) WithHTTPClient(client *http.Client) *PostWallet033xParams

WithHTTPClient adds the HTTPClient to the post wallet033x params

func (*PostWallet033xParams) WithSource

func (o *PostWallet033xParams) WithSource(source *string) *PostWallet033xParams

WithSource adds the source to the post wallet033x params

func (*PostWallet033xParams) WithTimeout

func (o *PostWallet033xParams) WithTimeout(timeout time.Duration) *PostWallet033xParams

WithTimeout adds the timeout to the post wallet033x params

func (*PostWallet033xParams) WriteToRequest

func (o *PostWallet033xParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostWallet033xReader

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

PostWallet033xReader is a Reader for the PostWallet033x structure.

func (*PostWallet033xReader) ReadResponse

func (o *PostWallet033xReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletChangepasswordDefault

type PostWalletChangepasswordDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletChangepasswordDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletChangepasswordDefault

func NewPostWalletChangepasswordDefault(code int) *PostWalletChangepasswordDefault

NewPostWalletChangepasswordDefault creates a PostWalletChangepasswordDefault with default headers values

func (*PostWalletChangepasswordDefault) Code

Code gets the status code for the post wallet changepassword default response

func (*PostWalletChangepasswordDefault) Error

func (*PostWalletChangepasswordDefault) GetPayload added in v0.5.4

type PostWalletChangepasswordNoContent

type PostWalletChangepasswordNoContent struct {
}
PostWalletChangepasswordNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletChangepasswordNoContent

func NewPostWalletChangepasswordNoContent() *PostWalletChangepasswordNoContent

NewPostWalletChangepasswordNoContent creates a PostWalletChangepasswordNoContent with default headers values

func (*PostWalletChangepasswordNoContent) Error

type PostWalletChangepasswordParams

type PostWalletChangepasswordParams struct {

	/* Encryptionpassword.

	   encryptionpassword is the wallet's current encryption password.
	*/
	Encryptionpassword string

	/* Newpassword.

	   newpassword is the new password for the wallet.
	*/
	Newpassword string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletChangepasswordParams contains all the parameters to send to the API endpoint

for the post wallet changepassword operation.

Typically these are written to a http.Request.

func NewPostWalletChangepasswordParams

func NewPostWalletChangepasswordParams() *PostWalletChangepasswordParams

NewPostWalletChangepasswordParams creates a new PostWalletChangepasswordParams 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 NewPostWalletChangepasswordParamsWithContext

func NewPostWalletChangepasswordParamsWithContext(ctx context.Context) *PostWalletChangepasswordParams

NewPostWalletChangepasswordParamsWithContext creates a new PostWalletChangepasswordParams object with the ability to set a context for a request.

func NewPostWalletChangepasswordParamsWithHTTPClient

func NewPostWalletChangepasswordParamsWithHTTPClient(client *http.Client) *PostWalletChangepasswordParams

NewPostWalletChangepasswordParamsWithHTTPClient creates a new PostWalletChangepasswordParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletChangepasswordParamsWithTimeout

func NewPostWalletChangepasswordParamsWithTimeout(timeout time.Duration) *PostWalletChangepasswordParams

NewPostWalletChangepasswordParamsWithTimeout creates a new PostWalletChangepasswordParams object with the ability to set a timeout on a request.

func (*PostWalletChangepasswordParams) SetContext

func (o *PostWalletChangepasswordParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet changepassword params

func (*PostWalletChangepasswordParams) SetDefaults added in v0.5.9

func (o *PostWalletChangepasswordParams) SetDefaults()

SetDefaults hydrates default values in the post wallet changepassword params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletChangepasswordParams) SetEncryptionpassword

func (o *PostWalletChangepasswordParams) SetEncryptionpassword(encryptionpassword string)

SetEncryptionpassword adds the encryptionpassword to the post wallet changepassword params

func (*PostWalletChangepasswordParams) SetHTTPClient

func (o *PostWalletChangepasswordParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet changepassword params

func (*PostWalletChangepasswordParams) SetNewpassword

func (o *PostWalletChangepasswordParams) SetNewpassword(newpassword string)

SetNewpassword adds the newpassword to the post wallet changepassword params

func (*PostWalletChangepasswordParams) SetTimeout

func (o *PostWalletChangepasswordParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WithContext

WithContext adds the context to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet changepassword params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletChangepasswordParams) WithEncryptionpassword

func (o *PostWalletChangepasswordParams) WithEncryptionpassword(encryptionpassword string) *PostWalletChangepasswordParams

WithEncryptionpassword adds the encryptionpassword to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WithNewpassword

func (o *PostWalletChangepasswordParams) WithNewpassword(newpassword string) *PostWalletChangepasswordParams

WithNewpassword adds the newpassword to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WithTimeout

WithTimeout adds the timeout to the post wallet changepassword params

func (*PostWalletChangepasswordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletChangepasswordReader

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

PostWalletChangepasswordReader is a Reader for the PostWalletChangepassword structure.

func (*PostWalletChangepasswordReader) ReadResponse

func (o *PostWalletChangepasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletInitDefault

type PostWalletInitDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletInitDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletInitDefault

func NewPostWalletInitDefault(code int) *PostWalletInitDefault

NewPostWalletInitDefault creates a PostWalletInitDefault with default headers values

func (*PostWalletInitDefault) Code

func (o *PostWalletInitDefault) Code() int

Code gets the status code for the post wallet init default response

func (*PostWalletInitDefault) Error

func (o *PostWalletInitDefault) Error() string

func (*PostWalletInitDefault) GetPayload added in v0.5.4

func (o *PostWalletInitDefault) GetPayload() *models.StandardError

type PostWalletInitOK

type PostWalletInitOK struct {
	Payload *PostWalletInitOKBody
}
PostWalletInitOK describes a response with status code 200, with default header values.

Successful Response

func NewPostWalletInitOK

func NewPostWalletInitOK() *PostWalletInitOK

NewPostWalletInitOK creates a PostWalletInitOK with default headers values

func (*PostWalletInitOK) Error

func (o *PostWalletInitOK) Error() string

func (*PostWalletInitOK) GetPayload added in v0.5.4

func (o *PostWalletInitOK) GetPayload() *PostWalletInitOKBody

type PostWalletInitOKBody

type PostWalletInitOKBody struct {

	// Wallet seed used to generate addresses that the wallet is able to spend.
	// Example: hello world hello world hello world hello world hello world hello world  hello world hello world hello world hello world hello world hello world  hello world hello world hello
	Primaryseed string `json:"primaryseed,omitempty"`
}

PostWalletInitOKBody post wallet init o k body swagger:model PostWalletInitOKBody

func (*PostWalletInitOKBody) ContextValidate added in v0.5.9

func (o *PostWalletInitOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post wallet init o k body based on context it is used

func (*PostWalletInitOKBody) MarshalBinary

func (o *PostWalletInitOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostWalletInitOKBody) UnmarshalBinary

func (o *PostWalletInitOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostWalletInitOKBody) Validate

func (o *PostWalletInitOKBody) Validate(formats strfmt.Registry) error

Validate validates this post wallet init o k body

type PostWalletInitParams

type PostWalletInitParams struct {

	/* Dictionary.

	   Name of the dictionary that should be used when encoding the seed. 'english' is the most common choice when picking a dictionary.
	*/
	Dictionary *string

	/* Encryptionpassword.

	   Password that will be used to encrypt the wallet. All subsequent calls should use this password. If left blank, the seed that gets returned will also be the encryption password.
	*/
	Encryptionpassword *string

	/* Force.

	   boolean, when set to true /wallet/init will Reset the wallet if one exists instead of returning an error. This allows API callers to reinitialize a new wallet.
	*/
	Force *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletInitParams contains all the parameters to send to the API endpoint

for the post wallet init operation.

Typically these are written to a http.Request.

func NewPostWalletInitParams

func NewPostWalletInitParams() *PostWalletInitParams

NewPostWalletInitParams creates a new PostWalletInitParams 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 NewPostWalletInitParamsWithContext

func NewPostWalletInitParamsWithContext(ctx context.Context) *PostWalletInitParams

NewPostWalletInitParamsWithContext creates a new PostWalletInitParams object with the ability to set a context for a request.

func NewPostWalletInitParamsWithHTTPClient

func NewPostWalletInitParamsWithHTTPClient(client *http.Client) *PostWalletInitParams

NewPostWalletInitParamsWithHTTPClient creates a new PostWalletInitParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletInitParamsWithTimeout

func NewPostWalletInitParamsWithTimeout(timeout time.Duration) *PostWalletInitParams

NewPostWalletInitParamsWithTimeout creates a new PostWalletInitParams object with the ability to set a timeout on a request.

func (*PostWalletInitParams) SetContext

func (o *PostWalletInitParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet init params

func (*PostWalletInitParams) SetDefaults added in v0.5.9

func (o *PostWalletInitParams) SetDefaults()

SetDefaults hydrates default values in the post wallet init params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletInitParams) SetDictionary

func (o *PostWalletInitParams) SetDictionary(dictionary *string)

SetDictionary adds the dictionary to the post wallet init params

func (*PostWalletInitParams) SetEncryptionpassword

func (o *PostWalletInitParams) SetEncryptionpassword(encryptionpassword *string)

SetEncryptionpassword adds the encryptionpassword to the post wallet init params

func (*PostWalletInitParams) SetForce

func (o *PostWalletInitParams) SetForce(force *bool)

SetForce adds the force to the post wallet init params

func (*PostWalletInitParams) SetHTTPClient

func (o *PostWalletInitParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet init params

func (*PostWalletInitParams) SetTimeout

func (o *PostWalletInitParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet init params

func (*PostWalletInitParams) WithContext

WithContext adds the context to the post wallet init params

func (*PostWalletInitParams) WithDefaults added in v0.5.9

func (o *PostWalletInitParams) WithDefaults() *PostWalletInitParams

WithDefaults hydrates default values in the post wallet init params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletInitParams) WithDictionary

func (o *PostWalletInitParams) WithDictionary(dictionary *string) *PostWalletInitParams

WithDictionary adds the dictionary to the post wallet init params

func (*PostWalletInitParams) WithEncryptionpassword

func (o *PostWalletInitParams) WithEncryptionpassword(encryptionpassword *string) *PostWalletInitParams

WithEncryptionpassword adds the encryptionpassword to the post wallet init params

func (*PostWalletInitParams) WithForce

func (o *PostWalletInitParams) WithForce(force *bool) *PostWalletInitParams

WithForce adds the force to the post wallet init params

func (*PostWalletInitParams) WithHTTPClient

func (o *PostWalletInitParams) WithHTTPClient(client *http.Client) *PostWalletInitParams

WithHTTPClient adds the HTTPClient to the post wallet init params

func (*PostWalletInitParams) WithTimeout

func (o *PostWalletInitParams) WithTimeout(timeout time.Duration) *PostWalletInitParams

WithTimeout adds the timeout to the post wallet init params

func (*PostWalletInitParams) WriteToRequest

func (o *PostWalletInitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostWalletInitReader

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

PostWalletInitReader is a Reader for the PostWalletInit structure.

func (*PostWalletInitReader) ReadResponse

func (o *PostWalletInitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletInitSeedDefault

type PostWalletInitSeedDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletInitSeedDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletInitSeedDefault

func NewPostWalletInitSeedDefault(code int) *PostWalletInitSeedDefault

NewPostWalletInitSeedDefault creates a PostWalletInitSeedDefault with default headers values

func (*PostWalletInitSeedDefault) Code

func (o *PostWalletInitSeedDefault) Code() int

Code gets the status code for the post wallet init seed default response

func (*PostWalletInitSeedDefault) Error

func (o *PostWalletInitSeedDefault) Error() string

func (*PostWalletInitSeedDefault) GetPayload added in v0.5.4

type PostWalletInitSeedNoContent

type PostWalletInitSeedNoContent struct {
}
PostWalletInitSeedNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletInitSeedNoContent

func NewPostWalletInitSeedNoContent() *PostWalletInitSeedNoContent

NewPostWalletInitSeedNoContent creates a PostWalletInitSeedNoContent with default headers values

func (*PostWalletInitSeedNoContent) Error

type PostWalletInitSeedParams

type PostWalletInitSeedParams struct {

	/* Dictionary.

	   Name of the dictionary that should be used when encoding the seed. 'english' is the most common choice when picking a dictionary.
	*/
	Dictionary *string

	/* Encryptionpassword.

	   Password that will be used to encrypt the wallet. All subsequent calls should use this password. If left blank, the seed that gets returned will also be the encryption password.
	*/
	Encryptionpassword string

	/* Force.

	   boolean, when set to true /wallet/init will Reset the wallet if one exists instead of returning an error. This allows API callers to reinitialize a new wallet.
	*/
	Force bool

	/* Seed.

	   Dictionary-encoded phrase that corresponds to the seed being used to initialize the wallet.
	*/
	Seed string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletInitSeedParams contains all the parameters to send to the API endpoint

for the post wallet init seed operation.

Typically these are written to a http.Request.

func NewPostWalletInitSeedParams

func NewPostWalletInitSeedParams() *PostWalletInitSeedParams

NewPostWalletInitSeedParams creates a new PostWalletInitSeedParams 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 NewPostWalletInitSeedParamsWithContext

func NewPostWalletInitSeedParamsWithContext(ctx context.Context) *PostWalletInitSeedParams

NewPostWalletInitSeedParamsWithContext creates a new PostWalletInitSeedParams object with the ability to set a context for a request.

func NewPostWalletInitSeedParamsWithHTTPClient

func NewPostWalletInitSeedParamsWithHTTPClient(client *http.Client) *PostWalletInitSeedParams

NewPostWalletInitSeedParamsWithHTTPClient creates a new PostWalletInitSeedParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletInitSeedParamsWithTimeout

func NewPostWalletInitSeedParamsWithTimeout(timeout time.Duration) *PostWalletInitSeedParams

NewPostWalletInitSeedParamsWithTimeout creates a new PostWalletInitSeedParams object with the ability to set a timeout on a request.

func (*PostWalletInitSeedParams) SetContext

func (o *PostWalletInitSeedParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet init seed params

func (*PostWalletInitSeedParams) SetDefaults added in v0.5.9

func (o *PostWalletInitSeedParams) SetDefaults()

SetDefaults hydrates default values in the post wallet init seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletInitSeedParams) SetDictionary

func (o *PostWalletInitSeedParams) SetDictionary(dictionary *string)

SetDictionary adds the dictionary to the post wallet init seed params

func (*PostWalletInitSeedParams) SetEncryptionpassword

func (o *PostWalletInitSeedParams) SetEncryptionpassword(encryptionpassword string)

SetEncryptionpassword adds the encryptionpassword to the post wallet init seed params

func (*PostWalletInitSeedParams) SetForce

func (o *PostWalletInitSeedParams) SetForce(force bool)

SetForce adds the force to the post wallet init seed params

func (*PostWalletInitSeedParams) SetHTTPClient

func (o *PostWalletInitSeedParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet init seed params

func (*PostWalletInitSeedParams) SetSeed

func (o *PostWalletInitSeedParams) SetSeed(seed string)

SetSeed adds the seed to the post wallet init seed params

func (*PostWalletInitSeedParams) SetTimeout

func (o *PostWalletInitSeedParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet init seed params

func (*PostWalletInitSeedParams) WithContext

WithContext adds the context to the post wallet init seed params

func (*PostWalletInitSeedParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet init seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletInitSeedParams) WithDictionary

func (o *PostWalletInitSeedParams) WithDictionary(dictionary *string) *PostWalletInitSeedParams

WithDictionary adds the dictionary to the post wallet init seed params

func (*PostWalletInitSeedParams) WithEncryptionpassword

func (o *PostWalletInitSeedParams) WithEncryptionpassword(encryptionpassword string) *PostWalletInitSeedParams

WithEncryptionpassword adds the encryptionpassword to the post wallet init seed params

func (*PostWalletInitSeedParams) WithForce

WithForce adds the force to the post wallet init seed params

func (*PostWalletInitSeedParams) WithHTTPClient

func (o *PostWalletInitSeedParams) WithHTTPClient(client *http.Client) *PostWalletInitSeedParams

WithHTTPClient adds the HTTPClient to the post wallet init seed params

func (*PostWalletInitSeedParams) WithSeed

WithSeed adds the seed to the post wallet init seed params

func (*PostWalletInitSeedParams) WithTimeout

WithTimeout adds the timeout to the post wallet init seed params

func (*PostWalletInitSeedParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletInitSeedReader

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

PostWalletInitSeedReader is a Reader for the PostWalletInitSeed structure.

func (*PostWalletInitSeedReader) ReadResponse

func (o *PostWalletInitSeedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletLockDefault

type PostWalletLockDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletLockDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletLockDefault

func NewPostWalletLockDefault(code int) *PostWalletLockDefault

NewPostWalletLockDefault creates a PostWalletLockDefault with default headers values

func (*PostWalletLockDefault) Code

func (o *PostWalletLockDefault) Code() int

Code gets the status code for the post wallet lock default response

func (*PostWalletLockDefault) Error

func (o *PostWalletLockDefault) Error() string

func (*PostWalletLockDefault) GetPayload added in v0.5.4

func (o *PostWalletLockDefault) GetPayload() *models.StandardError

type PostWalletLockNoContent

type PostWalletLockNoContent struct {
}
PostWalletLockNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletLockNoContent

func NewPostWalletLockNoContent() *PostWalletLockNoContent

NewPostWalletLockNoContent creates a PostWalletLockNoContent with default headers values

func (*PostWalletLockNoContent) Error

func (o *PostWalletLockNoContent) Error() string

type PostWalletLockParams

type PostWalletLockParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletLockParams contains all the parameters to send to the API endpoint

for the post wallet lock operation.

Typically these are written to a http.Request.

func NewPostWalletLockParams

func NewPostWalletLockParams() *PostWalletLockParams

NewPostWalletLockParams creates a new PostWalletLockParams 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 NewPostWalletLockParamsWithContext

func NewPostWalletLockParamsWithContext(ctx context.Context) *PostWalletLockParams

NewPostWalletLockParamsWithContext creates a new PostWalletLockParams object with the ability to set a context for a request.

func NewPostWalletLockParamsWithHTTPClient

func NewPostWalletLockParamsWithHTTPClient(client *http.Client) *PostWalletLockParams

NewPostWalletLockParamsWithHTTPClient creates a new PostWalletLockParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletLockParamsWithTimeout

func NewPostWalletLockParamsWithTimeout(timeout time.Duration) *PostWalletLockParams

NewPostWalletLockParamsWithTimeout creates a new PostWalletLockParams object with the ability to set a timeout on a request.

func (*PostWalletLockParams) SetContext

func (o *PostWalletLockParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet lock params

func (*PostWalletLockParams) SetDefaults added in v0.5.9

func (o *PostWalletLockParams) SetDefaults()

SetDefaults hydrates default values in the post wallet lock params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletLockParams) SetHTTPClient

func (o *PostWalletLockParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet lock params

func (*PostWalletLockParams) SetTimeout

func (o *PostWalletLockParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet lock params

func (*PostWalletLockParams) WithContext

WithContext adds the context to the post wallet lock params

func (*PostWalletLockParams) WithDefaults added in v0.5.9

func (o *PostWalletLockParams) WithDefaults() *PostWalletLockParams

WithDefaults hydrates default values in the post wallet lock params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletLockParams) WithHTTPClient

func (o *PostWalletLockParams) WithHTTPClient(client *http.Client) *PostWalletLockParams

WithHTTPClient adds the HTTPClient to the post wallet lock params

func (*PostWalletLockParams) WithTimeout

func (o *PostWalletLockParams) WithTimeout(timeout time.Duration) *PostWalletLockParams

WithTimeout adds the timeout to the post wallet lock params

func (*PostWalletLockParams) WriteToRequest

func (o *PostWalletLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostWalletLockReader

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

PostWalletLockReader is a Reader for the PostWalletLock structure.

func (*PostWalletLockReader) ReadResponse

func (o *PostWalletLockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletSeedDefault

type PostWalletSeedDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletSeedDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletSeedDefault

func NewPostWalletSeedDefault(code int) *PostWalletSeedDefault

NewPostWalletSeedDefault creates a PostWalletSeedDefault with default headers values

func (*PostWalletSeedDefault) Code

func (o *PostWalletSeedDefault) Code() int

Code gets the status code for the post wallet seed default response

func (*PostWalletSeedDefault) Error

func (o *PostWalletSeedDefault) Error() string

func (*PostWalletSeedDefault) GetPayload added in v0.5.4

func (o *PostWalletSeedDefault) GetPayload() *models.StandardError

type PostWalletSeedNoContent

type PostWalletSeedNoContent struct {
}
PostWalletSeedNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletSeedNoContent

func NewPostWalletSeedNoContent() *PostWalletSeedNoContent

NewPostWalletSeedNoContent creates a PostWalletSeedNoContent with default headers values

func (*PostWalletSeedNoContent) Error

func (o *PostWalletSeedNoContent) Error() string

type PostWalletSeedParams

type PostWalletSeedParams struct {

	/* Dictionary.

	   Name of the dictionary that should be used when encoding the seed. 'english' is the most common choice when picking a dictionary.
	*/
	Dictionary *string

	/* Encryptionpassword.

	   Key used to encrypt the new seed when it is saved to disk.
	*/
	Encryptionpassword string

	/* Seed.

	   Dictionary-encoded phrase that corresponds to the seed being added to the wallet.
	*/
	Seed *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletSeedParams contains all the parameters to send to the API endpoint

for the post wallet seed operation.

Typically these are written to a http.Request.

func NewPostWalletSeedParams

func NewPostWalletSeedParams() *PostWalletSeedParams

NewPostWalletSeedParams creates a new PostWalletSeedParams 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 NewPostWalletSeedParamsWithContext

func NewPostWalletSeedParamsWithContext(ctx context.Context) *PostWalletSeedParams

NewPostWalletSeedParamsWithContext creates a new PostWalletSeedParams object with the ability to set a context for a request.

func NewPostWalletSeedParamsWithHTTPClient

func NewPostWalletSeedParamsWithHTTPClient(client *http.Client) *PostWalletSeedParams

NewPostWalletSeedParamsWithHTTPClient creates a new PostWalletSeedParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletSeedParamsWithTimeout

func NewPostWalletSeedParamsWithTimeout(timeout time.Duration) *PostWalletSeedParams

NewPostWalletSeedParamsWithTimeout creates a new PostWalletSeedParams object with the ability to set a timeout on a request.

func (*PostWalletSeedParams) SetContext

func (o *PostWalletSeedParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet seed params

func (*PostWalletSeedParams) SetDefaults added in v0.5.9

func (o *PostWalletSeedParams) SetDefaults()

SetDefaults hydrates default values in the post wallet seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSeedParams) SetDictionary

func (o *PostWalletSeedParams) SetDictionary(dictionary *string)

SetDictionary adds the dictionary to the post wallet seed params

func (*PostWalletSeedParams) SetEncryptionpassword

func (o *PostWalletSeedParams) SetEncryptionpassword(encryptionpassword string)

SetEncryptionpassword adds the encryptionpassword to the post wallet seed params

func (*PostWalletSeedParams) SetHTTPClient

func (o *PostWalletSeedParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet seed params

func (*PostWalletSeedParams) SetSeed

func (o *PostWalletSeedParams) SetSeed(seed *string)

SetSeed adds the seed to the post wallet seed params

func (*PostWalletSeedParams) SetTimeout

func (o *PostWalletSeedParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet seed params

func (*PostWalletSeedParams) WithContext

WithContext adds the context to the post wallet seed params

func (*PostWalletSeedParams) WithDefaults added in v0.5.9

func (o *PostWalletSeedParams) WithDefaults() *PostWalletSeedParams

WithDefaults hydrates default values in the post wallet seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSeedParams) WithDictionary

func (o *PostWalletSeedParams) WithDictionary(dictionary *string) *PostWalletSeedParams

WithDictionary adds the dictionary to the post wallet seed params

func (*PostWalletSeedParams) WithEncryptionpassword

func (o *PostWalletSeedParams) WithEncryptionpassword(encryptionpassword string) *PostWalletSeedParams

WithEncryptionpassword adds the encryptionpassword to the post wallet seed params

func (*PostWalletSeedParams) WithHTTPClient

func (o *PostWalletSeedParams) WithHTTPClient(client *http.Client) *PostWalletSeedParams

WithHTTPClient adds the HTTPClient to the post wallet seed params

func (*PostWalletSeedParams) WithSeed

func (o *PostWalletSeedParams) WithSeed(seed *string) *PostWalletSeedParams

WithSeed adds the seed to the post wallet seed params

func (*PostWalletSeedParams) WithTimeout

func (o *PostWalletSeedParams) WithTimeout(timeout time.Duration) *PostWalletSeedParams

WithTimeout adds the timeout to the post wallet seed params

func (*PostWalletSeedParams) WriteToRequest

func (o *PostWalletSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostWalletSeedReader

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

PostWalletSeedReader is a Reader for the PostWalletSeed structure.

func (*PostWalletSeedReader) ReadResponse

func (o *PostWalletSeedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletSiacoinsDefault

type PostWalletSiacoinsDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletSiacoinsDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletSiacoinsDefault

func NewPostWalletSiacoinsDefault(code int) *PostWalletSiacoinsDefault

NewPostWalletSiacoinsDefault creates a PostWalletSiacoinsDefault with default headers values

func (*PostWalletSiacoinsDefault) Code

func (o *PostWalletSiacoinsDefault) Code() int

Code gets the status code for the post wallet siacoins default response

func (*PostWalletSiacoinsDefault) Error

func (o *PostWalletSiacoinsDefault) Error() string

func (*PostWalletSiacoinsDefault) GetPayload added in v0.5.4

type PostWalletSiacoinsOK

type PostWalletSiacoinsOK struct {
	Payload *PostWalletSiacoinsOKBody
}
PostWalletSiacoinsOK describes a response with status code 200, with default header values.

Successful Response

func NewPostWalletSiacoinsOK

func NewPostWalletSiacoinsOK() *PostWalletSiacoinsOK

NewPostWalletSiacoinsOK creates a PostWalletSiacoinsOK with default headers values

func (*PostWalletSiacoinsOK) Error

func (o *PostWalletSiacoinsOK) Error() string

func (*PostWalletSiacoinsOK) GetPayload added in v0.5.4

type PostWalletSiacoinsOKBody

type PostWalletSiacoinsOKBody struct {

	// Array of IDs of the transactions that were created when sending the coins. The last transaction contains the output headed to the 'destination'. Transaction IDs are 64 character long hex strings.
	// Example: ["1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"]
	Transactionids []string `json:"transactionids"`
}

PostWalletSiacoinsOKBody post wallet siacoins o k body swagger:model PostWalletSiacoinsOKBody

func (*PostWalletSiacoinsOKBody) ContextValidate added in v0.5.9

func (o *PostWalletSiacoinsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post wallet siacoins o k body based on context it is used

func (*PostWalletSiacoinsOKBody) MarshalBinary

func (o *PostWalletSiacoinsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostWalletSiacoinsOKBody) UnmarshalBinary

func (o *PostWalletSiacoinsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostWalletSiacoinsOKBody) Validate

func (o *PostWalletSiacoinsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post wallet siacoins o k body

type PostWalletSiacoinsParams

type PostWalletSiacoinsParams struct {

	/* Amount.

	   Number of hastings being sent. A hasting is the smallest unit in Sia. There are 10^24 hastings in a siacoin.
	*/
	Amount *int64

	/* Destination.

	   Address that is receiving the coins.
	*/
	Destination *string

	/* Outputs.

	   JSON array of outputs. The structure of each output is: {"unlockhash": "<destination>", "value": "<amount>"}
	*/
	Outputs *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletSiacoinsParams contains all the parameters to send to the API endpoint

for the post wallet siacoins operation.

Typically these are written to a http.Request.

func NewPostWalletSiacoinsParams

func NewPostWalletSiacoinsParams() *PostWalletSiacoinsParams

NewPostWalletSiacoinsParams creates a new PostWalletSiacoinsParams 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 NewPostWalletSiacoinsParamsWithContext

func NewPostWalletSiacoinsParamsWithContext(ctx context.Context) *PostWalletSiacoinsParams

NewPostWalletSiacoinsParamsWithContext creates a new PostWalletSiacoinsParams object with the ability to set a context for a request.

func NewPostWalletSiacoinsParamsWithHTTPClient

func NewPostWalletSiacoinsParamsWithHTTPClient(client *http.Client) *PostWalletSiacoinsParams

NewPostWalletSiacoinsParamsWithHTTPClient creates a new PostWalletSiacoinsParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletSiacoinsParamsWithTimeout

func NewPostWalletSiacoinsParamsWithTimeout(timeout time.Duration) *PostWalletSiacoinsParams

NewPostWalletSiacoinsParamsWithTimeout creates a new PostWalletSiacoinsParams object with the ability to set a timeout on a request.

func (*PostWalletSiacoinsParams) SetAmount

func (o *PostWalletSiacoinsParams) SetAmount(amount *int64)

SetAmount adds the amount to the post wallet siacoins params

func (*PostWalletSiacoinsParams) SetContext

func (o *PostWalletSiacoinsParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet siacoins params

func (*PostWalletSiacoinsParams) SetDefaults added in v0.5.9

func (o *PostWalletSiacoinsParams) SetDefaults()

SetDefaults hydrates default values in the post wallet siacoins params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiacoinsParams) SetDestination

func (o *PostWalletSiacoinsParams) SetDestination(destination *string)

SetDestination adds the destination to the post wallet siacoins params

func (*PostWalletSiacoinsParams) SetHTTPClient

func (o *PostWalletSiacoinsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet siacoins params

func (*PostWalletSiacoinsParams) SetOutputs

func (o *PostWalletSiacoinsParams) SetOutputs(outputs *string)

SetOutputs adds the outputs to the post wallet siacoins params

func (*PostWalletSiacoinsParams) SetTimeout

func (o *PostWalletSiacoinsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithAmount

WithAmount adds the amount to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithContext

WithContext adds the context to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet siacoins params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiacoinsParams) WithDestination

func (o *PostWalletSiacoinsParams) WithDestination(destination *string) *PostWalletSiacoinsParams

WithDestination adds the destination to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithHTTPClient

func (o *PostWalletSiacoinsParams) WithHTTPClient(client *http.Client) *PostWalletSiacoinsParams

WithHTTPClient adds the HTTPClient to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithOutputs

func (o *PostWalletSiacoinsParams) WithOutputs(outputs *string) *PostWalletSiacoinsParams

WithOutputs adds the outputs to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WithTimeout

WithTimeout adds the timeout to the post wallet siacoins params

func (*PostWalletSiacoinsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletSiacoinsReader

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

PostWalletSiacoinsReader is a Reader for the PostWalletSiacoins structure.

func (*PostWalletSiacoinsReader) ReadResponse

func (o *PostWalletSiacoinsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletSiafundsDefault

type PostWalletSiafundsDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletSiafundsDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletSiafundsDefault

func NewPostWalletSiafundsDefault(code int) *PostWalletSiafundsDefault

NewPostWalletSiafundsDefault creates a PostWalletSiafundsDefault with default headers values

func (*PostWalletSiafundsDefault) Code

func (o *PostWalletSiafundsDefault) Code() int

Code gets the status code for the post wallet siafunds default response

func (*PostWalletSiafundsDefault) Error

func (o *PostWalletSiafundsDefault) Error() string

func (*PostWalletSiafundsDefault) GetPayload added in v0.5.4

type PostWalletSiafundsOK

type PostWalletSiafundsOK struct {
	Payload *PostWalletSiafundsOKBody
}
PostWalletSiafundsOK describes a response with status code 200, with default header values.

Successful Response

func NewPostWalletSiafundsOK

func NewPostWalletSiafundsOK() *PostWalletSiafundsOK

NewPostWalletSiafundsOK creates a PostWalletSiafundsOK with default headers values

func (*PostWalletSiafundsOK) Error

func (o *PostWalletSiafundsOK) Error() string

func (*PostWalletSiafundsOK) GetPayload added in v0.5.4

type PostWalletSiafundsOKBody

type PostWalletSiafundsOKBody struct {

	// Array of IDs of the transactions that were created when sending the coins. The last transaction contains the output headed to the 'destination'. Transaction IDs are 64 character long hex strings.
	// Example: ["1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"]
	Transactionids []string `json:"transactionids"`
}

PostWalletSiafundsOKBody post wallet siafunds o k body swagger:model PostWalletSiafundsOKBody

func (*PostWalletSiafundsOKBody) ContextValidate added in v0.5.9

func (o *PostWalletSiafundsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post wallet siafunds o k body based on context it is used

func (*PostWalletSiafundsOKBody) MarshalBinary

func (o *PostWalletSiafundsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostWalletSiafundsOKBody) UnmarshalBinary

func (o *PostWalletSiafundsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostWalletSiafundsOKBody) Validate

func (o *PostWalletSiafundsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post wallet siafunds o k body

type PostWalletSiafundsParams

type PostWalletSiafundsParams struct {

	/* Amount.

	   Number of siafunds being sent.
	*/
	Amount *int64

	/* Destination.

	   Address that is receiving the funds.
	*/
	Destination *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletSiafundsParams contains all the parameters to send to the API endpoint

for the post wallet siafunds operation.

Typically these are written to a http.Request.

func NewPostWalletSiafundsParams

func NewPostWalletSiafundsParams() *PostWalletSiafundsParams

NewPostWalletSiafundsParams creates a new PostWalletSiafundsParams 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 NewPostWalletSiafundsParamsWithContext

func NewPostWalletSiafundsParamsWithContext(ctx context.Context) *PostWalletSiafundsParams

NewPostWalletSiafundsParamsWithContext creates a new PostWalletSiafundsParams object with the ability to set a context for a request.

func NewPostWalletSiafundsParamsWithHTTPClient

func NewPostWalletSiafundsParamsWithHTTPClient(client *http.Client) *PostWalletSiafundsParams

NewPostWalletSiafundsParamsWithHTTPClient creates a new PostWalletSiafundsParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletSiafundsParamsWithTimeout

func NewPostWalletSiafundsParamsWithTimeout(timeout time.Duration) *PostWalletSiafundsParams

NewPostWalletSiafundsParamsWithTimeout creates a new PostWalletSiafundsParams object with the ability to set a timeout on a request.

func (*PostWalletSiafundsParams) SetAmount

func (o *PostWalletSiafundsParams) SetAmount(amount *int64)

SetAmount adds the amount to the post wallet siafunds params

func (*PostWalletSiafundsParams) SetContext

func (o *PostWalletSiafundsParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet siafunds params

func (*PostWalletSiafundsParams) SetDefaults added in v0.5.9

func (o *PostWalletSiafundsParams) SetDefaults()

SetDefaults hydrates default values in the post wallet siafunds params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiafundsParams) SetDestination

func (o *PostWalletSiafundsParams) SetDestination(destination *string)

SetDestination adds the destination to the post wallet siafunds params

func (*PostWalletSiafundsParams) SetHTTPClient

func (o *PostWalletSiafundsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet siafunds params

func (*PostWalletSiafundsParams) SetTimeout

func (o *PostWalletSiafundsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet siafunds params

func (*PostWalletSiafundsParams) WithAmount

WithAmount adds the amount to the post wallet siafunds params

func (*PostWalletSiafundsParams) WithContext

WithContext adds the context to the post wallet siafunds params

func (*PostWalletSiafundsParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet siafunds params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiafundsParams) WithDestination

func (o *PostWalletSiafundsParams) WithDestination(destination *string) *PostWalletSiafundsParams

WithDestination adds the destination to the post wallet siafunds params

func (*PostWalletSiafundsParams) WithHTTPClient

func (o *PostWalletSiafundsParams) WithHTTPClient(client *http.Client) *PostWalletSiafundsParams

WithHTTPClient adds the HTTPClient to the post wallet siafunds params

func (*PostWalletSiafundsParams) WithTimeout

WithTimeout adds the timeout to the post wallet siafunds params

func (*PostWalletSiafundsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletSiafundsReader

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

PostWalletSiafundsReader is a Reader for the PostWalletSiafunds structure.

func (*PostWalletSiafundsReader) ReadResponse

func (o *PostWalletSiafundsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletSiagkeyDefault

type PostWalletSiagkeyDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletSiagkeyDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletSiagkeyDefault

func NewPostWalletSiagkeyDefault(code int) *PostWalletSiagkeyDefault

NewPostWalletSiagkeyDefault creates a PostWalletSiagkeyDefault with default headers values

func (*PostWalletSiagkeyDefault) Code

func (o *PostWalletSiagkeyDefault) Code() int

Code gets the status code for the post wallet siagkey default response

func (*PostWalletSiagkeyDefault) Error

func (o *PostWalletSiagkeyDefault) Error() string

func (*PostWalletSiagkeyDefault) GetPayload added in v0.5.4

type PostWalletSiagkeyNoContent

type PostWalletSiagkeyNoContent struct {
}
PostWalletSiagkeyNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletSiagkeyNoContent

func NewPostWalletSiagkeyNoContent() *PostWalletSiagkeyNoContent

NewPostWalletSiagkeyNoContent creates a PostWalletSiagkeyNoContent with default headers values

func (*PostWalletSiagkeyNoContent) Error

type PostWalletSiagkeyParams

type PostWalletSiagkeyParams struct {

	/* Encryptionpassword.

	   Key that is used to encrypt the siag key when it is imported to the wallet.
	*/
	Encryptionpassword string

	/* Keyfiles.

	   List of filepaths that point to the keyfiles that make up the siag key. There should be at least one keyfile per required signature. The filenames need to be commna separated (no spaces), which means filepaths that contain a comma are not allowed.
	*/
	Keyfiles string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletSiagkeyParams contains all the parameters to send to the API endpoint

for the post wallet siagkey operation.

Typically these are written to a http.Request.

func NewPostWalletSiagkeyParams

func NewPostWalletSiagkeyParams() *PostWalletSiagkeyParams

NewPostWalletSiagkeyParams creates a new PostWalletSiagkeyParams 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 NewPostWalletSiagkeyParamsWithContext

func NewPostWalletSiagkeyParamsWithContext(ctx context.Context) *PostWalletSiagkeyParams

NewPostWalletSiagkeyParamsWithContext creates a new PostWalletSiagkeyParams object with the ability to set a context for a request.

func NewPostWalletSiagkeyParamsWithHTTPClient

func NewPostWalletSiagkeyParamsWithHTTPClient(client *http.Client) *PostWalletSiagkeyParams

NewPostWalletSiagkeyParamsWithHTTPClient creates a new PostWalletSiagkeyParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletSiagkeyParamsWithTimeout

func NewPostWalletSiagkeyParamsWithTimeout(timeout time.Duration) *PostWalletSiagkeyParams

NewPostWalletSiagkeyParamsWithTimeout creates a new PostWalletSiagkeyParams object with the ability to set a timeout on a request.

func (*PostWalletSiagkeyParams) SetContext

func (o *PostWalletSiagkeyParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet siagkey params

func (*PostWalletSiagkeyParams) SetDefaults added in v0.5.9

func (o *PostWalletSiagkeyParams) SetDefaults()

SetDefaults hydrates default values in the post wallet siagkey params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiagkeyParams) SetEncryptionpassword

func (o *PostWalletSiagkeyParams) SetEncryptionpassword(encryptionpassword string)

SetEncryptionpassword adds the encryptionpassword to the post wallet siagkey params

func (*PostWalletSiagkeyParams) SetHTTPClient

func (o *PostWalletSiagkeyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet siagkey params

func (*PostWalletSiagkeyParams) SetKeyfiles

func (o *PostWalletSiagkeyParams) SetKeyfiles(keyfiles string)

SetKeyfiles adds the keyfiles to the post wallet siagkey params

func (*PostWalletSiagkeyParams) SetTimeout

func (o *PostWalletSiagkeyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WithContext

WithContext adds the context to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet siagkey params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSiagkeyParams) WithEncryptionpassword

func (o *PostWalletSiagkeyParams) WithEncryptionpassword(encryptionpassword string) *PostWalletSiagkeyParams

WithEncryptionpassword adds the encryptionpassword to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WithHTTPClient

func (o *PostWalletSiagkeyParams) WithHTTPClient(client *http.Client) *PostWalletSiagkeyParams

WithHTTPClient adds the HTTPClient to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WithKeyfiles

func (o *PostWalletSiagkeyParams) WithKeyfiles(keyfiles string) *PostWalletSiagkeyParams

WithKeyfiles adds the keyfiles to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WithTimeout

WithTimeout adds the timeout to the post wallet siagkey params

func (*PostWalletSiagkeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletSiagkeyReader

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

PostWalletSiagkeyReader is a Reader for the PostWalletSiagkey structure.

func (*PostWalletSiagkeyReader) ReadResponse

func (o *PostWalletSiagkeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletSweepSeedDefault

type PostWalletSweepSeedDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletSweepSeedDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletSweepSeedDefault

func NewPostWalletSweepSeedDefault(code int) *PostWalletSweepSeedDefault

NewPostWalletSweepSeedDefault creates a PostWalletSweepSeedDefault with default headers values

func (*PostWalletSweepSeedDefault) Code

func (o *PostWalletSweepSeedDefault) Code() int

Code gets the status code for the post wallet sweep seed default response

func (*PostWalletSweepSeedDefault) Error

func (*PostWalletSweepSeedDefault) GetPayload added in v0.5.4

type PostWalletSweepSeedOK

type PostWalletSweepSeedOK struct {
	Payload *PostWalletSweepSeedOKBody
}
PostWalletSweepSeedOK describes a response with status code 200, with default header values.

Successful Response

func NewPostWalletSweepSeedOK

func NewPostWalletSweepSeedOK() *PostWalletSweepSeedOK

NewPostWalletSweepSeedOK creates a PostWalletSweepSeedOK with default headers values

func (*PostWalletSweepSeedOK) Error

func (o *PostWalletSweepSeedOK) Error() string

func (*PostWalletSweepSeedOK) GetPayload added in v0.5.4

type PostWalletSweepSeedOKBody

type PostWalletSweepSeedOKBody struct {

	// Number of siacoins, in hastings, transferred to the wallet as a result of the sweep.
	// Example: 123456
	Coins string `json:"coins,omitempty"`

	// Number of siafunds transferred to the wallet as a result of the sweep.
	// Example: 1
	Funds string `json:"funds,omitempty"`
}

PostWalletSweepSeedOKBody post wallet sweep seed o k body swagger:model PostWalletSweepSeedOKBody

func (*PostWalletSweepSeedOKBody) ContextValidate added in v0.5.9

func (o *PostWalletSweepSeedOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post wallet sweep seed o k body based on context it is used

func (*PostWalletSweepSeedOKBody) MarshalBinary

func (o *PostWalletSweepSeedOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostWalletSweepSeedOKBody) UnmarshalBinary

func (o *PostWalletSweepSeedOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostWalletSweepSeedOKBody) Validate

func (o *PostWalletSweepSeedOKBody) Validate(formats strfmt.Registry) error

Validate validates this post wallet sweep seed o k body

type PostWalletSweepSeedParams

type PostWalletSweepSeedParams struct {

	/* Dictionary.

	   Name of the dictionary that should be used when decoding the seed. 'english' is the most common choice when picking a dictionary.
	*/
	Dictionary *string

	/* Seed.

	   Dictionary-encoded phrase that corresponds to the seed being added to the wallet.
	*/
	Seed *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletSweepSeedParams contains all the parameters to send to the API endpoint

for the post wallet sweep seed operation.

Typically these are written to a http.Request.

func NewPostWalletSweepSeedParams

func NewPostWalletSweepSeedParams() *PostWalletSweepSeedParams

NewPostWalletSweepSeedParams creates a new PostWalletSweepSeedParams 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 NewPostWalletSweepSeedParamsWithContext

func NewPostWalletSweepSeedParamsWithContext(ctx context.Context) *PostWalletSweepSeedParams

NewPostWalletSweepSeedParamsWithContext creates a new PostWalletSweepSeedParams object with the ability to set a context for a request.

func NewPostWalletSweepSeedParamsWithHTTPClient

func NewPostWalletSweepSeedParamsWithHTTPClient(client *http.Client) *PostWalletSweepSeedParams

NewPostWalletSweepSeedParamsWithHTTPClient creates a new PostWalletSweepSeedParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletSweepSeedParamsWithTimeout

func NewPostWalletSweepSeedParamsWithTimeout(timeout time.Duration) *PostWalletSweepSeedParams

NewPostWalletSweepSeedParamsWithTimeout creates a new PostWalletSweepSeedParams object with the ability to set a timeout on a request.

func (*PostWalletSweepSeedParams) SetContext

func (o *PostWalletSweepSeedParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) SetDefaults added in v0.5.9

func (o *PostWalletSweepSeedParams) SetDefaults()

SetDefaults hydrates default values in the post wallet sweep seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSweepSeedParams) SetDictionary

func (o *PostWalletSweepSeedParams) SetDictionary(dictionary *string)

SetDictionary adds the dictionary to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) SetHTTPClient

func (o *PostWalletSweepSeedParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) SetSeed

func (o *PostWalletSweepSeedParams) SetSeed(seed *string)

SetSeed adds the seed to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) SetTimeout

func (o *PostWalletSweepSeedParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WithContext

WithContext adds the context to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet sweep seed params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletSweepSeedParams) WithDictionary

func (o *PostWalletSweepSeedParams) WithDictionary(dictionary *string) *PostWalletSweepSeedParams

WithDictionary adds the dictionary to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WithHTTPClient

func (o *PostWalletSweepSeedParams) WithHTTPClient(client *http.Client) *PostWalletSweepSeedParams

WithHTTPClient adds the HTTPClient to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WithSeed

WithSeed adds the seed to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WithTimeout

WithTimeout adds the timeout to the post wallet sweep seed params

func (*PostWalletSweepSeedParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletSweepSeedReader

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

PostWalletSweepSeedReader is a Reader for the PostWalletSweepSeed structure.

func (*PostWalletSweepSeedReader) ReadResponse

func (o *PostWalletSweepSeedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostWalletUnlockDefault

type PostWalletUnlockDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
PostWalletUnlockDefault describes a response with status code -1, with default header values.

Error Response

func NewPostWalletUnlockDefault

func NewPostWalletUnlockDefault(code int) *PostWalletUnlockDefault

NewPostWalletUnlockDefault creates a PostWalletUnlockDefault with default headers values

func (*PostWalletUnlockDefault) Code

func (o *PostWalletUnlockDefault) Code() int

Code gets the status code for the post wallet unlock default response

func (*PostWalletUnlockDefault) Error

func (o *PostWalletUnlockDefault) Error() string

func (*PostWalletUnlockDefault) GetPayload added in v0.5.4

func (o *PostWalletUnlockDefault) GetPayload() *models.StandardError

type PostWalletUnlockNoContent

type PostWalletUnlockNoContent struct {
}
PostWalletUnlockNoContent describes a response with status code 204, with default header values.

Successful Response

func NewPostWalletUnlockNoContent

func NewPostWalletUnlockNoContent() *PostWalletUnlockNoContent

NewPostWalletUnlockNoContent creates a PostWalletUnlockNoContent with default headers values

func (*PostWalletUnlockNoContent) Error

func (o *PostWalletUnlockNoContent) Error() string

type PostWalletUnlockParams

type PostWalletUnlockParams struct {

	/* Encryptionpassword.

	   Password that gets used to decrypt the file. Most frequently, the encryption password is the same as the primary wallet seed.
	*/
	Encryptionpassword *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostWalletUnlockParams contains all the parameters to send to the API endpoint

for the post wallet unlock operation.

Typically these are written to a http.Request.

func NewPostWalletUnlockParams

func NewPostWalletUnlockParams() *PostWalletUnlockParams

NewPostWalletUnlockParams creates a new PostWalletUnlockParams 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 NewPostWalletUnlockParamsWithContext

func NewPostWalletUnlockParamsWithContext(ctx context.Context) *PostWalletUnlockParams

NewPostWalletUnlockParamsWithContext creates a new PostWalletUnlockParams object with the ability to set a context for a request.

func NewPostWalletUnlockParamsWithHTTPClient

func NewPostWalletUnlockParamsWithHTTPClient(client *http.Client) *PostWalletUnlockParams

NewPostWalletUnlockParamsWithHTTPClient creates a new PostWalletUnlockParams object with the ability to set a custom HTTPClient for a request.

func NewPostWalletUnlockParamsWithTimeout

func NewPostWalletUnlockParamsWithTimeout(timeout time.Duration) *PostWalletUnlockParams

NewPostWalletUnlockParamsWithTimeout creates a new PostWalletUnlockParams object with the ability to set a timeout on a request.

func (*PostWalletUnlockParams) SetContext

func (o *PostWalletUnlockParams) SetContext(ctx context.Context)

SetContext adds the context to the post wallet unlock params

func (*PostWalletUnlockParams) SetDefaults added in v0.5.9

func (o *PostWalletUnlockParams) SetDefaults()

SetDefaults hydrates default values in the post wallet unlock params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletUnlockParams) SetEncryptionpassword

func (o *PostWalletUnlockParams) SetEncryptionpassword(encryptionpassword *string)

SetEncryptionpassword adds the encryptionpassword to the post wallet unlock params

func (*PostWalletUnlockParams) SetHTTPClient

func (o *PostWalletUnlockParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post wallet unlock params

func (*PostWalletUnlockParams) SetTimeout

func (o *PostWalletUnlockParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post wallet unlock params

func (*PostWalletUnlockParams) WithContext

WithContext adds the context to the post wallet unlock params

func (*PostWalletUnlockParams) WithDefaults added in v0.5.9

WithDefaults hydrates default values in the post wallet unlock params (not the query body).

All values with no default are reset to their zero value.

func (*PostWalletUnlockParams) WithEncryptionpassword

func (o *PostWalletUnlockParams) WithEncryptionpassword(encryptionpassword *string) *PostWalletUnlockParams

WithEncryptionpassword adds the encryptionpassword to the post wallet unlock params

func (*PostWalletUnlockParams) WithHTTPClient

func (o *PostWalletUnlockParams) WithHTTPClient(client *http.Client) *PostWalletUnlockParams

WithHTTPClient adds the HTTPClient to the post wallet unlock params

func (*PostWalletUnlockParams) WithTimeout

WithTimeout adds the timeout to the post wallet unlock params

func (*PostWalletUnlockParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWalletUnlockReader

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

PostWalletUnlockReader is a Reader for the PostWalletUnlock structure.

func (*PostWalletUnlockReader) ReadResponse

func (o *PostWalletUnlockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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