Documentation
¶
Index ¶
- type Client
- func (a *Client) GetWallet(params *GetWalletParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletOK, error)
- func (a *Client) GetWalletAddress(params *GetWalletAddressParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressOK, error)
- func (a *Client) GetWalletAddresses(params *GetWalletAddressesParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletAddressesOK, error)
- func (a *Client) GetWalletBackup(params *GetWalletBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletBackupNoContent, error)
- func (a *Client) GetWalletSeeds(params *GetWalletSeedsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletSeedsOK, error)
- func (a *Client) GetWalletTransactionID(params *GetWalletTransactionIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionIDOK, error)
- func (a *Client) GetWalletTransactions(params *GetWalletTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsOK, error)
- func (a *Client) GetWalletTransactionsAddr(params *GetWalletTransactionsAddrParams, authInfo runtime.ClientAuthInfoWriter) (*GetWalletTransactionsAddrOK, error)
- func (a *Client) GetWalletVerifyAddressAddr(params *GetWalletVerifyAddressAddrParams, ...) (*GetWalletVerifyAddressAddrOK, error)
- func (a *Client) PostWallet033x(params *PostWallet033xParams, authInfo runtime.ClientAuthInfoWriter) (*PostWallet033xNoContent, error)
- func (a *Client) PostWalletChangepassword(params *PostWalletChangepasswordParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletChangepasswordNoContent, error)
- func (a *Client) PostWalletInit(params *PostWalletInitParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitOK, error)
- func (a *Client) PostWalletInitSeed(params *PostWalletInitSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitSeedNoContent, error)
- func (a *Client) PostWalletLock(params *PostWalletLockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletLockNoContent, error)
- func (a *Client) PostWalletSeed(params *PostWalletSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSeedNoContent, error)
- func (a *Client) PostWalletSiacoins(params *PostWalletSiacoinsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiacoinsOK, error)
- func (a *Client) PostWalletSiafunds(params *PostWalletSiafundsParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiafundsOK, error)
- func (a *Client) PostWalletSiagkey(params *PostWalletSiagkeyParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSiagkeyNoContent, error)
- func (a *Client) PostWalletSweepSeed(params *PostWalletSweepSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletSweepSeedOK, error)
- func (a *Client) PostWalletUnlock(params *PostWalletUnlockParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletUnlockNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetWalletAddressDefault
- type GetWalletAddressOK
- type GetWalletAddressOKBody
- func (o *GetWalletAddressOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletAddressOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletAddressOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletAddressOKBody) Validate(formats strfmt.Registry) error
- type GetWalletAddressParams
- func NewGetWalletAddressParams() *GetWalletAddressParams
- func NewGetWalletAddressParamsWithContext(ctx context.Context) *GetWalletAddressParams
- func NewGetWalletAddressParamsWithHTTPClient(client *http.Client) *GetWalletAddressParams
- func NewGetWalletAddressParamsWithTimeout(timeout time.Duration) *GetWalletAddressParams
- func (o *GetWalletAddressParams) SetContext(ctx context.Context)
- func (o *GetWalletAddressParams) SetDefaults()
- func (o *GetWalletAddressParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletAddressParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletAddressParams) WithContext(ctx context.Context) *GetWalletAddressParams
- func (o *GetWalletAddressParams) WithDefaults() *GetWalletAddressParams
- func (o *GetWalletAddressParams) WithHTTPClient(client *http.Client) *GetWalletAddressParams
- func (o *GetWalletAddressParams) WithTimeout(timeout time.Duration) *GetWalletAddressParams
- func (o *GetWalletAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletAddressReader
- type GetWalletAddressesDefault
- type GetWalletAddressesOK
- type GetWalletAddressesOKBody
- func (o *GetWalletAddressesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletAddressesOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletAddressesOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletAddressesOKBody) Validate(formats strfmt.Registry) error
- type GetWalletAddressesParams
- func NewGetWalletAddressesParams() *GetWalletAddressesParams
- func NewGetWalletAddressesParamsWithContext(ctx context.Context) *GetWalletAddressesParams
- func NewGetWalletAddressesParamsWithHTTPClient(client *http.Client) *GetWalletAddressesParams
- func NewGetWalletAddressesParamsWithTimeout(timeout time.Duration) *GetWalletAddressesParams
- func (o *GetWalletAddressesParams) SetContext(ctx context.Context)
- func (o *GetWalletAddressesParams) SetDefaults()
- func (o *GetWalletAddressesParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletAddressesParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletAddressesParams) WithContext(ctx context.Context) *GetWalletAddressesParams
- func (o *GetWalletAddressesParams) WithDefaults() *GetWalletAddressesParams
- func (o *GetWalletAddressesParams) WithHTTPClient(client *http.Client) *GetWalletAddressesParams
- func (o *GetWalletAddressesParams) WithTimeout(timeout time.Duration) *GetWalletAddressesParams
- func (o *GetWalletAddressesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletAddressesReader
- type GetWalletBackupDefault
- type GetWalletBackupNoContent
- type GetWalletBackupParams
- func NewGetWalletBackupParams() *GetWalletBackupParams
- func NewGetWalletBackupParamsWithContext(ctx context.Context) *GetWalletBackupParams
- func NewGetWalletBackupParamsWithHTTPClient(client *http.Client) *GetWalletBackupParams
- func NewGetWalletBackupParamsWithTimeout(timeout time.Duration) *GetWalletBackupParams
- func (o *GetWalletBackupParams) SetContext(ctx context.Context)
- func (o *GetWalletBackupParams) SetDefaults()
- func (o *GetWalletBackupParams) SetDestination(destination *string)
- func (o *GetWalletBackupParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletBackupParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletBackupParams) WithContext(ctx context.Context) *GetWalletBackupParams
- func (o *GetWalletBackupParams) WithDefaults() *GetWalletBackupParams
- func (o *GetWalletBackupParams) WithDestination(destination *string) *GetWalletBackupParams
- func (o *GetWalletBackupParams) WithHTTPClient(client *http.Client) *GetWalletBackupParams
- func (o *GetWalletBackupParams) WithTimeout(timeout time.Duration) *GetWalletBackupParams
- func (o *GetWalletBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletBackupReader
- type GetWalletDefault
- type GetWalletOK
- type GetWalletOKBody
- type GetWalletParams
- func (o *GetWalletParams) SetContext(ctx context.Context)
- func (o *GetWalletParams) SetDefaults()
- func (o *GetWalletParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletParams) WithContext(ctx context.Context) *GetWalletParams
- func (o *GetWalletParams) WithDefaults() *GetWalletParams
- func (o *GetWalletParams) WithHTTPClient(client *http.Client) *GetWalletParams
- func (o *GetWalletParams) WithTimeout(timeout time.Duration) *GetWalletParams
- func (o *GetWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletReader
- type GetWalletSeedsDefault
- type GetWalletSeedsOK
- type GetWalletSeedsOKBody
- type GetWalletSeedsParams
- func NewGetWalletSeedsParams() *GetWalletSeedsParams
- func NewGetWalletSeedsParamsWithContext(ctx context.Context) *GetWalletSeedsParams
- func NewGetWalletSeedsParamsWithHTTPClient(client *http.Client) *GetWalletSeedsParams
- func NewGetWalletSeedsParamsWithTimeout(timeout time.Duration) *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) SetContext(ctx context.Context)
- func (o *GetWalletSeedsParams) SetDefaults()
- func (o *GetWalletSeedsParams) SetDictionary(dictionary *string)
- func (o *GetWalletSeedsParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletSeedsParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletSeedsParams) WithContext(ctx context.Context) *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) WithDefaults() *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) WithDictionary(dictionary *string) *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) WithHTTPClient(client *http.Client) *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) WithTimeout(timeout time.Duration) *GetWalletSeedsParams
- func (o *GetWalletSeedsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletSeedsReader
- type GetWalletTransactionIDDefault
- type GetWalletTransactionIDOK
- type GetWalletTransactionIDOKBody
- func (o *GetWalletTransactionIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletTransactionIDOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletTransactionIDOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletTransactionIDOKBody) Validate(formats strfmt.Registry) error
- type GetWalletTransactionIDParams
- func NewGetWalletTransactionIDParams() *GetWalletTransactionIDParams
- func NewGetWalletTransactionIDParamsWithContext(ctx context.Context) *GetWalletTransactionIDParams
- func NewGetWalletTransactionIDParamsWithHTTPClient(client *http.Client) *GetWalletTransactionIDParams
- func NewGetWalletTransactionIDParamsWithTimeout(timeout time.Duration) *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) SetContext(ctx context.Context)
- func (o *GetWalletTransactionIDParams) SetDefaults()
- func (o *GetWalletTransactionIDParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletTransactionIDParams) SetID(id string)
- func (o *GetWalletTransactionIDParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletTransactionIDParams) WithContext(ctx context.Context) *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) WithDefaults() *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) WithHTTPClient(client *http.Client) *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) WithID(id string) *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) WithTimeout(timeout time.Duration) *GetWalletTransactionIDParams
- func (o *GetWalletTransactionIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletTransactionIDReader
- type GetWalletTransactionsAddrDefault
- type GetWalletTransactionsAddrOK
- type GetWalletTransactionsAddrOKBody
- func (o *GetWalletTransactionsAddrOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletTransactionsAddrOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletTransactionsAddrOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletTransactionsAddrOKBody) Validate(formats strfmt.Registry) error
- type GetWalletTransactionsAddrParams
- func NewGetWalletTransactionsAddrParams() *GetWalletTransactionsAddrParams
- func NewGetWalletTransactionsAddrParamsWithContext(ctx context.Context) *GetWalletTransactionsAddrParams
- func NewGetWalletTransactionsAddrParamsWithHTTPClient(client *http.Client) *GetWalletTransactionsAddrParams
- func NewGetWalletTransactionsAddrParamsWithTimeout(timeout time.Duration) *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) SetAddr(addr string)
- func (o *GetWalletTransactionsAddrParams) SetContext(ctx context.Context)
- func (o *GetWalletTransactionsAddrParams) SetDefaults()
- func (o *GetWalletTransactionsAddrParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletTransactionsAddrParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletTransactionsAddrParams) WithAddr(addr string) *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) WithContext(ctx context.Context) *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) WithDefaults() *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) WithHTTPClient(client *http.Client) *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) WithTimeout(timeout time.Duration) *GetWalletTransactionsAddrParams
- func (o *GetWalletTransactionsAddrParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletTransactionsAddrReader
- type GetWalletTransactionsDefault
- type GetWalletTransactionsOK
- type GetWalletTransactionsOKBody
- func (o *GetWalletTransactionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletTransactionsOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletTransactionsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletTransactionsOKBody) Validate(formats strfmt.Registry) error
- type GetWalletTransactionsParams
- func NewGetWalletTransactionsParams() *GetWalletTransactionsParams
- func NewGetWalletTransactionsParamsWithContext(ctx context.Context) *GetWalletTransactionsParams
- func NewGetWalletTransactionsParamsWithHTTPClient(client *http.Client) *GetWalletTransactionsParams
- func NewGetWalletTransactionsParamsWithTimeout(timeout time.Duration) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) SetContext(ctx context.Context)
- func (o *GetWalletTransactionsParams) SetDefaults()
- func (o *GetWalletTransactionsParams) SetEndheight(endheight *string)
- func (o *GetWalletTransactionsParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletTransactionsParams) SetStartheight(startheight *string)
- func (o *GetWalletTransactionsParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletTransactionsParams) WithContext(ctx context.Context) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WithDefaults() *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WithEndheight(endheight *string) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WithHTTPClient(client *http.Client) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WithStartheight(startheight *string) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WithTimeout(timeout time.Duration) *GetWalletTransactionsParams
- func (o *GetWalletTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletTransactionsReader
- type GetWalletVerifyAddressAddrDefault
- type GetWalletVerifyAddressAddrOK
- type GetWalletVerifyAddressAddrOKBody
- func (o *GetWalletVerifyAddressAddrOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetWalletVerifyAddressAddrOKBody) MarshalBinary() ([]byte, error)
- func (o *GetWalletVerifyAddressAddrOKBody) UnmarshalBinary(b []byte) error
- func (o *GetWalletVerifyAddressAddrOKBody) Validate(formats strfmt.Registry) error
- type GetWalletVerifyAddressAddrParams
- func NewGetWalletVerifyAddressAddrParams() *GetWalletVerifyAddressAddrParams
- func NewGetWalletVerifyAddressAddrParamsWithContext(ctx context.Context) *GetWalletVerifyAddressAddrParams
- func NewGetWalletVerifyAddressAddrParamsWithHTTPClient(client *http.Client) *GetWalletVerifyAddressAddrParams
- func NewGetWalletVerifyAddressAddrParamsWithTimeout(timeout time.Duration) *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) SetAddr(addr string)
- func (o *GetWalletVerifyAddressAddrParams) SetContext(ctx context.Context)
- func (o *GetWalletVerifyAddressAddrParams) SetDefaults()
- func (o *GetWalletVerifyAddressAddrParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletVerifyAddressAddrParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletVerifyAddressAddrParams) WithAddr(addr string) *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) WithContext(ctx context.Context) *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) WithDefaults() *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) WithHTTPClient(client *http.Client) *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) WithTimeout(timeout time.Duration) *GetWalletVerifyAddressAddrParams
- func (o *GetWalletVerifyAddressAddrParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletVerifyAddressAddrReader
- type PostWallet033xDefault
- type PostWallet033xNoContent
- type PostWallet033xParams
- func NewPostWallet033xParams() *PostWallet033xParams
- func NewPostWallet033xParamsWithContext(ctx context.Context) *PostWallet033xParams
- func NewPostWallet033xParamsWithHTTPClient(client *http.Client) *PostWallet033xParams
- func NewPostWallet033xParamsWithTimeout(timeout time.Duration) *PostWallet033xParams
- func (o *PostWallet033xParams) SetContext(ctx context.Context)
- func (o *PostWallet033xParams) SetDefaults()
- func (o *PostWallet033xParams) SetEncryptionpassword(encryptionpassword *string)
- func (o *PostWallet033xParams) SetHTTPClient(client *http.Client)
- func (o *PostWallet033xParams) SetSource(source *string)
- func (o *PostWallet033xParams) SetTimeout(timeout time.Duration)
- func (o *PostWallet033xParams) WithContext(ctx context.Context) *PostWallet033xParams
- func (o *PostWallet033xParams) WithDefaults() *PostWallet033xParams
- func (o *PostWallet033xParams) WithEncryptionpassword(encryptionpassword *string) *PostWallet033xParams
- func (o *PostWallet033xParams) WithHTTPClient(client *http.Client) *PostWallet033xParams
- func (o *PostWallet033xParams) WithSource(source *string) *PostWallet033xParams
- func (o *PostWallet033xParams) WithTimeout(timeout time.Duration) *PostWallet033xParams
- func (o *PostWallet033xParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWallet033xReader
- type PostWalletChangepasswordDefault
- type PostWalletChangepasswordNoContent
- type PostWalletChangepasswordParams
- func NewPostWalletChangepasswordParams() *PostWalletChangepasswordParams
- func NewPostWalletChangepasswordParamsWithContext(ctx context.Context) *PostWalletChangepasswordParams
- func NewPostWalletChangepasswordParamsWithHTTPClient(client *http.Client) *PostWalletChangepasswordParams
- func NewPostWalletChangepasswordParamsWithTimeout(timeout time.Duration) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) SetContext(ctx context.Context)
- func (o *PostWalletChangepasswordParams) SetDefaults()
- func (o *PostWalletChangepasswordParams) SetEncryptionpassword(encryptionpassword string)
- func (o *PostWalletChangepasswordParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletChangepasswordParams) SetNewpassword(newpassword string)
- func (o *PostWalletChangepasswordParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletChangepasswordParams) WithContext(ctx context.Context) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WithDefaults() *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WithEncryptionpassword(encryptionpassword string) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WithHTTPClient(client *http.Client) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WithNewpassword(newpassword string) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WithTimeout(timeout time.Duration) *PostWalletChangepasswordParams
- func (o *PostWalletChangepasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletChangepasswordReader
- type PostWalletInitDefault
- type PostWalletInitOK
- type PostWalletInitOKBody
- type PostWalletInitParams
- func NewPostWalletInitParams() *PostWalletInitParams
- func NewPostWalletInitParamsWithContext(ctx context.Context) *PostWalletInitParams
- func NewPostWalletInitParamsWithHTTPClient(client *http.Client) *PostWalletInitParams
- func NewPostWalletInitParamsWithTimeout(timeout time.Duration) *PostWalletInitParams
- func (o *PostWalletInitParams) SetContext(ctx context.Context)
- func (o *PostWalletInitParams) SetDefaults()
- func (o *PostWalletInitParams) SetDictionary(dictionary *string)
- func (o *PostWalletInitParams) SetEncryptionpassword(encryptionpassword *string)
- func (o *PostWalletInitParams) SetForce(force *bool)
- func (o *PostWalletInitParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletInitParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletInitParams) WithContext(ctx context.Context) *PostWalletInitParams
- func (o *PostWalletInitParams) WithDefaults() *PostWalletInitParams
- func (o *PostWalletInitParams) WithDictionary(dictionary *string) *PostWalletInitParams
- func (o *PostWalletInitParams) WithEncryptionpassword(encryptionpassword *string) *PostWalletInitParams
- func (o *PostWalletInitParams) WithForce(force *bool) *PostWalletInitParams
- func (o *PostWalletInitParams) WithHTTPClient(client *http.Client) *PostWalletInitParams
- func (o *PostWalletInitParams) WithTimeout(timeout time.Duration) *PostWalletInitParams
- func (o *PostWalletInitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletInitReader
- type PostWalletInitSeedDefault
- type PostWalletInitSeedNoContent
- type PostWalletInitSeedParams
- func NewPostWalletInitSeedParams() *PostWalletInitSeedParams
- func NewPostWalletInitSeedParamsWithContext(ctx context.Context) *PostWalletInitSeedParams
- func NewPostWalletInitSeedParamsWithHTTPClient(client *http.Client) *PostWalletInitSeedParams
- func NewPostWalletInitSeedParamsWithTimeout(timeout time.Duration) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) SetContext(ctx context.Context)
- func (o *PostWalletInitSeedParams) SetDefaults()
- func (o *PostWalletInitSeedParams) SetDictionary(dictionary *string)
- func (o *PostWalletInitSeedParams) SetEncryptionpassword(encryptionpassword string)
- func (o *PostWalletInitSeedParams) SetForce(force bool)
- func (o *PostWalletInitSeedParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletInitSeedParams) SetSeed(seed string)
- func (o *PostWalletInitSeedParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletInitSeedParams) WithContext(ctx context.Context) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithDefaults() *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithDictionary(dictionary *string) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithEncryptionpassword(encryptionpassword string) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithForce(force bool) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithHTTPClient(client *http.Client) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithSeed(seed string) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WithTimeout(timeout time.Duration) *PostWalletInitSeedParams
- func (o *PostWalletInitSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletInitSeedReader
- type PostWalletLockDefault
- type PostWalletLockNoContent
- type PostWalletLockParams
- func NewPostWalletLockParams() *PostWalletLockParams
- func NewPostWalletLockParamsWithContext(ctx context.Context) *PostWalletLockParams
- func NewPostWalletLockParamsWithHTTPClient(client *http.Client) *PostWalletLockParams
- func NewPostWalletLockParamsWithTimeout(timeout time.Duration) *PostWalletLockParams
- func (o *PostWalletLockParams) SetContext(ctx context.Context)
- func (o *PostWalletLockParams) SetDefaults()
- func (o *PostWalletLockParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletLockParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletLockParams) WithContext(ctx context.Context) *PostWalletLockParams
- func (o *PostWalletLockParams) WithDefaults() *PostWalletLockParams
- func (o *PostWalletLockParams) WithHTTPClient(client *http.Client) *PostWalletLockParams
- func (o *PostWalletLockParams) WithTimeout(timeout time.Duration) *PostWalletLockParams
- func (o *PostWalletLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletLockReader
- type PostWalletSeedDefault
- type PostWalletSeedNoContent
- type PostWalletSeedParams
- func NewPostWalletSeedParams() *PostWalletSeedParams
- func NewPostWalletSeedParamsWithContext(ctx context.Context) *PostWalletSeedParams
- func NewPostWalletSeedParamsWithHTTPClient(client *http.Client) *PostWalletSeedParams
- func NewPostWalletSeedParamsWithTimeout(timeout time.Duration) *PostWalletSeedParams
- func (o *PostWalletSeedParams) SetContext(ctx context.Context)
- func (o *PostWalletSeedParams) SetDefaults()
- func (o *PostWalletSeedParams) SetDictionary(dictionary *string)
- func (o *PostWalletSeedParams) SetEncryptionpassword(encryptionpassword string)
- func (o *PostWalletSeedParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletSeedParams) SetSeed(seed *string)
- func (o *PostWalletSeedParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletSeedParams) WithContext(ctx context.Context) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithDefaults() *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithDictionary(dictionary *string) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithEncryptionpassword(encryptionpassword string) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithHTTPClient(client *http.Client) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithSeed(seed *string) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WithTimeout(timeout time.Duration) *PostWalletSeedParams
- func (o *PostWalletSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletSeedReader
- type PostWalletSiacoinsDefault
- type PostWalletSiacoinsOK
- type PostWalletSiacoinsOKBody
- func (o *PostWalletSiacoinsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostWalletSiacoinsOKBody) MarshalBinary() ([]byte, error)
- func (o *PostWalletSiacoinsOKBody) UnmarshalBinary(b []byte) error
- func (o *PostWalletSiacoinsOKBody) Validate(formats strfmt.Registry) error
- type PostWalletSiacoinsParams
- func NewPostWalletSiacoinsParams() *PostWalletSiacoinsParams
- func NewPostWalletSiacoinsParamsWithContext(ctx context.Context) *PostWalletSiacoinsParams
- func NewPostWalletSiacoinsParamsWithHTTPClient(client *http.Client) *PostWalletSiacoinsParams
- func NewPostWalletSiacoinsParamsWithTimeout(timeout time.Duration) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) SetAmount(amount *int64)
- func (o *PostWalletSiacoinsParams) SetContext(ctx context.Context)
- func (o *PostWalletSiacoinsParams) SetDefaults()
- func (o *PostWalletSiacoinsParams) SetDestination(destination *string)
- func (o *PostWalletSiacoinsParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletSiacoinsParams) SetOutputs(outputs *string)
- func (o *PostWalletSiacoinsParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletSiacoinsParams) WithAmount(amount *int64) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithContext(ctx context.Context) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithDefaults() *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithDestination(destination *string) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithHTTPClient(client *http.Client) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithOutputs(outputs *string) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WithTimeout(timeout time.Duration) *PostWalletSiacoinsParams
- func (o *PostWalletSiacoinsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletSiacoinsReader
- type PostWalletSiafundsDefault
- type PostWalletSiafundsOK
- type PostWalletSiafundsOKBody
- func (o *PostWalletSiafundsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostWalletSiafundsOKBody) MarshalBinary() ([]byte, error)
- func (o *PostWalletSiafundsOKBody) UnmarshalBinary(b []byte) error
- func (o *PostWalletSiafundsOKBody) Validate(formats strfmt.Registry) error
- type PostWalletSiafundsParams
- func NewPostWalletSiafundsParams() *PostWalletSiafundsParams
- func NewPostWalletSiafundsParamsWithContext(ctx context.Context) *PostWalletSiafundsParams
- func NewPostWalletSiafundsParamsWithHTTPClient(client *http.Client) *PostWalletSiafundsParams
- func NewPostWalletSiafundsParamsWithTimeout(timeout time.Duration) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) SetAmount(amount *int64)
- func (o *PostWalletSiafundsParams) SetContext(ctx context.Context)
- func (o *PostWalletSiafundsParams) SetDefaults()
- func (o *PostWalletSiafundsParams) SetDestination(destination *string)
- func (o *PostWalletSiafundsParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletSiafundsParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletSiafundsParams) WithAmount(amount *int64) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WithContext(ctx context.Context) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WithDefaults() *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WithDestination(destination *string) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WithHTTPClient(client *http.Client) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WithTimeout(timeout time.Duration) *PostWalletSiafundsParams
- func (o *PostWalletSiafundsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletSiafundsReader
- type PostWalletSiagkeyDefault
- type PostWalletSiagkeyNoContent
- type PostWalletSiagkeyParams
- func NewPostWalletSiagkeyParams() *PostWalletSiagkeyParams
- func NewPostWalletSiagkeyParamsWithContext(ctx context.Context) *PostWalletSiagkeyParams
- func NewPostWalletSiagkeyParamsWithHTTPClient(client *http.Client) *PostWalletSiagkeyParams
- func NewPostWalletSiagkeyParamsWithTimeout(timeout time.Duration) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) SetContext(ctx context.Context)
- func (o *PostWalletSiagkeyParams) SetDefaults()
- func (o *PostWalletSiagkeyParams) SetEncryptionpassword(encryptionpassword string)
- func (o *PostWalletSiagkeyParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletSiagkeyParams) SetKeyfiles(keyfiles string)
- func (o *PostWalletSiagkeyParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletSiagkeyParams) WithContext(ctx context.Context) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WithDefaults() *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WithEncryptionpassword(encryptionpassword string) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WithHTTPClient(client *http.Client) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WithKeyfiles(keyfiles string) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WithTimeout(timeout time.Duration) *PostWalletSiagkeyParams
- func (o *PostWalletSiagkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletSiagkeyReader
- type PostWalletSweepSeedDefault
- type PostWalletSweepSeedOK
- type PostWalletSweepSeedOKBody
- func (o *PostWalletSweepSeedOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostWalletSweepSeedOKBody) MarshalBinary() ([]byte, error)
- func (o *PostWalletSweepSeedOKBody) UnmarshalBinary(b []byte) error
- func (o *PostWalletSweepSeedOKBody) Validate(formats strfmt.Registry) error
- type PostWalletSweepSeedParams
- func NewPostWalletSweepSeedParams() *PostWalletSweepSeedParams
- func NewPostWalletSweepSeedParamsWithContext(ctx context.Context) *PostWalletSweepSeedParams
- func NewPostWalletSweepSeedParamsWithHTTPClient(client *http.Client) *PostWalletSweepSeedParams
- func NewPostWalletSweepSeedParamsWithTimeout(timeout time.Duration) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) SetContext(ctx context.Context)
- func (o *PostWalletSweepSeedParams) SetDefaults()
- func (o *PostWalletSweepSeedParams) SetDictionary(dictionary *string)
- func (o *PostWalletSweepSeedParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletSweepSeedParams) SetSeed(seed *string)
- func (o *PostWalletSweepSeedParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletSweepSeedParams) WithContext(ctx context.Context) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WithDefaults() *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WithDictionary(dictionary *string) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WithHTTPClient(client *http.Client) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WithSeed(seed *string) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WithTimeout(timeout time.Duration) *PostWalletSweepSeedParams
- func (o *PostWalletSweepSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletSweepSeedReader
- type PostWalletUnlockDefault
- type PostWalletUnlockNoContent
- type PostWalletUnlockParams
- func NewPostWalletUnlockParams() *PostWalletUnlockParams
- func NewPostWalletUnlockParamsWithContext(ctx context.Context) *PostWalletUnlockParams
- func NewPostWalletUnlockParamsWithHTTPClient(client *http.Client) *PostWalletUnlockParams
- func NewPostWalletUnlockParamsWithTimeout(timeout time.Duration) *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) SetContext(ctx context.Context)
- func (o *PostWalletUnlockParams) SetDefaults()
- func (o *PostWalletUnlockParams) SetEncryptionpassword(encryptionpassword *string)
- func (o *PostWalletUnlockParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletUnlockParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletUnlockParams) WithContext(ctx context.Context) *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) WithDefaults() *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) WithEncryptionpassword(encryptionpassword *string) *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) WithHTTPClient(client *http.Client) *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) WithTimeout(timeout time.Duration) *PostWalletUnlockParams
- func (o *PostWalletUnlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletUnlockReader
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 ¶
func (a *Client) PostWalletChangepassword(params *PostWalletChangepasswordParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletChangepasswordNoContent, error)
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 ¶
func (a *Client) PostWalletInitSeed(params *PostWalletInitSeedParams, authInfo runtime.ClientAuthInfoWriter) (*PostWalletInitSeedNoContent, error)
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
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 ¶
func (o *GetWalletAddressParams) WithContext(ctx context.Context) *GetWalletAddressParams
WithContext adds the context to the get wallet address params
func (*GetWalletAddressParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletAddressParams) WithDefaults() *GetWalletAddressParams
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 ¶
func (o *GetWalletAddressParams) WithTimeout(timeout time.Duration) *GetWalletAddressParams
WithTimeout adds the timeout to the get wallet address params
func (*GetWalletAddressParams) WriteToRequest ¶
func (o *GetWalletAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *GetWalletAddressesDefault) GetPayload() *models.StandardError
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
func (o *GetWalletAddressesOK) GetPayload() *GetWalletAddressesOKBody
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
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 ¶
func (o *GetWalletAddressesParams) WithContext(ctx context.Context) *GetWalletAddressesParams
WithContext adds the context to the get wallet addresses params
func (*GetWalletAddressesParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletAddressesParams) WithDefaults() *GetWalletAddressesParams
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 ¶
func (o *GetWalletAddressesParams) WithTimeout(timeout time.Duration) *GetWalletAddressesParams
WithTimeout adds the timeout to the get wallet addresses params
func (*GetWalletAddressesParams) WriteToRequest ¶
func (o *GetWalletAddressesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetWalletBackupParams) WithContext(ctx context.Context) *GetWalletBackupParams
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
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
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
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
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 ¶
func (o *GetWalletSeedsParams) WithContext(ctx context.Context) *GetWalletSeedsParams
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 ¶
func (o *GetWalletTransactionIDDefault) Code() int
Code gets the status code for the get wallet transaction ID default response
func (*GetWalletTransactionIDDefault) Error ¶
func (o *GetWalletTransactionIDDefault) Error() string
func (*GetWalletTransactionIDDefault) GetPayload ¶ added in v0.5.4
func (o *GetWalletTransactionIDDefault) GetPayload() *models.StandardError
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
func (o *GetWalletTransactionIDOK) GetPayload() *GetWalletTransactionIDOKBody
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
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 ¶
func (o *GetWalletTransactionIDParams) WithContext(ctx context.Context) *GetWalletTransactionIDParams
WithContext adds the context to the get wallet transaction ID params
func (*GetWalletTransactionIDParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletTransactionIDParams) WithDefaults() *GetWalletTransactionIDParams
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 ¶
func (o *GetWalletTransactionIDParams) WithHTTPClient(client *http.Client) *GetWalletTransactionIDParams
WithHTTPClient adds the HTTPClient to the get wallet transaction ID params
func (*GetWalletTransactionIDParams) WithID ¶
func (o *GetWalletTransactionIDParams) WithID(id string) *GetWalletTransactionIDParams
WithID adds the id to the get wallet transaction ID params
func (*GetWalletTransactionIDParams) WithTimeout ¶
func (o *GetWalletTransactionIDParams) WithTimeout(timeout time.Duration) *GetWalletTransactionIDParams
WithTimeout adds the timeout to the get wallet transaction ID params
func (*GetWalletTransactionIDParams) WriteToRequest ¶
func (o *GetWalletTransactionIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetWalletTransactionsAddrDefault) Code() int
Code gets the status code for the get wallet transactions addr default response
func (*GetWalletTransactionsAddrDefault) Error ¶
func (o *GetWalletTransactionsAddrDefault) Error() string
func (*GetWalletTransactionsAddrDefault) GetPayload ¶ added in v0.5.4
func (o *GetWalletTransactionsAddrDefault) GetPayload() *models.StandardError
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 (o *GetWalletTransactionsAddrOK) Error() string
func (*GetWalletTransactionsAddrOK) GetPayload ¶ added in v0.5.4
func (o *GetWalletTransactionsAddrOK) GetPayload() *GetWalletTransactionsAddrOKBody
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
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 ¶
func (o *GetWalletTransactionsAddrParams) WithAddr(addr string) *GetWalletTransactionsAddrParams
WithAddr adds the addr to the get wallet transactions addr params
func (*GetWalletTransactionsAddrParams) WithContext ¶
func (o *GetWalletTransactionsAddrParams) WithContext(ctx context.Context) *GetWalletTransactionsAddrParams
WithContext adds the context to the get wallet transactions addr params
func (*GetWalletTransactionsAddrParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletTransactionsAddrParams) WithDefaults() *GetWalletTransactionsAddrParams
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 ¶
func (o *GetWalletTransactionsAddrParams) WithHTTPClient(client *http.Client) *GetWalletTransactionsAddrParams
WithHTTPClient adds the HTTPClient to the get wallet transactions addr params
func (*GetWalletTransactionsAddrParams) WithTimeout ¶
func (o *GetWalletTransactionsAddrParams) WithTimeout(timeout time.Duration) *GetWalletTransactionsAddrParams
WithTimeout adds the timeout to the get wallet transactions addr params
func (*GetWalletTransactionsAddrParams) WriteToRequest ¶
func (o *GetWalletTransactionsAddrParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetWalletTransactionsDefault) Code() int
Code gets the status code for the get wallet transactions default response
func (*GetWalletTransactionsDefault) Error ¶
func (o *GetWalletTransactionsDefault) Error() string
func (*GetWalletTransactionsDefault) GetPayload ¶ added in v0.5.4
func (o *GetWalletTransactionsDefault) GetPayload() *models.StandardError
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
func (o *GetWalletTransactionsOK) GetPayload() *GetWalletTransactionsOKBody
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
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 ¶
func (o *GetWalletTransactionsParams) WithContext(ctx context.Context) *GetWalletTransactionsParams
WithContext adds the context to the get wallet transactions params
func (*GetWalletTransactionsParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletTransactionsParams) WithDefaults() *GetWalletTransactionsParams
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 ¶
func (o *GetWalletTransactionsParams) WithHTTPClient(client *http.Client) *GetWalletTransactionsParams
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 ¶
func (o *GetWalletTransactionsParams) WithTimeout(timeout time.Duration) *GetWalletTransactionsParams
WithTimeout adds the timeout to the get wallet transactions params
func (*GetWalletTransactionsParams) WriteToRequest ¶
func (o *GetWalletTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetWalletVerifyAddressAddrDefault) Code() int
Code gets the status code for the get wallet verify address addr default response
func (*GetWalletVerifyAddressAddrDefault) Error ¶
func (o *GetWalletVerifyAddressAddrDefault) Error() string
func (*GetWalletVerifyAddressAddrDefault) GetPayload ¶ added in v0.5.4
func (o *GetWalletVerifyAddressAddrDefault) GetPayload() *models.StandardError
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 (o *GetWalletVerifyAddressAddrOK) Error() string
func (*GetWalletVerifyAddressAddrOK) GetPayload ¶ added in v0.5.4
func (o *GetWalletVerifyAddressAddrOK) GetPayload() *GetWalletVerifyAddressAddrOKBody
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
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 ¶
func (o *GetWalletVerifyAddressAddrParams) SetContext(ctx context.Context)
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 ¶
func (o *GetWalletVerifyAddressAddrParams) WithAddr(addr string) *GetWalletVerifyAddressAddrParams
WithAddr adds the addr to the get wallet verify address addr params
func (*GetWalletVerifyAddressAddrParams) WithContext ¶
func (o *GetWalletVerifyAddressAddrParams) WithContext(ctx context.Context) *GetWalletVerifyAddressAddrParams
WithContext adds the context to the get wallet verify address addr params
func (*GetWalletVerifyAddressAddrParams) WithDefaults ¶ added in v0.5.9
func (o *GetWalletVerifyAddressAddrParams) WithDefaults() *GetWalletVerifyAddressAddrParams
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 ¶
func (o *GetWalletVerifyAddressAddrParams) WithHTTPClient(client *http.Client) *GetWalletVerifyAddressAddrParams
WithHTTPClient adds the HTTPClient to the get wallet verify address addr params
func (*GetWalletVerifyAddressAddrParams) WithTimeout ¶
func (o *GetWalletVerifyAddressAddrParams) WithTimeout(timeout time.Duration) *GetWalletVerifyAddressAddrParams
WithTimeout adds the timeout to the get wallet verify address addr params
func (*GetWalletVerifyAddressAddrParams) WriteToRequest ¶
func (o *GetWalletVerifyAddressAddrParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostWallet033xParams) WithContext(ctx context.Context) *PostWallet033xParams
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 ¶
func (o *PostWalletChangepasswordDefault) Code() int
Code gets the status code for the post wallet changepassword default response
func (*PostWalletChangepasswordDefault) Error ¶
func (o *PostWalletChangepasswordDefault) Error() string
func (*PostWalletChangepasswordDefault) GetPayload ¶ added in v0.5.4
func (o *PostWalletChangepasswordDefault) GetPayload() *models.StandardError
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 ¶
func (o *PostWalletChangepasswordNoContent) Error() string
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 ¶
func (o *PostWalletChangepasswordParams) WithContext(ctx context.Context) *PostWalletChangepasswordParams
WithContext adds the context to the post wallet changepassword params
func (*PostWalletChangepasswordParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletChangepasswordParams) WithDefaults() *PostWalletChangepasswordParams
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 ¶
func (o *PostWalletChangepasswordParams) WithHTTPClient(client *http.Client) *PostWalletChangepasswordParams
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 ¶
func (o *PostWalletChangepasswordParams) WithTimeout(timeout time.Duration) *PostWalletChangepasswordParams
WithTimeout adds the timeout to the post wallet changepassword params
func (*PostWalletChangepasswordParams) WriteToRequest ¶
func (o *PostWalletChangepasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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
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 ¶
func (o *PostWalletInitParams) WithContext(ctx context.Context) *PostWalletInitParams
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
func (o *PostWalletInitSeedDefault) GetPayload() *models.StandardError
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 ¶
func (o *PostWalletInitSeedNoContent) Error() string
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 ¶
func (o *PostWalletInitSeedParams) WithContext(ctx context.Context) *PostWalletInitSeedParams
WithContext adds the context to the post wallet init seed params
func (*PostWalletInitSeedParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletInitSeedParams) WithDefaults() *PostWalletInitSeedParams
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 ¶
func (o *PostWalletInitSeedParams) WithForce(force bool) *PostWalletInitSeedParams
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 ¶
func (o *PostWalletInitSeedParams) WithSeed(seed string) *PostWalletInitSeedParams
WithSeed adds the seed to the post wallet init seed params
func (*PostWalletInitSeedParams) WithTimeout ¶
func (o *PostWalletInitSeedParams) WithTimeout(timeout time.Duration) *PostWalletInitSeedParams
WithTimeout adds the timeout to the post wallet init seed params
func (*PostWalletInitSeedParams) WriteToRequest ¶
func (o *PostWalletInitSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostWalletLockParams) WithContext(ctx context.Context) *PostWalletLockParams
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 ¶
func (o *PostWalletSeedParams) WithContext(ctx context.Context) *PostWalletSeedParams
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
func (o *PostWalletSiacoinsDefault) GetPayload() *models.StandardError
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
func (o *PostWalletSiacoinsOK) GetPayload() *PostWalletSiacoinsOKBody
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
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 ¶
func (o *PostWalletSiacoinsParams) WithAmount(amount *int64) *PostWalletSiacoinsParams
WithAmount adds the amount to the post wallet siacoins params
func (*PostWalletSiacoinsParams) WithContext ¶
func (o *PostWalletSiacoinsParams) WithContext(ctx context.Context) *PostWalletSiacoinsParams
WithContext adds the context to the post wallet siacoins params
func (*PostWalletSiacoinsParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletSiacoinsParams) WithDefaults() *PostWalletSiacoinsParams
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 ¶
func (o *PostWalletSiacoinsParams) WithTimeout(timeout time.Duration) *PostWalletSiacoinsParams
WithTimeout adds the timeout to the post wallet siacoins params
func (*PostWalletSiacoinsParams) WriteToRequest ¶
func (o *PostWalletSiacoinsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *PostWalletSiafundsDefault) GetPayload() *models.StandardError
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
func (o *PostWalletSiafundsOK) GetPayload() *PostWalletSiafundsOKBody
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
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 ¶
func (o *PostWalletSiafundsParams) WithAmount(amount *int64) *PostWalletSiafundsParams
WithAmount adds the amount to the post wallet siafunds params
func (*PostWalletSiafundsParams) WithContext ¶
func (o *PostWalletSiafundsParams) WithContext(ctx context.Context) *PostWalletSiafundsParams
WithContext adds the context to the post wallet siafunds params
func (*PostWalletSiafundsParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletSiafundsParams) WithDefaults() *PostWalletSiafundsParams
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 ¶
func (o *PostWalletSiafundsParams) WithTimeout(timeout time.Duration) *PostWalletSiafundsParams
WithTimeout adds the timeout to the post wallet siafunds params
func (*PostWalletSiafundsParams) WriteToRequest ¶
func (o *PostWalletSiafundsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *PostWalletSiagkeyDefault) GetPayload() *models.StandardError
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 ¶
func (o *PostWalletSiagkeyNoContent) Error() string
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 ¶
func (o *PostWalletSiagkeyParams) WithContext(ctx context.Context) *PostWalletSiagkeyParams
WithContext adds the context to the post wallet siagkey params
func (*PostWalletSiagkeyParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletSiagkeyParams) WithDefaults() *PostWalletSiagkeyParams
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 ¶
func (o *PostWalletSiagkeyParams) WithTimeout(timeout time.Duration) *PostWalletSiagkeyParams
WithTimeout adds the timeout to the post wallet siagkey params
func (*PostWalletSiagkeyParams) WriteToRequest ¶
func (o *PostWalletSiagkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PostWalletSweepSeedDefault) Error() string
func (*PostWalletSweepSeedDefault) GetPayload ¶ added in v0.5.4
func (o *PostWalletSweepSeedDefault) GetPayload() *models.StandardError
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
func (o *PostWalletSweepSeedOK) GetPayload() *PostWalletSweepSeedOKBody
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
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 ¶
func (o *PostWalletSweepSeedParams) WithContext(ctx context.Context) *PostWalletSweepSeedParams
WithContext adds the context to the post wallet sweep seed params
func (*PostWalletSweepSeedParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletSweepSeedParams) WithDefaults() *PostWalletSweepSeedParams
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 ¶
func (o *PostWalletSweepSeedParams) WithSeed(seed *string) *PostWalletSweepSeedParams
WithSeed adds the seed to the post wallet sweep seed params
func (*PostWalletSweepSeedParams) WithTimeout ¶
func (o *PostWalletSweepSeedParams) WithTimeout(timeout time.Duration) *PostWalletSweepSeedParams
WithTimeout adds the timeout to the post wallet sweep seed params
func (*PostWalletSweepSeedParams) WriteToRequest ¶
func (o *PostWalletSweepSeedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostWalletUnlockParams) WithContext(ctx context.Context) *PostWalletUnlockParams
WithContext adds the context to the post wallet unlock params
func (*PostWalletUnlockParams) WithDefaults ¶ added in v0.5.9
func (o *PostWalletUnlockParams) WithDefaults() *PostWalletUnlockParams
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 ¶
func (o *PostWalletUnlockParams) WithTimeout(timeout time.Duration) *PostWalletUnlockParams
WithTimeout adds the timeout to the post wallet unlock params
func (*PostWalletUnlockParams) WriteToRequest ¶
func (o *PostWalletUnlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- get_wallet_address_parameters.go
- get_wallet_address_responses.go
- get_wallet_addresses_parameters.go
- get_wallet_addresses_responses.go
- get_wallet_backup_parameters.go
- get_wallet_backup_responses.go
- get_wallet_parameters.go
- get_wallet_responses.go
- get_wallet_seeds_parameters.go
- get_wallet_seeds_responses.go
- get_wallet_transaction_id_parameters.go
- get_wallet_transaction_id_responses.go
- get_wallet_transactions_addr_parameters.go
- get_wallet_transactions_addr_responses.go
- get_wallet_transactions_parameters.go
- get_wallet_transactions_responses.go
- get_wallet_verify_address_addr_parameters.go
- get_wallet_verify_address_addr_responses.go
- post_wallet033x_parameters.go
- post_wallet033x_responses.go
- post_wallet_changepassword_parameters.go
- post_wallet_changepassword_responses.go
- post_wallet_init_parameters.go
- post_wallet_init_responses.go
- post_wallet_init_seed_parameters.go
- post_wallet_init_seed_responses.go
- post_wallet_lock_parameters.go
- post_wallet_lock_responses.go
- post_wallet_seed_parameters.go
- post_wallet_seed_responses.go
- post_wallet_siacoins_parameters.go
- post_wallet_siacoins_responses.go
- post_wallet_siafunds_parameters.go
- post_wallet_siafunds_responses.go
- post_wallet_siagkey_parameters.go
- post_wallet_siagkey_responses.go
- post_wallet_sweep_seed_parameters.go
- post_wallet_sweep_seed_responses.go
- post_wallet_unlock_parameters.go
- post_wallet_unlock_responses.go
- wallet_client.go