Documentation
¶
Overview ¶
Package wallet provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package wallet provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package wallet provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package wallet provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- Constants
- Variables
- func GetSwagger() (*openapi3.Swagger, error)
- func LoadCACert(caFileName string) (*x509.CertPool, error)
- func MakeArgument(method string) interface{}
- func MakeTLSConfig() (*tls.Config, error)
- func NewByronSelectCoinsRequest(server string, walletId string, body ByronSelectCoinsJSONRequestBody) (*http.Request, error)
- func NewByronSelectCoinsRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAddressRequest(server string, walletId string, body CreateAddressJSONRequestBody) (*http.Request, error)
- func NewCreateAddressRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteByronTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
- func NewDeleteByronWalletRequest(server string, walletId string) (*http.Request, error)
- func NewDeleteSharedWalletRequest(server string, walletId string) (*http.Request, error)
- func NewDeleteTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
- func NewDeleteWalletRequest(server string, walletId string) (*http.Request, error)
- func NewGetAssetDefaultRequest(server string, walletId string, policyId string) (*http.Request, error)
- func NewGetAssetRequest(server string, walletId string, policyId string, assetName string) (*http.Request, error)
- func NewGetByronAssetDefaultRequest(server string, walletId string, policyId string) (*http.Request, error)
- func NewGetByronAssetRequest(server string, walletId string, policyId string, assetName string) (*http.Request, error)
- func NewGetByronTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
- func NewGetByronUTxOsStatisticsRequest(server string, walletId string) (*http.Request, error)
- func NewGetByronWalletMigrationInfoRequest(server string, walletId string) (*http.Request, error)
- func NewGetByronWalletRequest(server string, walletId string) (*http.Request, error)
- func NewGetCurrentSmashHealthRequest(server string, params *GetCurrentSmashHealthParams) (*http.Request, error)
- func NewGetDelegationFeeRequest(server string, walletId string) (*http.Request, error)
- func NewGetMaintenanceActionsRequest(server string) (*http.Request, error)
- func NewGetNetworkClockRequest(server string, params *GetNetworkClockParams) (*http.Request, error)
- func NewGetNetworkInformationRequest(server string) (*http.Request, error)
- func NewGetNetworkParametersRequest(server string) (*http.Request, error)
- func NewGetSettingsRequest(server string) (*http.Request, error)
- func NewGetSharedWalletRequest(server string, walletId string) (*http.Request, error)
- func NewGetShelleyWalletMigrationInfoRequest(server string, walletId string) (*http.Request, error)
- func NewGetTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
- func NewGetUTxOsStatisticsRequest(server string, walletId string) (*http.Request, error)
- func NewGetWalletKeyRequest(server string, walletId string, role string, index string) (*http.Request, error)
- func NewGetWalletRequest(server string, walletId string) (*http.Request, error)
- func NewImportAddressRequest(server string, walletId string, addressId string) (*http.Request, error)
- func NewImportAddressesRequest(server string, walletId string, body ImportAddressesJSONRequestBody) (*http.Request, error)
- func NewImportAddressesRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewInspectAddressRequest(server string, addressId string) (*http.Request, error)
- func NewJoinStakePoolRequest(server string, stakePoolId string, walletId string, ...) (*http.Request, error)
- func NewJoinStakePoolRequestWithBody(server string, stakePoolId string, walletId string, contentType string, ...) (*http.Request, error)
- func NewListAddressesRequest(server string, walletId string, params *ListAddressesParams) (*http.Request, error)
- func NewListAssetsRequest(server string, walletId string) (*http.Request, error)
- func NewListByronAddressesRequest(server string, walletId string, params *ListByronAddressesParams) (*http.Request, error)
- func NewListByronAssetsRequest(server string, walletId string) (*http.Request, error)
- func NewListByronTransactionsRequest(server string, walletId string, params *ListByronTransactionsParams) (*http.Request, error)
- func NewListByronWalletsRequest(server string) (*http.Request, error)
- func NewListStakePoolsRequest(server string, params *ListStakePoolsParams) (*http.Request, error)
- func NewListTransactionsRequest(server string, walletId string, params *ListTransactionsParams) (*http.Request, error)
- func NewListWalletsRequest(server string) (*http.Request, error)
- func NewMigrateByronWalletRequest(server string, walletId string, body MigrateByronWalletJSONRequestBody) (*http.Request, error)
- func NewMigrateByronWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewMigrateShelleyWalletRequest(server string, walletId string, body MigrateShelleyWalletJSONRequestBody) (*http.Request, error)
- func NewMigrateShelleyWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchSharedWalletInDelegationRequest(server string, walletId string, ...) (*http.Request, error)
- func NewPatchSharedWalletInDelegationRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchSharedWalletInPaymentRequest(server string, walletId string, body PatchSharedWalletInPaymentJSONRequestBody) (*http.Request, error)
- func NewPatchSharedWalletInPaymentRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostAccountKeyRequest(server string, walletId string, index string, ...) (*http.Request, error)
- func NewPostAccountKeyRequestWithBody(server string, walletId string, index string, contentType string, ...) (*http.Request, error)
- func NewPostAnyAddressRequest(server string, body PostAnyAddressJSONRequestBody) (*http.Request, error)
- func NewPostAnyAddressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostByronTransactionFeeRequest(server string, walletId string, body PostByronTransactionFeeJSONRequestBody) (*http.Request, error)
- func NewPostByronTransactionFeeRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostByronTransactionRequest(server string, walletId string, body PostByronTransactionJSONRequestBody) (*http.Request, error)
- func NewPostByronTransactionRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostByronWalletRequest(server string, body PostByronWalletJSONRequestBody) (*http.Request, error)
- func NewPostByronWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostExternalTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostMaintenanceActionRequest(server string, body PostMaintenanceActionJSONRequestBody) (*http.Request, error)
- func NewPostMaintenanceActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostSharedWalletRequest(server string, body PostSharedWalletJSONRequestBody) (*http.Request, error)
- func NewPostSharedWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostTransactionFeeRequest(server string, walletId string, body PostTransactionFeeJSONRequestBody) (*http.Request, error)
- func NewPostTransactionFeeRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostTransactionRequest(server string, walletId string, body PostTransactionJSONRequestBody) (*http.Request, error)
- func NewPostTransactionRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostWalletRequest(server string, body PostWalletJSONRequestBody) (*http.Request, error)
- func NewPostWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutByronWalletPassphraseRequest(server string, walletId string, body PutByronWalletPassphraseJSONRequestBody) (*http.Request, error)
- func NewPutByronWalletPassphraseRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutByronWalletRequest(server string, walletId string, body PutByronWalletJSONRequestBody) (*http.Request, error)
- func NewPutByronWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutSettingsRequest(server string, body PutSettingsJSONRequestBody) (*http.Request, error)
- func NewPutSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutWalletPassphraseRequest(server string, walletId string, body PutWalletPassphraseJSONRequestBody) (*http.Request, error)
- func NewPutWalletPassphraseRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutWalletRequest(server string, walletId string, body PutWalletJSONRequestBody) (*http.Request, error)
- func NewPutWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewQuitStakePoolRequest(server string, walletId string, body QuitStakePoolJSONRequestBody) (*http.Request, error)
- func NewQuitStakePoolRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewSelectCoinsRequest(server string, walletId string, body SelectCoinsJSONRequestBody) (*http.Request, error)
- func NewSelectCoinsRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
- func NewSignMetadataRequest(server string, walletId string, role string, index string, ...) (*http.Request, error)
- func NewSignMetadataRequestWithBody(server string, walletId string, role string, index string, contentType string, ...) (*http.Request, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type ByronSelectCoinsJSONBody
- type ByronSelectCoinsJSONRequestBody
- type ByronSelectCoinsResponse
- type Client
- func (c *Client) ByronSelectCoins(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ByronSelectCoinsWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAddress(ctx context.Context, walletId string, body CreateAddressJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAddressWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteByronTransaction(ctx context.Context, walletId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) DeleteByronWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSharedWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteTransaction(ctx context.Context, walletId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) DeleteWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAsset(ctx context.Context, walletId string, policyId string, assetName string, ...) (*http.Response, error)
- func (c *Client) GetAssetDefault(ctx context.Context, walletId string, policyId string, ...) (*http.Response, error)
- func (c *Client) GetByronAsset(ctx context.Context, walletId string, policyId string, assetName string, ...) (*http.Response, error)
- func (c *Client) GetByronAssetDefault(ctx context.Context, walletId string, policyId string, ...) (*http.Response, error)
- func (c *Client) GetByronTransaction(ctx context.Context, walletId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) GetByronUTxOsStatistics(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetByronWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetByronWalletMigrationInfo(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentSmashHealth(ctx context.Context, params *GetCurrentSmashHealthParams, ...) (*http.Response, error)
- func (c *Client) GetDelegationFee(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMaintenanceActions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNetworkClock(ctx context.Context, params *GetNetworkClockParams, ...) (*http.Response, error)
- func (c *Client) GetNetworkInformation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNetworkParameters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSharedWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetShelleyWalletMigrationInfo(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTransaction(ctx context.Context, walletId string, transactionId string, ...) (*http.Response, error)
- func (c *Client) GetUTxOsStatistics(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetWalletKey(ctx context.Context, walletId string, role string, index string, ...) (*http.Response, error)
- func (c *Client) ImportAddress(ctx context.Context, walletId string, addressId string, ...) (*http.Response, error)
- func (c *Client) ImportAddresses(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ImportAddressesWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) InspectAddress(ctx context.Context, addressId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) JoinStakePool(ctx context.Context, stakePoolId string, walletId string, ...) (*http.Response, error)
- func (c *Client) JoinStakePoolWithBody(ctx context.Context, stakePoolId string, walletId string, contentType string, ...) (*http.Response, error)
- func (c *Client) ListAddresses(ctx context.Context, walletId string, params *ListAddressesParams, ...) (*http.Response, error)
- func (c *Client) ListAssets(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListByronAddresses(ctx context.Context, walletId string, params *ListByronAddressesParams, ...) (*http.Response, error)
- func (c *Client) ListByronAssets(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListByronTransactions(ctx context.Context, walletId string, params *ListByronTransactionsParams, ...) (*http.Response, error)
- func (c *Client) ListByronWallets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListStakePools(ctx context.Context, params *ListStakePoolsParams, ...) (*http.Response, error)
- func (c *Client) ListTransactions(ctx context.Context, walletId string, params *ListTransactionsParams, ...) (*http.Response, error)
- func (c *Client) ListWallets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MigrateByronWallet(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MigrateByronWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MigrateShelleyWallet(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MigrateShelleyWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchSharedWalletInDelegation(ctx context.Context, walletId string, ...) (*http.Response, error)
- func (c *Client) PatchSharedWalletInDelegationWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchSharedWalletInPayment(ctx context.Context, walletId string, ...) (*http.Response, error)
- func (c *Client) PatchSharedWalletInPaymentWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostAccountKey(ctx context.Context, walletId string, index string, ...) (*http.Response, error)
- func (c *Client) PostAccountKeyWithBody(ctx context.Context, walletId string, index string, contentType string, ...) (*http.Response, error)
- func (c *Client) PostAnyAddress(ctx context.Context, body PostAnyAddressJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostAnyAddressWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostByronTransaction(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostByronTransactionFee(ctx context.Context, walletId string, ...) (*http.Response, error)
- func (c *Client) PostByronTransactionFeeWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostByronTransactionWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostByronWallet(ctx context.Context, body PostByronWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostByronWalletWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostExternalTransactionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostMaintenanceAction(ctx context.Context, body PostMaintenanceActionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostMaintenanceActionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostSharedWallet(ctx context.Context, body PostSharedWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostSharedWalletWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostTransaction(ctx context.Context, walletId string, body PostTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostTransactionFee(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostTransactionFeeWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostTransactionWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostWallet(ctx context.Context, body PostWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostWalletWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutByronWallet(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutByronWalletPassphrase(ctx context.Context, walletId string, ...) (*http.Response, error)
- func (c *Client) PutByronWalletPassphraseWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutByronWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutSettings(ctx context.Context, body PutSettingsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutSettingsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutWallet(ctx context.Context, walletId string, body PutWalletJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutWalletPassphrase(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutWalletPassphraseWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QuitStakePool(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QuitStakePoolWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SelectCoins(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SelectCoinsWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SignMetadata(ctx context.Context, walletId string, role string, index string, ...) (*http.Response, error)
- func (c *Client) SignMetadataWithBody(ctx context.Context, walletId string, role string, index string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ByronSelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ByronSelectCoinsResponse, error)
- func (c *ClientWithResponses) ByronSelectCoinsWithResponse(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody) (*ByronSelectCoinsResponse, error)
- func (c *ClientWithResponses) CreateAddressWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*CreateAddressResponse, error)
- func (c *ClientWithResponses) CreateAddressWithResponse(ctx context.Context, walletId string, body CreateAddressJSONRequestBody) (*CreateAddressResponse, error)
- func (c *ClientWithResponses) DeleteByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteByronTransactionResponse, error)
- func (c *ClientWithResponses) DeleteByronWalletWithResponse(ctx context.Context, walletId string) (*DeleteByronWalletResponse, error)
- func (c *ClientWithResponses) DeleteSharedWalletWithResponse(ctx context.Context, walletId string) (*DeleteSharedWalletResponse, error)
- func (c *ClientWithResponses) DeleteTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteTransactionResponse, error)
- func (c *ClientWithResponses) DeleteWalletWithResponse(ctx context.Context, walletId string) (*DeleteWalletResponse, error)
- func (c *ClientWithResponses) GetAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetAssetDefaultResponse, error)
- func (c *ClientWithResponses) GetAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetAssetResponse, error)
- func (c *ClientWithResponses) GetByronAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetByronAssetDefaultResponse, error)
- func (c *ClientWithResponses) GetByronAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetByronAssetResponse, error)
- func (c *ClientWithResponses) GetByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetByronTransactionResponse, error)
- func (c *ClientWithResponses) GetByronUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetByronUTxOsStatisticsResponse, error)
- func (c *ClientWithResponses) GetByronWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetByronWalletMigrationInfoResponse, error)
- func (c *ClientWithResponses) GetByronWalletWithResponse(ctx context.Context, walletId string) (*GetByronWalletResponse, error)
- func (c *ClientWithResponses) GetCurrentSmashHealthWithResponse(ctx context.Context, params *GetCurrentSmashHealthParams) (*GetCurrentSmashHealthResponse, error)
- func (c *ClientWithResponses) GetDelegationFeeWithResponse(ctx context.Context, walletId string) (*GetDelegationFeeResponse, error)
- func (c *ClientWithResponses) GetMaintenanceActionsWithResponse(ctx context.Context) (*GetMaintenanceActionsResponse, error)
- func (c *ClientWithResponses) GetNetworkClockWithResponse(ctx context.Context, params *GetNetworkClockParams) (*GetNetworkClockResponse, error)
- func (c *ClientWithResponses) GetNetworkInformationWithResponse(ctx context.Context) (*GetNetworkInformationResponse, error)
- func (c *ClientWithResponses) GetNetworkParametersWithResponse(ctx context.Context) (*GetNetworkParametersResponse, error)
- func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context) (*GetSettingsResponse, error)
- func (c *ClientWithResponses) GetSharedWalletWithResponse(ctx context.Context, walletId string) (*GetSharedWalletResponse, error)
- func (c *ClientWithResponses) GetShelleyWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetShelleyWalletMigrationInfoResponse, error)
- func (c *ClientWithResponses) GetTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetTransactionResponse, error)
- func (c *ClientWithResponses) GetUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetUTxOsStatisticsResponse, error)
- func (c *ClientWithResponses) GetWalletKeyWithResponse(ctx context.Context, walletId string, role string, index string) (*GetWalletKeyResponse, error)
- func (c *ClientWithResponses) GetWalletWithResponse(ctx context.Context, walletId string) (*GetWalletResponse, error)
- func (c *ClientWithResponses) ImportAddressWithResponse(ctx context.Context, walletId string, addressId string) (*ImportAddressResponse, error)
- func (c *ClientWithResponses) ImportAddressesWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ImportAddressesResponse, error)
- func (c *ClientWithResponses) ImportAddressesWithResponse(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody) (*ImportAddressesResponse, error)
- func (c *ClientWithResponses) InspectAddressWithResponse(ctx context.Context, addressId string) (*InspectAddressResponse, error)
- func (c *ClientWithResponses) JoinStakePoolWithBodyWithResponse(ctx context.Context, stakePoolId string, walletId string, contentType string, ...) (*JoinStakePoolResponse, error)
- func (c *ClientWithResponses) JoinStakePoolWithResponse(ctx context.Context, stakePoolId string, walletId string, ...) (*JoinStakePoolResponse, error)
- func (c *ClientWithResponses) ListAddressesWithResponse(ctx context.Context, walletId string, params *ListAddressesParams) (*ListAddressesResponse, error)
- func (c *ClientWithResponses) ListAssetsWithResponse(ctx context.Context, walletId string) (*ListAssetsResponse, error)
- func (c *ClientWithResponses) ListByronAddressesWithResponse(ctx context.Context, walletId string, params *ListByronAddressesParams) (*ListByronAddressesResponse, error)
- func (c *ClientWithResponses) ListByronAssetsWithResponse(ctx context.Context, walletId string) (*ListByronAssetsResponse, error)
- func (c *ClientWithResponses) ListByronTransactionsWithResponse(ctx context.Context, walletId string, params *ListByronTransactionsParams) (*ListByronTransactionsResponse, error)
- func (c *ClientWithResponses) ListByronWalletsWithResponse(ctx context.Context) (*ListByronWalletsResponse, error)
- func (c *ClientWithResponses) ListStakePoolsWithResponse(ctx context.Context, params *ListStakePoolsParams) (*ListStakePoolsResponse, error)
- func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, walletId string, params *ListTransactionsParams) (*ListTransactionsResponse, error)
- func (c *ClientWithResponses) ListWalletsWithResponse(ctx context.Context) (*ListWalletsResponse, error)
- func (c *ClientWithResponses) MigrateByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateByronWalletResponse, error)
- func (c *ClientWithResponses) MigrateByronWalletWithResponse(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody) (*MigrateByronWalletResponse, error)
- func (c *ClientWithResponses) MigrateShelleyWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateShelleyWalletResponse, error)
- func (c *ClientWithResponses) MigrateShelleyWalletWithResponse(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody) (*MigrateShelleyWalletResponse, error)
- func (c *ClientWithResponses) PatchSharedWalletInDelegationWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInDelegationResponse, error)
- func (c *ClientWithResponses) PatchSharedWalletInDelegationWithResponse(ctx context.Context, walletId string, ...) (*PatchSharedWalletInDelegationResponse, error)
- func (c *ClientWithResponses) PatchSharedWalletInPaymentWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInPaymentResponse, error)
- func (c *ClientWithResponses) PatchSharedWalletInPaymentWithResponse(ctx context.Context, walletId string, ...) (*PatchSharedWalletInPaymentResponse, error)
- func (c *ClientWithResponses) PostAccountKeyWithBodyWithResponse(ctx context.Context, walletId string, index string, contentType string, ...) (*PostAccountKeyResponse, error)
- func (c *ClientWithResponses) PostAccountKeyWithResponse(ctx context.Context, walletId string, index string, ...) (*PostAccountKeyResponse, error)
- func (c *ClientWithResponses) PostAnyAddressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostAnyAddressResponse, error)
- func (c *ClientWithResponses) PostAnyAddressWithResponse(ctx context.Context, body PostAnyAddressJSONRequestBody) (*PostAnyAddressResponse, error)
- func (c *ClientWithResponses) PostByronTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionFeeResponse, error)
- func (c *ClientWithResponses) PostByronTransactionFeeWithResponse(ctx context.Context, walletId string, ...) (*PostByronTransactionFeeResponse, error)
- func (c *ClientWithResponses) PostByronTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionResponse, error)
- func (c *ClientWithResponses) PostByronTransactionWithResponse(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody) (*PostByronTransactionResponse, error)
- func (c *ClientWithResponses) PostByronWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostByronWalletResponse, error)
- func (c *ClientWithResponses) PostByronWalletWithResponse(ctx context.Context, body PostByronWalletJSONRequestBody) (*PostByronWalletResponse, error)
- func (c *ClientWithResponses) PostExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostExternalTransactionResponse, error)
- func (c *ClientWithResponses) PostMaintenanceActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostMaintenanceActionResponse, error)
- func (c *ClientWithResponses) PostMaintenanceActionWithResponse(ctx context.Context, body PostMaintenanceActionJSONRequestBody) (*PostMaintenanceActionResponse, error)
- func (c *ClientWithResponses) PostSharedWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostSharedWalletResponse, error)
- func (c *ClientWithResponses) PostSharedWalletWithResponse(ctx context.Context, body PostSharedWalletJSONRequestBody) (*PostSharedWalletResponse, error)
- func (c *ClientWithResponses) PostTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionFeeResponse, error)
- func (c *ClientWithResponses) PostTransactionFeeWithResponse(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody) (*PostTransactionFeeResponse, error)
- func (c *ClientWithResponses) PostTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionResponse, error)
- func (c *ClientWithResponses) PostTransactionWithResponse(ctx context.Context, walletId string, body PostTransactionJSONRequestBody) (*PostTransactionResponse, error)
- func (c *ClientWithResponses) PostWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostWalletResponse, error)
- func (c *ClientWithResponses) PostWalletWithResponse(ctx context.Context, body PostWalletJSONRequestBody) (*PostWalletResponse, error)
- func (c *ClientWithResponses) PutByronWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletPassphraseResponse, error)
- func (c *ClientWithResponses) PutByronWalletPassphraseWithResponse(ctx context.Context, walletId string, ...) (*PutByronWalletPassphraseResponse, error)
- func (c *ClientWithResponses) PutByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletResponse, error)
- func (c *ClientWithResponses) PutByronWalletWithResponse(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody) (*PutByronWalletResponse, error)
- func (c *ClientWithResponses) PutSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PutSettingsResponse, error)
- func (c *ClientWithResponses) PutSettingsWithResponse(ctx context.Context, body PutSettingsJSONRequestBody) (*PutSettingsResponse, error)
- func (c *ClientWithResponses) PutWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletPassphraseResponse, error)
- func (c *ClientWithResponses) PutWalletPassphraseWithResponse(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody) (*PutWalletPassphraseResponse, error)
- func (c *ClientWithResponses) PutWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletResponse, error)
- func (c *ClientWithResponses) PutWalletWithResponse(ctx context.Context, walletId string, body PutWalletJSONRequestBody) (*PutWalletResponse, error)
- func (c *ClientWithResponses) QuitStakePoolWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*QuitStakePoolResponse, error)
- func (c *ClientWithResponses) QuitStakePoolWithResponse(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody) (*QuitStakePoolResponse, error)
- func (c *ClientWithResponses) SelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*SelectCoinsResponse, error)
- func (c *ClientWithResponses) SelectCoinsWithResponse(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody) (*SelectCoinsResponse, error)
- func (c *ClientWithResponses) SignMetadataWithBodyWithResponse(ctx context.Context, walletId string, role string, index string, ...) (*SignMetadataResponse, error)
- func (c *ClientWithResponses) SignMetadataWithResponse(ctx context.Context, walletId string, role string, index string, ...) (*SignMetadataResponse, error)
- type ClientWithResponsesInterface
- type CreateAddressJSONBody
- type CreateAddressJSONRequestBody
- type CreateAddressResponse
- type DeleteByronTransactionResponse
- type DeleteByronWalletResponse
- type DeleteSharedWalletResponse
- type DeleteTransactionResponse
- type DeleteWalletResponse
- type Distribution
- type EchoRouter
- type GetAssetDefaultResponse
- type GetAssetResponse
- type GetByronAssetDefaultResponse
- type GetByronAssetResponse
- type GetByronTransactionResponse
- type GetByronUTxOsStatisticsResponse
- type GetByronWalletMigrationInfoResponse
- type GetByronWalletResponse
- type GetCurrentSmashHealthParams
- type GetCurrentSmashHealthResponse
- type GetDelegationFeeResponse
- type GetMaintenanceActionsResponse
- type GetNetworkClockParams
- type GetNetworkClockResponse
- type GetNetworkInformationResponse
- type GetNetworkParametersResponse
- type GetSettingsResponse
- type GetSharedWalletResponse
- type GetShelleyWalletMigrationInfoResponse
- type GetTransactionResponse
- type GetUTxOsStatisticsResponse
- type GetWalletKeyResponse
- type GetWalletResponse
- type HttpRequestDoer
- type ImportAddressResponse
- type ImportAddressesJSONBody
- type ImportAddressesJSONRequestBody
- type ImportAddressesResponse
- type InspectAddressResponse
- type JoinStakePoolJSONBody
- type JoinStakePoolJSONRequestBody
- type JoinStakePoolResponse
- type ListAddressesParams
- type ListAddressesResponse
- type ListAssetsResponse
- type ListByronAddressesParams
- type ListByronAddressesResponse
- type ListByronAssetsResponse
- type ListByronTransactionsParams
- type ListByronTransactionsResponse
- type ListByronWalletsResponse
- type ListStakePoolsParams
- type ListStakePoolsResponse
- type ListTransactionsParams
- type ListTransactionsResponse
- type ListWalletsResponse
- type Metadata
- type MigrateByronWalletJSONBody
- type MigrateByronWalletJSONRequestBody
- type MigrateByronWalletResponse
- type MigrateShelleyWalletJSONBody
- type MigrateShelleyWalletJSONRequestBody
- type MigrateShelleyWalletResponse
- type PatchSharedWalletInDelegationJSONBody
- func (a PatchSharedWalletInDelegationJSONBody) Get(fieldName string) (value string, found bool)
- func (a PatchSharedWalletInDelegationJSONBody) MarshalJSON() ([]byte, error)
- func (a *PatchSharedWalletInDelegationJSONBody) Set(fieldName string, value string)
- func (a *PatchSharedWalletInDelegationJSONBody) UnmarshalJSON(b []byte) error
- type PatchSharedWalletInDelegationJSONRequestBody
- type PatchSharedWalletInDelegationResponse
- type PatchSharedWalletInPaymentJSONBody
- func (a PatchSharedWalletInPaymentJSONBody) Get(fieldName string) (value string, found bool)
- func (a PatchSharedWalletInPaymentJSONBody) MarshalJSON() ([]byte, error)
- func (a *PatchSharedWalletInPaymentJSONBody) Set(fieldName string, value string)
- func (a *PatchSharedWalletInPaymentJSONBody) UnmarshalJSON(b []byte) error
- type PatchSharedWalletInPaymentJSONRequestBody
- type PatchSharedWalletInPaymentResponse
- type PostAccountKeyJSONBody
- type PostAccountKeyJSONRequestBody
- type PostAccountKeyResponse
- type PostAnyAddressJSONBody
- type PostAnyAddressJSONRequestBody
- type PostAnyAddressResponse
- type PostByronTransactionFeeJSONBody
- type PostByronTransactionFeeJSONRequestBody
- type PostByronTransactionFeeResponse
- type PostByronTransactionJSONBody
- type PostByronTransactionJSONRequestBody
- type PostByronTransactionResponse
- type PostByronWalletJSONBody
- type PostByronWalletJSONRequestBody
- type PostByronWalletResponse
- type PostExternalTransactionResponse
- type PostMaintenanceActionJSONBody
- type PostMaintenanceActionJSONRequestBody
- type PostMaintenanceActionResponse
- type PostSharedWalletJSONBody
- type PostSharedWalletJSONRequestBody
- type PostSharedWalletResponse
- type PostTransactionFeeJSONBody
- type PostTransactionFeeJSONRequestBody
- type PostTransactionFeeResponse
- type PostTransactionJSONBody
- type PostTransactionJSONRequestBody
- type PostTransactionResponse
- type PostWalletJSONBody
- type PostWalletJSONRequestBody
- type PostWalletResponse
- type PutByronWalletJSONBody
- type PutByronWalletJSONRequestBody
- type PutByronWalletPassphraseJSONBody
- type PutByronWalletPassphraseJSONRequestBody
- type PutByronWalletPassphraseResponse
- type PutByronWalletResponse
- type PutSettingsJSONBody
- type PutSettingsJSONRequestBody
- type PutSettingsResponse
- type PutWalletJSONBody
- type PutWalletJSONRequestBody
- type PutWalletPassphraseJSONBody
- type PutWalletPassphraseJSONRequestBody
- type PutWalletPassphraseResponse
- type PutWalletResponse
- type QuitStakePoolJSONBody
- type QuitStakePoolJSONRequestBody
- type QuitStakePoolResponse
- type RequestEditorFn
- type ScriptTemplateValue
- type ScriptValue
- type SelectCoinsJSONBody
- type SelectCoinsJSONRequestBody
- type SelectCoinsResponse
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) ByronSelectCoins(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateAddress(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteByronTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteByronWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteSharedWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetAsset(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetAssetDefault(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronAsset(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronAssetDefault(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronUTxOsStatistics(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetByronWalletMigrationInfo(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCurrentSmashHealth(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetDelegationFee(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMaintenanceActions(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNetworkClock(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNetworkInformation(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNetworkParameters(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSettings(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSharedWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetShelleyWalletMigrationInfo(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetUTxOsStatistics(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetWalletKey(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ImportAddress(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ImportAddresses(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) InspectAddress(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) JoinStakePool(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListAddresses(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListAssets(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListByronAddresses(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListByronAssets(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListByronTransactions(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListByronWallets(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListStakePools(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTransactions(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListWallets(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) MigrateByronWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) MigrateShelleyWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PatchSharedWalletInDelegation(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PatchSharedWalletInPayment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostAccountKey(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostAnyAddress(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostByronTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostByronTransactionFee(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostByronWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostExternalTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostMaintenanceAction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostSharedWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostTransactionFee(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutByronWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutByronWalletPassphrase(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutSettings(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutWallet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutWalletPassphrase(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) QuitStakePool(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SelectCoins(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SignMetadata(ctx echo.Context) error
- type SignMetadataJSONBody
- type SignMetadataJSONBody_Metadata
- func (a SignMetadataJSONBody_Metadata) Get(fieldName string) (value TransactionMetadataValue, found bool)
- func (a SignMetadataJSONBody_Metadata) MarshalJSON() ([]byte, error)
- func (a *SignMetadataJSONBody_Metadata) Set(fieldName string, value TransactionMetadataValue)
- func (a *SignMetadataJSONBody_Metadata) UnmarshalJSON(b []byte) error
- type SignMetadataJSONRequestBody
- type SignMetadataResponse
- type TransactionMetadataValue
Constants ¶
const ( ParamsArgName = "params" BodyArgName = "body" )
const ( MetadataTypeInt = "int" MetadataTypeString = "string" MetadataTypeBytes = "bytes" MetadataTypeList = "list" MetadataTypeMap = "map" MetadataMapKey = "k" MetadataMapVal = "v" )
Variables ¶
var ( EnvTLSSkipVerify = "GODANO_WALLET_CLIENT_TLS_SKIP_VERIFY" EnvServerCAFile = "GODANO_WALLET_CLIENT_SERVER_CA" EnvClientCertFile = "GODANO_WALLET_CLIENT_CLIENT_CERT" EnvClientKeyFile = "GODANO_WALLET_CLIENT_CLIENT_KEY" // This env-var is not evaluated by MakeTLSConfig(), but in client_test.go and cmd/godano-wallet-cli EnvVarWalletServerAddress = "GODANO_WALLET_CLIENT_SERVER_ADDRESS" )
These env-var names are defined as `var` and not `const` on purpose, them configurabled by client code, if necessary.
var ArgumentNames = map[string][]string{ "PostAnyAddress": {BodyArgName}, "InspectAddress": {"addressId"}, "ListByronWallets": {}, "PostByronWallet": {BodyArgName}, "DeleteByronWallet": {"walletId"}, "GetByronWallet": {"walletId"}, "PutByronWallet": {"walletId", BodyArgName}, "ListByronAddresses": {"walletId", ParamsArgName}, "CreateAddress": {"walletId", BodyArgName}, "ImportAddresses": {"walletId", BodyArgName}, "ImportAddress": {"walletId", "addressId"}, "ListByronAssets": {"walletId"}, "GetByronAssetDefault": {"walletId", "policyId"}, "GetByronAsset": {"walletId", "policyId", "assetName"}, "ByronSelectCoins": {"walletId", BodyArgName}, "GetByronWalletMigrationInfo": {"walletId"}, "MigrateByronWallet": {"walletId", BodyArgName}, "PutByronWalletPassphrase": {"walletId", BodyArgName}, "PostByronTransactionFee": {"walletId", BodyArgName}, "GetByronUTxOsStatistics": {"walletId"}, "ListByronTransactions": {"walletId", ParamsArgName}, "PostByronTransaction": {"walletId", BodyArgName}, "DeleteByronTransaction": {"walletId", "transactionId"}, "GetByronTransaction": {"walletId", "transactionId"}, "GetNetworkClock": {ParamsArgName}, "GetNetworkInformation": {}, "GetNetworkParameters": {}, "PostExternalTransaction": {BodyArgName}, "GetSettings": {}, "PutSettings": {BodyArgName}, "PostSharedWallet": {BodyArgName}, "DeleteSharedWallet": {"walletId"}, "GetSharedWallet": {"walletId"}, "PatchSharedWalletInDelegation": {"walletId", BodyArgName}, "PatchSharedWalletInPayment": {"walletId", BodyArgName}, "GetCurrentSmashHealth": {ParamsArgName}, "ListStakePools": {ParamsArgName}, "QuitStakePool": {"walletId", BodyArgName}, "GetMaintenanceActions": {}, "PostMaintenanceAction": {BodyArgName}, "JoinStakePool": {"stakePoolId", "walletId", BodyArgName}, "ListWallets": {}, "PostWallet": {BodyArgName}, "DeleteWallet": {"walletId"}, "GetWallet": {"walletId"}, "PutWallet": {"walletId", BodyArgName}, "ListAddresses": {"walletId", ParamsArgName}, "ListAssets": {"walletId"}, "GetAssetDefault": {"walletId", "policyId"}, "GetAsset": {"walletId", "policyId", "assetName"}, "SelectCoins": {"walletId", BodyArgName}, "GetDelegationFee": {"walletId"}, "PostAccountKey": {"walletId", "index", BodyArgName}, "GetWalletKey": {"walletId", "role", "index"}, "GetShelleyWalletMigrationInfo": {"walletId"}, "MigrateShelleyWallet": {"walletId", BodyArgName}, "PutWalletPassphrase": {"walletId", BodyArgName}, "PostTransactionFee": {"walletId", BodyArgName}, "SignMetadata": {"walletId", "role", "index", BodyArgName}, "GetUTxOsStatistics": {"walletId"}, "ListTransactions": {"walletId", ParamsArgName}, "PostTransaction": {"walletId", BodyArgName}, "DeleteTransaction": {"walletId", "transactionId"}, "GetTransaction": {"walletId", "transactionId"}, }
ArgumentNames maps method names from the `ClientInterface` to their parameter names. The receiver and the first parameter (ctx) are excluded.
TODO this could and should be auto-generated from swagger.yaml or based on the source code of ClientInterface. The problem is that Go drops parameter names during compilation.
var ArgumentNamesWithResponse = make(map[string][]string, len(ArgumentNames))
ArgumentNamesWithResponse is a copy of ArgumentNames, with each method suffixed by `WithResponse`. These methods and parameter names correspond to the `ClientWithResponse` Interface.
var MethodHasBody = map[string]bool{ "PostAnyAddress": true, "PostByronWallet": true, "PutByronWallet": true, "CreateAddress": true, "ImportAddresses": true, "ByronSelectCoins": true, "MigrateByronWallet": true, "PutByronWalletPassphrase": true, "PostByronTransactionFee": true, "PostByronTransaction": true, "PutSettings": true, "PostExternalTransaction": true, "PostSharedWallet": true, "PatchSharedWalletInDelegation": true, "PatchSharedWalletInPayment": true, "QuitStakePool": true, "PostMaintenanceAction": true, "JoinStakePool": true, "PostWallet": true, "PutWallet": true, "SelectCoins": true, "PostAccountKey": true, "MigrateShelleyWallet": true, "PutWalletPassphrase": true, "PostTransactionFee": true, "SignMetadata": true, "PostTransaction": true, }
MethodHasBody contains the names of all methods that have a *WithBody variant (e.g. PostAnyAddress -> PostAnyAddressWithBody) These methods have the same parameters as listed above, except that the body content is given as a `contentType string` and `body io.Reader`, instead of a method-specific struct.
var MethodHasParamsStruct = map[string]bool{ "ListByronAddresses": true, "ListByronTransactions": true, "GetNetworkClock": true, "GetCurrentSmashHealth": true, "ListStakePools": true, "ListAddresses": true, "ListTransactions": true, }
MethodHasParamsStruct contains the names of all methods that include a `params` struct which is not passed in the HTTP request body. This `params` struct and all contained values are optional for the request (i.e. the method argument can be set to nil).
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
func LoadCACert ¶
LoadCACert loads the given server certificate into a certificate pool, which can be set in the `RootCAs` field of `tls.Config`.
func MakeArgument ¶
func MakeArgument(method string) interface{}
MakeArgument returns a value of the non-string argument of the given method. For methods that do not have a non-string argument, or for unknown methods, MakeArgument returns nil. All generated client methods have at most one non-string argument, which can be a struct or a pointer to a struct. TODO this could and should be auto-generated from swagger.yaml or based on the source code of ClientInterface.
func MakeTLSConfig ¶
MakeTLSConfig creates a *tls.Config objects based on the GODANO_WALLET_CLIENT_* environment variables defined above.
func NewByronSelectCoinsRequest ¶
func NewByronSelectCoinsRequest(server string, walletId string, body ByronSelectCoinsJSONRequestBody) (*http.Request, error)
NewByronSelectCoinsRequest calls the generic ByronSelectCoins builder with application/json body
func NewByronSelectCoinsRequestWithBody ¶
func NewByronSelectCoinsRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewByronSelectCoinsRequestWithBody generates requests for ByronSelectCoins with any type of body
func NewCreateAddressRequest ¶
func NewCreateAddressRequest(server string, walletId string, body CreateAddressJSONRequestBody) (*http.Request, error)
NewCreateAddressRequest calls the generic CreateAddress builder with application/json body
func NewCreateAddressRequestWithBody ¶
func NewCreateAddressRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAddressRequestWithBody generates requests for CreateAddress with any type of body
func NewDeleteByronTransactionRequest ¶
func NewDeleteByronTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
NewDeleteByronTransactionRequest generates requests for DeleteByronTransaction
func NewDeleteByronWalletRequest ¶
NewDeleteByronWalletRequest generates requests for DeleteByronWallet
func NewDeleteSharedWalletRequest ¶
NewDeleteSharedWalletRequest generates requests for DeleteSharedWallet
func NewDeleteTransactionRequest ¶
func NewDeleteTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
NewDeleteTransactionRequest generates requests for DeleteTransaction
func NewDeleteWalletRequest ¶
NewDeleteWalletRequest generates requests for DeleteWallet
func NewGetAssetDefaultRequest ¶
func NewGetAssetDefaultRequest(server string, walletId string, policyId string) (*http.Request, error)
NewGetAssetDefaultRequest generates requests for GetAssetDefault
func NewGetAssetRequest ¶
func NewGetAssetRequest(server string, walletId string, policyId string, assetName string) (*http.Request, error)
NewGetAssetRequest generates requests for GetAsset
func NewGetByronAssetDefaultRequest ¶
func NewGetByronAssetDefaultRequest(server string, walletId string, policyId string) (*http.Request, error)
NewGetByronAssetDefaultRequest generates requests for GetByronAssetDefault
func NewGetByronAssetRequest ¶
func NewGetByronAssetRequest(server string, walletId string, policyId string, assetName string) (*http.Request, error)
NewGetByronAssetRequest generates requests for GetByronAsset
func NewGetByronTransactionRequest ¶
func NewGetByronTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
NewGetByronTransactionRequest generates requests for GetByronTransaction
func NewGetByronUTxOsStatisticsRequest ¶
NewGetByronUTxOsStatisticsRequest generates requests for GetByronUTxOsStatistics
func NewGetByronWalletMigrationInfoRequest ¶
NewGetByronWalletMigrationInfoRequest generates requests for GetByronWalletMigrationInfo
func NewGetByronWalletRequest ¶
NewGetByronWalletRequest generates requests for GetByronWallet
func NewGetCurrentSmashHealthRequest ¶
func NewGetCurrentSmashHealthRequest(server string, params *GetCurrentSmashHealthParams) (*http.Request, error)
NewGetCurrentSmashHealthRequest generates requests for GetCurrentSmashHealth
func NewGetDelegationFeeRequest ¶
NewGetDelegationFeeRequest generates requests for GetDelegationFee
func NewGetMaintenanceActionsRequest ¶
NewGetMaintenanceActionsRequest generates requests for GetMaintenanceActions
func NewGetNetworkClockRequest ¶
func NewGetNetworkClockRequest(server string, params *GetNetworkClockParams) (*http.Request, error)
NewGetNetworkClockRequest generates requests for GetNetworkClock
func NewGetNetworkInformationRequest ¶
NewGetNetworkInformationRequest generates requests for GetNetworkInformation
func NewGetNetworkParametersRequest ¶
NewGetNetworkParametersRequest generates requests for GetNetworkParameters
func NewGetSettingsRequest ¶
NewGetSettingsRequest generates requests for GetSettings
func NewGetSharedWalletRequest ¶
NewGetSharedWalletRequest generates requests for GetSharedWallet
func NewGetShelleyWalletMigrationInfoRequest ¶
NewGetShelleyWalletMigrationInfoRequest generates requests for GetShelleyWalletMigrationInfo
func NewGetTransactionRequest ¶
func NewGetTransactionRequest(server string, walletId string, transactionId string) (*http.Request, error)
NewGetTransactionRequest generates requests for GetTransaction
func NewGetUTxOsStatisticsRequest ¶
NewGetUTxOsStatisticsRequest generates requests for GetUTxOsStatistics
func NewGetWalletKeyRequest ¶
func NewGetWalletKeyRequest(server string, walletId string, role string, index string) (*http.Request, error)
NewGetWalletKeyRequest generates requests for GetWalletKey
func NewGetWalletRequest ¶
NewGetWalletRequest generates requests for GetWallet
func NewImportAddressRequest ¶
func NewImportAddressRequest(server string, walletId string, addressId string) (*http.Request, error)
NewImportAddressRequest generates requests for ImportAddress
func NewImportAddressesRequest ¶
func NewImportAddressesRequest(server string, walletId string, body ImportAddressesJSONRequestBody) (*http.Request, error)
NewImportAddressesRequest calls the generic ImportAddresses builder with application/json body
func NewImportAddressesRequestWithBody ¶
func NewImportAddressesRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewImportAddressesRequestWithBody generates requests for ImportAddresses with any type of body
func NewInspectAddressRequest ¶
NewInspectAddressRequest generates requests for InspectAddress
func NewJoinStakePoolRequest ¶
func NewJoinStakePoolRequest(server string, stakePoolId string, walletId string, body JoinStakePoolJSONRequestBody) (*http.Request, error)
NewJoinStakePoolRequest calls the generic JoinStakePool builder with application/json body
func NewJoinStakePoolRequestWithBody ¶
func NewJoinStakePoolRequestWithBody(server string, stakePoolId string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewJoinStakePoolRequestWithBody generates requests for JoinStakePool with any type of body
func NewListAddressesRequest ¶
func NewListAddressesRequest(server string, walletId string, params *ListAddressesParams) (*http.Request, error)
NewListAddressesRequest generates requests for ListAddresses
func NewListAssetsRequest ¶
NewListAssetsRequest generates requests for ListAssets
func NewListByronAddressesRequest ¶
func NewListByronAddressesRequest(server string, walletId string, params *ListByronAddressesParams) (*http.Request, error)
NewListByronAddressesRequest generates requests for ListByronAddresses
func NewListByronAssetsRequest ¶
NewListByronAssetsRequest generates requests for ListByronAssets
func NewListByronTransactionsRequest ¶
func NewListByronTransactionsRequest(server string, walletId string, params *ListByronTransactionsParams) (*http.Request, error)
NewListByronTransactionsRequest generates requests for ListByronTransactions
func NewListByronWalletsRequest ¶
NewListByronWalletsRequest generates requests for ListByronWallets
func NewListStakePoolsRequest ¶
func NewListStakePoolsRequest(server string, params *ListStakePoolsParams) (*http.Request, error)
NewListStakePoolsRequest generates requests for ListStakePools
func NewListTransactionsRequest ¶
func NewListTransactionsRequest(server string, walletId string, params *ListTransactionsParams) (*http.Request, error)
NewListTransactionsRequest generates requests for ListTransactions
func NewListWalletsRequest ¶
NewListWalletsRequest generates requests for ListWallets
func NewMigrateByronWalletRequest ¶
func NewMigrateByronWalletRequest(server string, walletId string, body MigrateByronWalletJSONRequestBody) (*http.Request, error)
NewMigrateByronWalletRequest calls the generic MigrateByronWallet builder with application/json body
func NewMigrateByronWalletRequestWithBody ¶
func NewMigrateByronWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewMigrateByronWalletRequestWithBody generates requests for MigrateByronWallet with any type of body
func NewMigrateShelleyWalletRequest ¶
func NewMigrateShelleyWalletRequest(server string, walletId string, body MigrateShelleyWalletJSONRequestBody) (*http.Request, error)
NewMigrateShelleyWalletRequest calls the generic MigrateShelleyWallet builder with application/json body
func NewMigrateShelleyWalletRequestWithBody ¶
func NewMigrateShelleyWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewMigrateShelleyWalletRequestWithBody generates requests for MigrateShelleyWallet with any type of body
func NewPatchSharedWalletInDelegationRequest ¶
func NewPatchSharedWalletInDelegationRequest(server string, walletId string, body PatchSharedWalletInDelegationJSONRequestBody) (*http.Request, error)
NewPatchSharedWalletInDelegationRequest calls the generic PatchSharedWalletInDelegation builder with application/json body
func NewPatchSharedWalletInDelegationRequestWithBody ¶
func NewPatchSharedWalletInDelegationRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPatchSharedWalletInDelegationRequestWithBody generates requests for PatchSharedWalletInDelegation with any type of body
func NewPatchSharedWalletInPaymentRequest ¶
func NewPatchSharedWalletInPaymentRequest(server string, walletId string, body PatchSharedWalletInPaymentJSONRequestBody) (*http.Request, error)
NewPatchSharedWalletInPaymentRequest calls the generic PatchSharedWalletInPayment builder with application/json body
func NewPatchSharedWalletInPaymentRequestWithBody ¶
func NewPatchSharedWalletInPaymentRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPatchSharedWalletInPaymentRequestWithBody generates requests for PatchSharedWalletInPayment with any type of body
func NewPostAccountKeyRequest ¶
func NewPostAccountKeyRequest(server string, walletId string, index string, body PostAccountKeyJSONRequestBody) (*http.Request, error)
NewPostAccountKeyRequest calls the generic PostAccountKey builder with application/json body
func NewPostAccountKeyRequestWithBody ¶
func NewPostAccountKeyRequestWithBody(server string, walletId string, index string, contentType string, body io.Reader) (*http.Request, error)
NewPostAccountKeyRequestWithBody generates requests for PostAccountKey with any type of body
func NewPostAnyAddressRequest ¶
func NewPostAnyAddressRequest(server string, body PostAnyAddressJSONRequestBody) (*http.Request, error)
NewPostAnyAddressRequest calls the generic PostAnyAddress builder with application/json body
func NewPostAnyAddressRequestWithBody ¶
func NewPostAnyAddressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostAnyAddressRequestWithBody generates requests for PostAnyAddress with any type of body
func NewPostByronTransactionFeeRequest ¶
func NewPostByronTransactionFeeRequest(server string, walletId string, body PostByronTransactionFeeJSONRequestBody) (*http.Request, error)
NewPostByronTransactionFeeRequest calls the generic PostByronTransactionFee builder with application/json body
func NewPostByronTransactionFeeRequestWithBody ¶
func NewPostByronTransactionFeeRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPostByronTransactionFeeRequestWithBody generates requests for PostByronTransactionFee with any type of body
func NewPostByronTransactionRequest ¶
func NewPostByronTransactionRequest(server string, walletId string, body PostByronTransactionJSONRequestBody) (*http.Request, error)
NewPostByronTransactionRequest calls the generic PostByronTransaction builder with application/json body
func NewPostByronTransactionRequestWithBody ¶
func NewPostByronTransactionRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPostByronTransactionRequestWithBody generates requests for PostByronTransaction with any type of body
func NewPostByronWalletRequest ¶
func NewPostByronWalletRequest(server string, body PostByronWalletJSONRequestBody) (*http.Request, error)
NewPostByronWalletRequest calls the generic PostByronWallet builder with application/json body
func NewPostByronWalletRequestWithBody ¶
func NewPostByronWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostByronWalletRequestWithBody generates requests for PostByronWallet with any type of body
func NewPostExternalTransactionRequestWithBody ¶
func NewPostExternalTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostExternalTransactionRequestWithBody generates requests for PostExternalTransaction with any type of body
func NewPostMaintenanceActionRequest ¶
func NewPostMaintenanceActionRequest(server string, body PostMaintenanceActionJSONRequestBody) (*http.Request, error)
NewPostMaintenanceActionRequest calls the generic PostMaintenanceAction builder with application/json body
func NewPostMaintenanceActionRequestWithBody ¶
func NewPostMaintenanceActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostMaintenanceActionRequestWithBody generates requests for PostMaintenanceAction with any type of body
func NewPostSharedWalletRequest ¶
func NewPostSharedWalletRequest(server string, body PostSharedWalletJSONRequestBody) (*http.Request, error)
NewPostSharedWalletRequest calls the generic PostSharedWallet builder with application/json body
func NewPostSharedWalletRequestWithBody ¶
func NewPostSharedWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostSharedWalletRequestWithBody generates requests for PostSharedWallet with any type of body
func NewPostTransactionFeeRequest ¶
func NewPostTransactionFeeRequest(server string, walletId string, body PostTransactionFeeJSONRequestBody) (*http.Request, error)
NewPostTransactionFeeRequest calls the generic PostTransactionFee builder with application/json body
func NewPostTransactionFeeRequestWithBody ¶
func NewPostTransactionFeeRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPostTransactionFeeRequestWithBody generates requests for PostTransactionFee with any type of body
func NewPostTransactionRequest ¶
func NewPostTransactionRequest(server string, walletId string, body PostTransactionJSONRequestBody) (*http.Request, error)
NewPostTransactionRequest calls the generic PostTransaction builder with application/json body
func NewPostTransactionRequestWithBody ¶
func NewPostTransactionRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPostTransactionRequestWithBody generates requests for PostTransaction with any type of body
func NewPostWalletRequest ¶
func NewPostWalletRequest(server string, body PostWalletJSONRequestBody) (*http.Request, error)
NewPostWalletRequest calls the generic PostWallet builder with application/json body
func NewPostWalletRequestWithBody ¶
func NewPostWalletRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostWalletRequestWithBody generates requests for PostWallet with any type of body
func NewPutByronWalletPassphraseRequest ¶
func NewPutByronWalletPassphraseRequest(server string, walletId string, body PutByronWalletPassphraseJSONRequestBody) (*http.Request, error)
NewPutByronWalletPassphraseRequest calls the generic PutByronWalletPassphrase builder with application/json body
func NewPutByronWalletPassphraseRequestWithBody ¶
func NewPutByronWalletPassphraseRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPutByronWalletPassphraseRequestWithBody generates requests for PutByronWalletPassphrase with any type of body
func NewPutByronWalletRequest ¶
func NewPutByronWalletRequest(server string, walletId string, body PutByronWalletJSONRequestBody) (*http.Request, error)
NewPutByronWalletRequest calls the generic PutByronWallet builder with application/json body
func NewPutByronWalletRequestWithBody ¶
func NewPutByronWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPutByronWalletRequestWithBody generates requests for PutByronWallet with any type of body
func NewPutSettingsRequest ¶
func NewPutSettingsRequest(server string, body PutSettingsJSONRequestBody) (*http.Request, error)
NewPutSettingsRequest calls the generic PutSettings builder with application/json body
func NewPutSettingsRequestWithBody ¶
func NewPutSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPutSettingsRequestWithBody generates requests for PutSettings with any type of body
func NewPutWalletPassphraseRequest ¶
func NewPutWalletPassphraseRequest(server string, walletId string, body PutWalletPassphraseJSONRequestBody) (*http.Request, error)
NewPutWalletPassphraseRequest calls the generic PutWalletPassphrase builder with application/json body
func NewPutWalletPassphraseRequestWithBody ¶
func NewPutWalletPassphraseRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPutWalletPassphraseRequestWithBody generates requests for PutWalletPassphrase with any type of body
func NewPutWalletRequest ¶
func NewPutWalletRequest(server string, walletId string, body PutWalletJSONRequestBody) (*http.Request, error)
NewPutWalletRequest calls the generic PutWallet builder with application/json body
func NewPutWalletRequestWithBody ¶
func NewPutWalletRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewPutWalletRequestWithBody generates requests for PutWallet with any type of body
func NewQuitStakePoolRequest ¶
func NewQuitStakePoolRequest(server string, walletId string, body QuitStakePoolJSONRequestBody) (*http.Request, error)
NewQuitStakePoolRequest calls the generic QuitStakePool builder with application/json body
func NewQuitStakePoolRequestWithBody ¶
func NewQuitStakePoolRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewQuitStakePoolRequestWithBody generates requests for QuitStakePool with any type of body
func NewSelectCoinsRequest ¶
func NewSelectCoinsRequest(server string, walletId string, body SelectCoinsJSONRequestBody) (*http.Request, error)
NewSelectCoinsRequest calls the generic SelectCoins builder with application/json body
func NewSelectCoinsRequestWithBody ¶
func NewSelectCoinsRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)
NewSelectCoinsRequestWithBody generates requests for SelectCoins with any type of body
func NewSignMetadataRequest ¶
func NewSignMetadataRequest(server string, walletId string, role string, index string, body SignMetadataJSONRequestBody) (*http.Request, error)
NewSignMetadataRequest calls the generic SignMetadata builder with application/json body
func NewSignMetadataRequestWithBody ¶
func NewSignMetadataRequestWithBody(server string, walletId string, role string, index string, contentType string, body io.Reader) (*http.Request, error)
NewSignMetadataRequestWithBody generates requests for SignMetadata with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type ByronSelectCoinsJSONBody ¶
type ByronSelectCoinsJSONBody struct { // A list of target outputs Payments []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"payments"` }
ByronSelectCoinsJSONBody defines parameters for ByronSelectCoins.
type ByronSelectCoinsJSONRequestBody ¶
type ByronSelectCoinsJSONRequestBody ByronSelectCoinsJSONBody
ByronSelectCoinsJSONRequestBody defines body for ByronSelectCoins for application/json ContentType.
type ByronSelectCoinsResponse ¶
type ByronSelectCoinsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Certificates *[]struct { CertificateType string `json:"certificate_type"` // A unique identifier for the pool. Pool *string `json:"pool,omitempty"` RewardAccountPath []string `json:"reward_account_path"` } `json:"certificates,omitempty"` // A list of transaction change outputs. Change []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` } `json:"change"` // A list of deposits associated with a transaction. Deposits *[]struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposits,omitempty"` // A list of transaction inputs Inputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // Transaction metadata, serialized according to the expected on-chain binary format, base64-encoded. Metadata *string `json:"metadata,omitempty"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A list of withdrawals from stake addresses. Withdrawals *[]struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` StakeAddress string `json:"stake_address"` } `json:"withdrawals,omitempty"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseByronSelectCoinsResponse ¶
func ParseByronSelectCoinsResponse(rsp *http.Response) (*ByronSelectCoinsResponse, error)
ParseByronSelectCoinsResponse parses an HTTP response from a ByronSelectCoinsWithResponse call
func (ByronSelectCoinsResponse) Status ¶
func (r ByronSelectCoinsResponse) Status() string
Status returns HTTPResponse.Status
func (ByronSelectCoinsResponse) StatusCode ¶
func (r ByronSelectCoinsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func NewHTTPSClient ¶
NewHTTPSClient returns a `Client` with the given TLS configuration.
func (*Client) ByronSelectCoins ¶
func (c *Client) ByronSelectCoins(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ByronSelectCoinsWithBody ¶
func (*Client) CreateAddress ¶
func (c *Client) CreateAddress(ctx context.Context, walletId string, body CreateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAddressWithBody ¶
func (*Client) DeleteByronTransaction ¶
func (*Client) DeleteByronWallet ¶
func (*Client) DeleteSharedWallet ¶
func (*Client) DeleteTransaction ¶
func (*Client) DeleteWallet ¶
func (*Client) GetAssetDefault ¶
func (*Client) GetByronAsset ¶
func (*Client) GetByronAssetDefault ¶
func (*Client) GetByronTransaction ¶
func (*Client) GetByronUTxOsStatistics ¶
func (*Client) GetByronWallet ¶
func (*Client) GetByronWalletMigrationInfo ¶
func (*Client) GetCurrentSmashHealth ¶
func (c *Client) GetCurrentSmashHealth(ctx context.Context, params *GetCurrentSmashHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDelegationFee ¶
func (*Client) GetMaintenanceActions ¶
func (*Client) GetNetworkClock ¶
func (c *Client) GetNetworkClock(ctx context.Context, params *GetNetworkClockParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetNetworkInformation ¶
func (*Client) GetNetworkParameters ¶
func (*Client) GetSettings ¶
func (*Client) GetSharedWallet ¶
func (*Client) GetShelleyWalletMigrationInfo ¶
func (*Client) GetTransaction ¶
func (*Client) GetUTxOsStatistics ¶
func (*Client) GetWalletKey ¶
func (*Client) ImportAddress ¶
func (*Client) ImportAddresses ¶
func (c *Client) ImportAddresses(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ImportAddressesWithBody ¶
func (*Client) InspectAddress ¶
func (*Client) JoinStakePool ¶
func (c *Client) JoinStakePool(ctx context.Context, stakePoolId string, walletId string, body JoinStakePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) JoinStakePoolWithBody ¶
func (*Client) ListAddresses ¶
func (c *Client) ListAddresses(ctx context.Context, walletId string, params *ListAddressesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListAssets ¶
func (*Client) ListByronAddresses ¶
func (c *Client) ListByronAddresses(ctx context.Context, walletId string, params *ListByronAddressesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListByronAssets ¶
func (*Client) ListByronTransactions ¶
func (c *Client) ListByronTransactions(ctx context.Context, walletId string, params *ListByronTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListByronWallets ¶
func (*Client) ListStakePools ¶
func (c *Client) ListStakePools(ctx context.Context, params *ListStakePoolsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTransactions ¶
func (c *Client) ListTransactions(ctx context.Context, walletId string, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListWallets ¶
func (*Client) MigrateByronWallet ¶
func (c *Client) MigrateByronWallet(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MigrateByronWalletWithBody ¶
func (*Client) MigrateShelleyWallet ¶
func (c *Client) MigrateShelleyWallet(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MigrateShelleyWalletWithBody ¶
func (*Client) PatchSharedWalletInDelegation ¶
func (c *Client) PatchSharedWalletInDelegation(ctx context.Context, walletId string, body PatchSharedWalletInDelegationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchSharedWalletInDelegationWithBody ¶
func (*Client) PatchSharedWalletInPayment ¶
func (c *Client) PatchSharedWalletInPayment(ctx context.Context, walletId string, body PatchSharedWalletInPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchSharedWalletInPaymentWithBody ¶
func (*Client) PostAccountKey ¶
func (c *Client) PostAccountKey(ctx context.Context, walletId string, index string, body PostAccountKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostAccountKeyWithBody ¶
func (*Client) PostAnyAddress ¶
func (c *Client) PostAnyAddress(ctx context.Context, body PostAnyAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostAnyAddressWithBody ¶
func (*Client) PostByronTransaction ¶
func (c *Client) PostByronTransaction(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostByronTransactionFee ¶
func (c *Client) PostByronTransactionFee(ctx context.Context, walletId string, body PostByronTransactionFeeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostByronTransactionFeeWithBody ¶
func (*Client) PostByronTransactionWithBody ¶
func (*Client) PostByronWallet ¶
func (c *Client) PostByronWallet(ctx context.Context, body PostByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostByronWalletWithBody ¶
func (*Client) PostExternalTransactionWithBody ¶
func (*Client) PostMaintenanceAction ¶
func (c *Client) PostMaintenanceAction(ctx context.Context, body PostMaintenanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostMaintenanceActionWithBody ¶
func (*Client) PostSharedWallet ¶
func (c *Client) PostSharedWallet(ctx context.Context, body PostSharedWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostSharedWalletWithBody ¶
func (*Client) PostTransaction ¶
func (c *Client) PostTransaction(ctx context.Context, walletId string, body PostTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostTransactionFee ¶
func (c *Client) PostTransactionFee(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostTransactionFeeWithBody ¶
func (*Client) PostTransactionWithBody ¶
func (*Client) PostWallet ¶
func (c *Client) PostWallet(ctx context.Context, body PostWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostWalletWithBody ¶
func (*Client) PutByronWallet ¶
func (c *Client) PutByronWallet(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutByronWalletPassphrase ¶
func (c *Client) PutByronWalletPassphrase(ctx context.Context, walletId string, body PutByronWalletPassphraseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutByronWalletPassphraseWithBody ¶
func (*Client) PutByronWalletWithBody ¶
func (*Client) PutSettings ¶
func (c *Client) PutSettings(ctx context.Context, body PutSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutSettingsWithBody ¶
func (*Client) PutWallet ¶
func (c *Client) PutWallet(ctx context.Context, walletId string, body PutWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutWalletPassphrase ¶
func (c *Client) PutWalletPassphrase(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutWalletPassphraseWithBody ¶
func (*Client) PutWalletWithBody ¶
func (*Client) QuitStakePool ¶
func (c *Client) QuitStakePool(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QuitStakePoolWithBody ¶
func (*Client) SelectCoins ¶
func (c *Client) SelectCoins(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SelectCoinsWithBody ¶
func (*Client) SignMetadata ¶
type ClientInterface ¶
type ClientInterface interface { // PostAnyAddress request with any body PostAnyAddressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostAnyAddress(ctx context.Context, body PostAnyAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // InspectAddress request InspectAddress(ctx context.Context, addressId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListByronWallets request ListByronWallets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostByronWallet request with any body PostByronWalletWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostByronWallet(ctx context.Context, body PostByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteByronWallet request DeleteByronWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronWallet request GetByronWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PutByronWallet request with any body PutByronWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutByronWallet(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListByronAddresses request ListByronAddresses(ctx context.Context, walletId string, params *ListByronAddressesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateAddress request with any body CreateAddressWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateAddress(ctx context.Context, walletId string, body CreateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ImportAddresses request with any body ImportAddressesWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ImportAddresses(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ImportAddress request ImportAddress(ctx context.Context, walletId string, addressId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListByronAssets request ListByronAssets(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronAssetDefault request GetByronAssetDefault(ctx context.Context, walletId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronAsset request GetByronAsset(ctx context.Context, walletId string, policyId string, assetName string, reqEditors ...RequestEditorFn) (*http.Response, error) // ByronSelectCoins request with any body ByronSelectCoinsWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ByronSelectCoins(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronWalletMigrationInfo request GetByronWalletMigrationInfo(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // MigrateByronWallet request with any body MigrateByronWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MigrateByronWallet(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutByronWalletPassphrase request with any body PutByronWalletPassphraseWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutByronWalletPassphrase(ctx context.Context, walletId string, body PutByronWalletPassphraseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostByronTransactionFee request with any body PostByronTransactionFeeWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostByronTransactionFee(ctx context.Context, walletId string, body PostByronTransactionFeeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronUTxOsStatistics request GetByronUTxOsStatistics(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListByronTransactions request ListByronTransactions(ctx context.Context, walletId string, params *ListByronTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostByronTransaction request with any body PostByronTransactionWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostByronTransaction(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteByronTransaction request DeleteByronTransaction(ctx context.Context, walletId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetByronTransaction request GetByronTransaction(ctx context.Context, walletId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNetworkClock request GetNetworkClock(ctx context.Context, params *GetNetworkClockParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNetworkInformation request GetNetworkInformation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNetworkParameters request GetNetworkParameters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostExternalTransaction request with any body PostExternalTransactionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSettings request GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PutSettings request with any body PutSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutSettings(ctx context.Context, body PutSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) PostSharedWalletWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) DeleteSharedWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) GetSharedWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) PatchSharedWalletInDelegationWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PatchSharedWalletInPaymentWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCurrentSmashHealth request GetCurrentSmashHealth(ctx context.Context, params *GetCurrentSmashHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListStakePools request ListStakePools(ctx context.Context, params *ListStakePoolsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // QuitStakePool request with any body QuitStakePoolWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) QuitStakePool(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMaintenanceActions request GetMaintenanceActions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostMaintenanceAction request with any body PostMaintenanceActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostMaintenanceAction(ctx context.Context, body PostMaintenanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // JoinStakePool request with any body JoinStakePoolWithBody(ctx context.Context, stakePoolId string, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) JoinStakePool(ctx context.Context, stakePoolId string, walletId string, body JoinStakePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListWallets request ListWallets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostWallet request with any body PostWalletWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostWallet(ctx context.Context, body PostWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteWallet request DeleteWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWallet request GetWallet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PutWallet request with any body PutWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutWallet(ctx context.Context, walletId string, body PutWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAddresses request ListAddresses(ctx context.Context, walletId string, params *ListAddressesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAssets request ListAssets(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAssetDefault request GetAssetDefault(ctx context.Context, walletId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAsset request GetAsset(ctx context.Context, walletId string, policyId string, assetName string, reqEditors ...RequestEditorFn) (*http.Response, error) // SelectCoins request with any body SelectCoinsWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SelectCoins(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDelegationFee request GetDelegationFee(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PostAccountKey request with any body PostAccountKeyWithBody(ctx context.Context, walletId string, index string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostAccountKey(ctx context.Context, walletId string, index string, body PostAccountKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWalletKey request GetWalletKey(ctx context.Context, walletId string, role string, index string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetShelleyWalletMigrationInfo request GetShelleyWalletMigrationInfo(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // MigrateShelleyWallet request with any body MigrateShelleyWalletWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) MigrateShelleyWallet(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutWalletPassphrase request with any body PutWalletPassphraseWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutWalletPassphrase(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostTransactionFee request with any body PostTransactionFeeWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostTransactionFee(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SignMetadata request with any body SignMetadataWithBody(ctx context.Context, walletId string, role string, index string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SignMetadata(ctx context.Context, walletId string, role string, index string, body SignMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUTxOsStatistics request GetUTxOsStatistics(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListTransactions request ListTransactions(ctx context.Context, walletId string, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostTransaction request with any body PostTransactionWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostTransaction(ctx context.Context, walletId string, body PostTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteTransaction request DeleteTransaction(ctx context.Context, walletId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTransaction request GetTransaction(ctx context.Context, walletId string, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithHTTPSClient ¶
func WithHTTPSClient(tlsConfig *tls.Config) ClientOption
WithHTTPSClient returns a `ClientOption` that sets the given TLS configuration on clients.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func NewHTTPSClientWithResponses ¶
func NewHTTPSClientWithResponses(server string, tlsConfig *tls.Config) (*ClientWithResponses, error)
NewHTTPSClient returns a `ClientWithResponse` with the given TLS configuration.
func (*ClientWithResponses) ByronSelectCoinsWithBodyWithResponse ¶
func (c *ClientWithResponses) ByronSelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ByronSelectCoinsResponse, error)
ByronSelectCoinsWithBodyWithResponse request with arbitrary body returning *ByronSelectCoinsResponse
func (*ClientWithResponses) ByronSelectCoinsWithResponse ¶
func (c *ClientWithResponses) ByronSelectCoinsWithResponse(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody) (*ByronSelectCoinsResponse, error)
func (*ClientWithResponses) CreateAddressWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAddressWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*CreateAddressResponse, error)
CreateAddressWithBodyWithResponse request with arbitrary body returning *CreateAddressResponse
func (*ClientWithResponses) CreateAddressWithResponse ¶
func (c *ClientWithResponses) CreateAddressWithResponse(ctx context.Context, walletId string, body CreateAddressJSONRequestBody) (*CreateAddressResponse, error)
func (*ClientWithResponses) DeleteByronTransactionWithResponse ¶
func (c *ClientWithResponses) DeleteByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteByronTransactionResponse, error)
DeleteByronTransactionWithResponse request returning *DeleteByronTransactionResponse
func (*ClientWithResponses) DeleteByronWalletWithResponse ¶
func (c *ClientWithResponses) DeleteByronWalletWithResponse(ctx context.Context, walletId string) (*DeleteByronWalletResponse, error)
DeleteByronWalletWithResponse request returning *DeleteByronWalletResponse
func (*ClientWithResponses) DeleteSharedWalletWithResponse ¶
func (c *ClientWithResponses) DeleteSharedWalletWithResponse(ctx context.Context, walletId string) (*DeleteSharedWalletResponse, error)
DeleteSharedWalletWithResponse request returning *DeleteSharedWalletResponse
func (*ClientWithResponses) DeleteTransactionWithResponse ¶
func (c *ClientWithResponses) DeleteTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteTransactionResponse, error)
DeleteTransactionWithResponse request returning *DeleteTransactionResponse
func (*ClientWithResponses) DeleteWalletWithResponse ¶
func (c *ClientWithResponses) DeleteWalletWithResponse(ctx context.Context, walletId string) (*DeleteWalletResponse, error)
DeleteWalletWithResponse request returning *DeleteWalletResponse
func (*ClientWithResponses) GetAssetDefaultWithResponse ¶
func (c *ClientWithResponses) GetAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetAssetDefaultResponse, error)
GetAssetDefaultWithResponse request returning *GetAssetDefaultResponse
func (*ClientWithResponses) GetAssetWithResponse ¶
func (c *ClientWithResponses) GetAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetAssetResponse, error)
GetAssetWithResponse request returning *GetAssetResponse
func (*ClientWithResponses) GetByronAssetDefaultWithResponse ¶
func (c *ClientWithResponses) GetByronAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetByronAssetDefaultResponse, error)
GetByronAssetDefaultWithResponse request returning *GetByronAssetDefaultResponse
func (*ClientWithResponses) GetByronAssetWithResponse ¶
func (c *ClientWithResponses) GetByronAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetByronAssetResponse, error)
GetByronAssetWithResponse request returning *GetByronAssetResponse
func (*ClientWithResponses) GetByronTransactionWithResponse ¶
func (c *ClientWithResponses) GetByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetByronTransactionResponse, error)
GetByronTransactionWithResponse request returning *GetByronTransactionResponse
func (*ClientWithResponses) GetByronUTxOsStatisticsWithResponse ¶
func (c *ClientWithResponses) GetByronUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetByronUTxOsStatisticsResponse, error)
GetByronUTxOsStatisticsWithResponse request returning *GetByronUTxOsStatisticsResponse
func (*ClientWithResponses) GetByronWalletMigrationInfoWithResponse ¶
func (c *ClientWithResponses) GetByronWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetByronWalletMigrationInfoResponse, error)
GetByronWalletMigrationInfoWithResponse request returning *GetByronWalletMigrationInfoResponse
func (*ClientWithResponses) GetByronWalletWithResponse ¶
func (c *ClientWithResponses) GetByronWalletWithResponse(ctx context.Context, walletId string) (*GetByronWalletResponse, error)
GetByronWalletWithResponse request returning *GetByronWalletResponse
func (*ClientWithResponses) GetCurrentSmashHealthWithResponse ¶
func (c *ClientWithResponses) GetCurrentSmashHealthWithResponse(ctx context.Context, params *GetCurrentSmashHealthParams) (*GetCurrentSmashHealthResponse, error)
GetCurrentSmashHealthWithResponse request returning *GetCurrentSmashHealthResponse
func (*ClientWithResponses) GetDelegationFeeWithResponse ¶
func (c *ClientWithResponses) GetDelegationFeeWithResponse(ctx context.Context, walletId string) (*GetDelegationFeeResponse, error)
GetDelegationFeeWithResponse request returning *GetDelegationFeeResponse
func (*ClientWithResponses) GetMaintenanceActionsWithResponse ¶
func (c *ClientWithResponses) GetMaintenanceActionsWithResponse(ctx context.Context) (*GetMaintenanceActionsResponse, error)
GetMaintenanceActionsWithResponse request returning *GetMaintenanceActionsResponse
func (*ClientWithResponses) GetNetworkClockWithResponse ¶
func (c *ClientWithResponses) GetNetworkClockWithResponse(ctx context.Context, params *GetNetworkClockParams) (*GetNetworkClockResponse, error)
GetNetworkClockWithResponse request returning *GetNetworkClockResponse
func (*ClientWithResponses) GetNetworkInformationWithResponse ¶
func (c *ClientWithResponses) GetNetworkInformationWithResponse(ctx context.Context) (*GetNetworkInformationResponse, error)
GetNetworkInformationWithResponse request returning *GetNetworkInformationResponse
func (*ClientWithResponses) GetNetworkParametersWithResponse ¶
func (c *ClientWithResponses) GetNetworkParametersWithResponse(ctx context.Context) (*GetNetworkParametersResponse, error)
GetNetworkParametersWithResponse request returning *GetNetworkParametersResponse
func (*ClientWithResponses) GetSettingsWithResponse ¶
func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context) (*GetSettingsResponse, error)
GetSettingsWithResponse request returning *GetSettingsResponse
func (*ClientWithResponses) GetSharedWalletWithResponse ¶
func (c *ClientWithResponses) GetSharedWalletWithResponse(ctx context.Context, walletId string) (*GetSharedWalletResponse, error)
GetSharedWalletWithResponse request returning *GetSharedWalletResponse
func (*ClientWithResponses) GetShelleyWalletMigrationInfoWithResponse ¶
func (c *ClientWithResponses) GetShelleyWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetShelleyWalletMigrationInfoResponse, error)
GetShelleyWalletMigrationInfoWithResponse request returning *GetShelleyWalletMigrationInfoResponse
func (*ClientWithResponses) GetTransactionWithResponse ¶
func (c *ClientWithResponses) GetTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetTransactionResponse, error)
GetTransactionWithResponse request returning *GetTransactionResponse
func (*ClientWithResponses) GetUTxOsStatisticsWithResponse ¶
func (c *ClientWithResponses) GetUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetUTxOsStatisticsResponse, error)
GetUTxOsStatisticsWithResponse request returning *GetUTxOsStatisticsResponse
func (*ClientWithResponses) GetWalletKeyWithResponse ¶
func (c *ClientWithResponses) GetWalletKeyWithResponse(ctx context.Context, walletId string, role string, index string) (*GetWalletKeyResponse, error)
GetWalletKeyWithResponse request returning *GetWalletKeyResponse
func (*ClientWithResponses) GetWalletWithResponse ¶
func (c *ClientWithResponses) GetWalletWithResponse(ctx context.Context, walletId string) (*GetWalletResponse, error)
GetWalletWithResponse request returning *GetWalletResponse
func (*ClientWithResponses) ImportAddressWithResponse ¶
func (c *ClientWithResponses) ImportAddressWithResponse(ctx context.Context, walletId string, addressId string) (*ImportAddressResponse, error)
ImportAddressWithResponse request returning *ImportAddressResponse
func (*ClientWithResponses) ImportAddressesWithBodyWithResponse ¶
func (c *ClientWithResponses) ImportAddressesWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ImportAddressesResponse, error)
ImportAddressesWithBodyWithResponse request with arbitrary body returning *ImportAddressesResponse
func (*ClientWithResponses) ImportAddressesWithResponse ¶
func (c *ClientWithResponses) ImportAddressesWithResponse(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody) (*ImportAddressesResponse, error)
func (*ClientWithResponses) InspectAddressWithResponse ¶
func (c *ClientWithResponses) InspectAddressWithResponse(ctx context.Context, addressId string) (*InspectAddressResponse, error)
InspectAddressWithResponse request returning *InspectAddressResponse
func (*ClientWithResponses) JoinStakePoolWithBodyWithResponse ¶
func (c *ClientWithResponses) JoinStakePoolWithBodyWithResponse(ctx context.Context, stakePoolId string, walletId string, contentType string, body io.Reader) (*JoinStakePoolResponse, error)
JoinStakePoolWithBodyWithResponse request with arbitrary body returning *JoinStakePoolResponse
func (*ClientWithResponses) JoinStakePoolWithResponse ¶
func (c *ClientWithResponses) JoinStakePoolWithResponse(ctx context.Context, stakePoolId string, walletId string, body JoinStakePoolJSONRequestBody) (*JoinStakePoolResponse, error)
func (*ClientWithResponses) ListAddressesWithResponse ¶
func (c *ClientWithResponses) ListAddressesWithResponse(ctx context.Context, walletId string, params *ListAddressesParams) (*ListAddressesResponse, error)
ListAddressesWithResponse request returning *ListAddressesResponse
func (*ClientWithResponses) ListAssetsWithResponse ¶
func (c *ClientWithResponses) ListAssetsWithResponse(ctx context.Context, walletId string) (*ListAssetsResponse, error)
ListAssetsWithResponse request returning *ListAssetsResponse
func (*ClientWithResponses) ListByronAddressesWithResponse ¶
func (c *ClientWithResponses) ListByronAddressesWithResponse(ctx context.Context, walletId string, params *ListByronAddressesParams) (*ListByronAddressesResponse, error)
ListByronAddressesWithResponse request returning *ListByronAddressesResponse
func (*ClientWithResponses) ListByronAssetsWithResponse ¶
func (c *ClientWithResponses) ListByronAssetsWithResponse(ctx context.Context, walletId string) (*ListByronAssetsResponse, error)
ListByronAssetsWithResponse request returning *ListByronAssetsResponse
func (*ClientWithResponses) ListByronTransactionsWithResponse ¶
func (c *ClientWithResponses) ListByronTransactionsWithResponse(ctx context.Context, walletId string, params *ListByronTransactionsParams) (*ListByronTransactionsResponse, error)
ListByronTransactionsWithResponse request returning *ListByronTransactionsResponse
func (*ClientWithResponses) ListByronWalletsWithResponse ¶
func (c *ClientWithResponses) ListByronWalletsWithResponse(ctx context.Context) (*ListByronWalletsResponse, error)
ListByronWalletsWithResponse request returning *ListByronWalletsResponse
func (*ClientWithResponses) ListStakePoolsWithResponse ¶
func (c *ClientWithResponses) ListStakePoolsWithResponse(ctx context.Context, params *ListStakePoolsParams) (*ListStakePoolsResponse, error)
ListStakePoolsWithResponse request returning *ListStakePoolsResponse
func (*ClientWithResponses) ListTransactionsWithResponse ¶
func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, walletId string, params *ListTransactionsParams) (*ListTransactionsResponse, error)
ListTransactionsWithResponse request returning *ListTransactionsResponse
func (*ClientWithResponses) ListWalletsWithResponse ¶
func (c *ClientWithResponses) ListWalletsWithResponse(ctx context.Context) (*ListWalletsResponse, error)
ListWalletsWithResponse request returning *ListWalletsResponse
func (*ClientWithResponses) MigrateByronWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) MigrateByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateByronWalletResponse, error)
MigrateByronWalletWithBodyWithResponse request with arbitrary body returning *MigrateByronWalletResponse
func (*ClientWithResponses) MigrateByronWalletWithResponse ¶
func (c *ClientWithResponses) MigrateByronWalletWithResponse(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody) (*MigrateByronWalletResponse, error)
func (*ClientWithResponses) MigrateShelleyWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) MigrateShelleyWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateShelleyWalletResponse, error)
MigrateShelleyWalletWithBodyWithResponse request with arbitrary body returning *MigrateShelleyWalletResponse
func (*ClientWithResponses) MigrateShelleyWalletWithResponse ¶
func (c *ClientWithResponses) MigrateShelleyWalletWithResponse(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody) (*MigrateShelleyWalletResponse, error)
func (*ClientWithResponses) PatchSharedWalletInDelegationWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchSharedWalletInDelegationWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInDelegationResponse, error)
PatchSharedWalletInDelegationWithBodyWithResponse request with arbitrary body returning *PatchSharedWalletInDelegationResponse
func (*ClientWithResponses) PatchSharedWalletInDelegationWithResponse ¶
func (c *ClientWithResponses) PatchSharedWalletInDelegationWithResponse(ctx context.Context, walletId string, body PatchSharedWalletInDelegationJSONRequestBody) (*PatchSharedWalletInDelegationResponse, error)
func (*ClientWithResponses) PatchSharedWalletInPaymentWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchSharedWalletInPaymentWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInPaymentResponse, error)
PatchSharedWalletInPaymentWithBodyWithResponse request with arbitrary body returning *PatchSharedWalletInPaymentResponse
func (*ClientWithResponses) PatchSharedWalletInPaymentWithResponse ¶
func (c *ClientWithResponses) PatchSharedWalletInPaymentWithResponse(ctx context.Context, walletId string, body PatchSharedWalletInPaymentJSONRequestBody) (*PatchSharedWalletInPaymentResponse, error)
func (*ClientWithResponses) PostAccountKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) PostAccountKeyWithBodyWithResponse(ctx context.Context, walletId string, index string, contentType string, body io.Reader) (*PostAccountKeyResponse, error)
PostAccountKeyWithBodyWithResponse request with arbitrary body returning *PostAccountKeyResponse
func (*ClientWithResponses) PostAccountKeyWithResponse ¶
func (c *ClientWithResponses) PostAccountKeyWithResponse(ctx context.Context, walletId string, index string, body PostAccountKeyJSONRequestBody) (*PostAccountKeyResponse, error)
func (*ClientWithResponses) PostAnyAddressWithBodyWithResponse ¶
func (c *ClientWithResponses) PostAnyAddressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostAnyAddressResponse, error)
PostAnyAddressWithBodyWithResponse request with arbitrary body returning *PostAnyAddressResponse
func (*ClientWithResponses) PostAnyAddressWithResponse ¶
func (c *ClientWithResponses) PostAnyAddressWithResponse(ctx context.Context, body PostAnyAddressJSONRequestBody) (*PostAnyAddressResponse, error)
func (*ClientWithResponses) PostByronTransactionFeeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostByronTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionFeeResponse, error)
PostByronTransactionFeeWithBodyWithResponse request with arbitrary body returning *PostByronTransactionFeeResponse
func (*ClientWithResponses) PostByronTransactionFeeWithResponse ¶
func (c *ClientWithResponses) PostByronTransactionFeeWithResponse(ctx context.Context, walletId string, body PostByronTransactionFeeJSONRequestBody) (*PostByronTransactionFeeResponse, error)
func (*ClientWithResponses) PostByronTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) PostByronTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionResponse, error)
PostByronTransactionWithBodyWithResponse request with arbitrary body returning *PostByronTransactionResponse
func (*ClientWithResponses) PostByronTransactionWithResponse ¶
func (c *ClientWithResponses) PostByronTransactionWithResponse(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody) (*PostByronTransactionResponse, error)
func (*ClientWithResponses) PostByronWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) PostByronWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostByronWalletResponse, error)
PostByronWalletWithBodyWithResponse request with arbitrary body returning *PostByronWalletResponse
func (*ClientWithResponses) PostByronWalletWithResponse ¶
func (c *ClientWithResponses) PostByronWalletWithResponse(ctx context.Context, body PostByronWalletJSONRequestBody) (*PostByronWalletResponse, error)
func (*ClientWithResponses) PostExternalTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) PostExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostExternalTransactionResponse, error)
PostExternalTransactionWithBodyWithResponse request with arbitrary body returning *PostExternalTransactionResponse
func (*ClientWithResponses) PostMaintenanceActionWithBodyWithResponse ¶
func (c *ClientWithResponses) PostMaintenanceActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostMaintenanceActionResponse, error)
PostMaintenanceActionWithBodyWithResponse request with arbitrary body returning *PostMaintenanceActionResponse
func (*ClientWithResponses) PostMaintenanceActionWithResponse ¶
func (c *ClientWithResponses) PostMaintenanceActionWithResponse(ctx context.Context, body PostMaintenanceActionJSONRequestBody) (*PostMaintenanceActionResponse, error)
func (*ClientWithResponses) PostSharedWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) PostSharedWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostSharedWalletResponse, error)
PostSharedWalletWithBodyWithResponse request with arbitrary body returning *PostSharedWalletResponse
func (*ClientWithResponses) PostSharedWalletWithResponse ¶
func (c *ClientWithResponses) PostSharedWalletWithResponse(ctx context.Context, body PostSharedWalletJSONRequestBody) (*PostSharedWalletResponse, error)
func (*ClientWithResponses) PostTransactionFeeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionFeeResponse, error)
PostTransactionFeeWithBodyWithResponse request with arbitrary body returning *PostTransactionFeeResponse
func (*ClientWithResponses) PostTransactionFeeWithResponse ¶
func (c *ClientWithResponses) PostTransactionFeeWithResponse(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody) (*PostTransactionFeeResponse, error)
func (*ClientWithResponses) PostTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) PostTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionResponse, error)
PostTransactionWithBodyWithResponse request with arbitrary body returning *PostTransactionResponse
func (*ClientWithResponses) PostTransactionWithResponse ¶
func (c *ClientWithResponses) PostTransactionWithResponse(ctx context.Context, walletId string, body PostTransactionJSONRequestBody) (*PostTransactionResponse, error)
func (*ClientWithResponses) PostWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) PostWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostWalletResponse, error)
PostWalletWithBodyWithResponse request with arbitrary body returning *PostWalletResponse
func (*ClientWithResponses) PostWalletWithResponse ¶
func (c *ClientWithResponses) PostWalletWithResponse(ctx context.Context, body PostWalletJSONRequestBody) (*PostWalletResponse, error)
func (*ClientWithResponses) PutByronWalletPassphraseWithBodyWithResponse ¶
func (c *ClientWithResponses) PutByronWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletPassphraseResponse, error)
PutByronWalletPassphraseWithBodyWithResponse request with arbitrary body returning *PutByronWalletPassphraseResponse
func (*ClientWithResponses) PutByronWalletPassphraseWithResponse ¶
func (c *ClientWithResponses) PutByronWalletPassphraseWithResponse(ctx context.Context, walletId string, body PutByronWalletPassphraseJSONRequestBody) (*PutByronWalletPassphraseResponse, error)
func (*ClientWithResponses) PutByronWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) PutByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletResponse, error)
PutByronWalletWithBodyWithResponse request with arbitrary body returning *PutByronWalletResponse
func (*ClientWithResponses) PutByronWalletWithResponse ¶
func (c *ClientWithResponses) PutByronWalletWithResponse(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody) (*PutByronWalletResponse, error)
func (*ClientWithResponses) PutSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) PutSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PutSettingsResponse, error)
PutSettingsWithBodyWithResponse request with arbitrary body returning *PutSettingsResponse
func (*ClientWithResponses) PutSettingsWithResponse ¶
func (c *ClientWithResponses) PutSettingsWithResponse(ctx context.Context, body PutSettingsJSONRequestBody) (*PutSettingsResponse, error)
func (*ClientWithResponses) PutWalletPassphraseWithBodyWithResponse ¶
func (c *ClientWithResponses) PutWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletPassphraseResponse, error)
PutWalletPassphraseWithBodyWithResponse request with arbitrary body returning *PutWalletPassphraseResponse
func (*ClientWithResponses) PutWalletPassphraseWithResponse ¶
func (c *ClientWithResponses) PutWalletPassphraseWithResponse(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody) (*PutWalletPassphraseResponse, error)
func (*ClientWithResponses) PutWalletWithBodyWithResponse ¶
func (c *ClientWithResponses) PutWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletResponse, error)
PutWalletWithBodyWithResponse request with arbitrary body returning *PutWalletResponse
func (*ClientWithResponses) PutWalletWithResponse ¶
func (c *ClientWithResponses) PutWalletWithResponse(ctx context.Context, walletId string, body PutWalletJSONRequestBody) (*PutWalletResponse, error)
func (*ClientWithResponses) QuitStakePoolWithBodyWithResponse ¶
func (c *ClientWithResponses) QuitStakePoolWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*QuitStakePoolResponse, error)
QuitStakePoolWithBodyWithResponse request with arbitrary body returning *QuitStakePoolResponse
func (*ClientWithResponses) QuitStakePoolWithResponse ¶
func (c *ClientWithResponses) QuitStakePoolWithResponse(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody) (*QuitStakePoolResponse, error)
func (*ClientWithResponses) SelectCoinsWithBodyWithResponse ¶
func (c *ClientWithResponses) SelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*SelectCoinsResponse, error)
SelectCoinsWithBodyWithResponse request with arbitrary body returning *SelectCoinsResponse
func (*ClientWithResponses) SelectCoinsWithResponse ¶
func (c *ClientWithResponses) SelectCoinsWithResponse(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody) (*SelectCoinsResponse, error)
func (*ClientWithResponses) SignMetadataWithBodyWithResponse ¶
func (c *ClientWithResponses) SignMetadataWithBodyWithResponse(ctx context.Context, walletId string, role string, index string, contentType string, body io.Reader) (*SignMetadataResponse, error)
SignMetadataWithBodyWithResponse request with arbitrary body returning *SignMetadataResponse
func (*ClientWithResponses) SignMetadataWithResponse ¶
func (c *ClientWithResponses) SignMetadataWithResponse(ctx context.Context, walletId string, role string, index string, body SignMetadataJSONRequestBody) (*SignMetadataResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // PostAnyAddress request with any body PostAnyAddressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostAnyAddressResponse, error) PostAnyAddressWithResponse(ctx context.Context, body PostAnyAddressJSONRequestBody) (*PostAnyAddressResponse, error) // InspectAddress request InspectAddressWithResponse(ctx context.Context, addressId string) (*InspectAddressResponse, error) // ListByronWallets request ListByronWalletsWithResponse(ctx context.Context) (*ListByronWalletsResponse, error) // PostByronWallet request with any body PostByronWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostByronWalletResponse, error) PostByronWalletWithResponse(ctx context.Context, body PostByronWalletJSONRequestBody) (*PostByronWalletResponse, error) // DeleteByronWallet request DeleteByronWalletWithResponse(ctx context.Context, walletId string) (*DeleteByronWalletResponse, error) // GetByronWallet request GetByronWalletWithResponse(ctx context.Context, walletId string) (*GetByronWalletResponse, error) // PutByronWallet request with any body PutByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletResponse, error) PutByronWalletWithResponse(ctx context.Context, walletId string, body PutByronWalletJSONRequestBody) (*PutByronWalletResponse, error) // ListByronAddresses request ListByronAddressesWithResponse(ctx context.Context, walletId string, params *ListByronAddressesParams) (*ListByronAddressesResponse, error) // CreateAddress request with any body CreateAddressWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*CreateAddressResponse, error) CreateAddressWithResponse(ctx context.Context, walletId string, body CreateAddressJSONRequestBody) (*CreateAddressResponse, error) // ImportAddresses request with any body ImportAddressesWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ImportAddressesResponse, error) ImportAddressesWithResponse(ctx context.Context, walletId string, body ImportAddressesJSONRequestBody) (*ImportAddressesResponse, error) // ImportAddress request ImportAddressWithResponse(ctx context.Context, walletId string, addressId string) (*ImportAddressResponse, error) // ListByronAssets request ListByronAssetsWithResponse(ctx context.Context, walletId string) (*ListByronAssetsResponse, error) // GetByronAssetDefault request GetByronAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetByronAssetDefaultResponse, error) // GetByronAsset request GetByronAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetByronAssetResponse, error) // ByronSelectCoins request with any body ByronSelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*ByronSelectCoinsResponse, error) ByronSelectCoinsWithResponse(ctx context.Context, walletId string, body ByronSelectCoinsJSONRequestBody) (*ByronSelectCoinsResponse, error) // GetByronWalletMigrationInfo request GetByronWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetByronWalletMigrationInfoResponse, error) // MigrateByronWallet request with any body MigrateByronWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateByronWalletResponse, error) MigrateByronWalletWithResponse(ctx context.Context, walletId string, body MigrateByronWalletJSONRequestBody) (*MigrateByronWalletResponse, error) // PutByronWalletPassphrase request with any body PutByronWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutByronWalletPassphraseResponse, error) PutByronWalletPassphraseWithResponse(ctx context.Context, walletId string, body PutByronWalletPassphraseJSONRequestBody) (*PutByronWalletPassphraseResponse, error) // PostByronTransactionFee request with any body PostByronTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionFeeResponse, error) PostByronTransactionFeeWithResponse(ctx context.Context, walletId string, body PostByronTransactionFeeJSONRequestBody) (*PostByronTransactionFeeResponse, error) // GetByronUTxOsStatistics request GetByronUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetByronUTxOsStatisticsResponse, error) // ListByronTransactions request ListByronTransactionsWithResponse(ctx context.Context, walletId string, params *ListByronTransactionsParams) (*ListByronTransactionsResponse, error) // PostByronTransaction request with any body PostByronTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostByronTransactionResponse, error) PostByronTransactionWithResponse(ctx context.Context, walletId string, body PostByronTransactionJSONRequestBody) (*PostByronTransactionResponse, error) // DeleteByronTransaction request DeleteByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteByronTransactionResponse, error) // GetByronTransaction request GetByronTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetByronTransactionResponse, error) // GetNetworkClock request GetNetworkClockWithResponse(ctx context.Context, params *GetNetworkClockParams) (*GetNetworkClockResponse, error) // GetNetworkInformation request GetNetworkInformationWithResponse(ctx context.Context) (*GetNetworkInformationResponse, error) // GetNetworkParameters request GetNetworkParametersWithResponse(ctx context.Context) (*GetNetworkParametersResponse, error) // PostExternalTransaction request with any body PostExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostExternalTransactionResponse, error) // GetSettings request GetSettingsWithResponse(ctx context.Context) (*GetSettingsResponse, error) // PutSettings request with any body PutSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PutSettingsResponse, error) PutSettingsWithResponse(ctx context.Context, body PutSettingsJSONRequestBody) (*PutSettingsResponse, error) PostSharedWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostSharedWalletResponse, error) DeleteSharedWalletWithResponse(ctx context.Context, walletId string) (*DeleteSharedWalletResponse, error) GetSharedWalletWithResponse(ctx context.Context, walletId string) (*GetSharedWalletResponse, error) PatchSharedWalletInDelegationWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInDelegationResponse, error) PatchSharedWalletInPaymentWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PatchSharedWalletInPaymentResponse, error) // GetCurrentSmashHealth request GetCurrentSmashHealthWithResponse(ctx context.Context, params *GetCurrentSmashHealthParams) (*GetCurrentSmashHealthResponse, error) // ListStakePools request ListStakePoolsWithResponse(ctx context.Context, params *ListStakePoolsParams) (*ListStakePoolsResponse, error) // QuitStakePool request with any body QuitStakePoolWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*QuitStakePoolResponse, error) QuitStakePoolWithResponse(ctx context.Context, walletId string, body QuitStakePoolJSONRequestBody) (*QuitStakePoolResponse, error) // GetMaintenanceActions request GetMaintenanceActionsWithResponse(ctx context.Context) (*GetMaintenanceActionsResponse, error) // PostMaintenanceAction request with any body PostMaintenanceActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostMaintenanceActionResponse, error) PostMaintenanceActionWithResponse(ctx context.Context, body PostMaintenanceActionJSONRequestBody) (*PostMaintenanceActionResponse, error) // JoinStakePool request with any body JoinStakePoolWithBodyWithResponse(ctx context.Context, stakePoolId string, walletId string, contentType string, body io.Reader) (*JoinStakePoolResponse, error) JoinStakePoolWithResponse(ctx context.Context, stakePoolId string, walletId string, body JoinStakePoolJSONRequestBody) (*JoinStakePoolResponse, error) // ListWallets request ListWalletsWithResponse(ctx context.Context) (*ListWalletsResponse, error) // PostWallet request with any body PostWalletWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostWalletResponse, error) PostWalletWithResponse(ctx context.Context, body PostWalletJSONRequestBody) (*PostWalletResponse, error) // DeleteWallet request DeleteWalletWithResponse(ctx context.Context, walletId string) (*DeleteWalletResponse, error) // GetWallet request GetWalletWithResponse(ctx context.Context, walletId string) (*GetWalletResponse, error) // PutWallet request with any body PutWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletResponse, error) PutWalletWithResponse(ctx context.Context, walletId string, body PutWalletJSONRequestBody) (*PutWalletResponse, error) // ListAddresses request ListAddressesWithResponse(ctx context.Context, walletId string, params *ListAddressesParams) (*ListAddressesResponse, error) // ListAssets request ListAssetsWithResponse(ctx context.Context, walletId string) (*ListAssetsResponse, error) // GetAssetDefault request GetAssetDefaultWithResponse(ctx context.Context, walletId string, policyId string) (*GetAssetDefaultResponse, error) // GetAsset request GetAssetWithResponse(ctx context.Context, walletId string, policyId string, assetName string) (*GetAssetResponse, error) // SelectCoins request with any body SelectCoinsWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*SelectCoinsResponse, error) SelectCoinsWithResponse(ctx context.Context, walletId string, body SelectCoinsJSONRequestBody) (*SelectCoinsResponse, error) // GetDelegationFee request GetDelegationFeeWithResponse(ctx context.Context, walletId string) (*GetDelegationFeeResponse, error) // PostAccountKey request with any body PostAccountKeyWithBodyWithResponse(ctx context.Context, walletId string, index string, contentType string, body io.Reader) (*PostAccountKeyResponse, error) PostAccountKeyWithResponse(ctx context.Context, walletId string, index string, body PostAccountKeyJSONRequestBody) (*PostAccountKeyResponse, error) // GetWalletKey request GetWalletKeyWithResponse(ctx context.Context, walletId string, role string, index string) (*GetWalletKeyResponse, error) // GetShelleyWalletMigrationInfo request GetShelleyWalletMigrationInfoWithResponse(ctx context.Context, walletId string) (*GetShelleyWalletMigrationInfoResponse, error) // MigrateShelleyWallet request with any body MigrateShelleyWalletWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*MigrateShelleyWalletResponse, error) MigrateShelleyWalletWithResponse(ctx context.Context, walletId string, body MigrateShelleyWalletJSONRequestBody) (*MigrateShelleyWalletResponse, error) // PutWalletPassphrase request with any body PutWalletPassphraseWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PutWalletPassphraseResponse, error) PutWalletPassphraseWithResponse(ctx context.Context, walletId string, body PutWalletPassphraseJSONRequestBody) (*PutWalletPassphraseResponse, error) // PostTransactionFee request with any body PostTransactionFeeWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionFeeResponse, error) PostTransactionFeeWithResponse(ctx context.Context, walletId string, body PostTransactionFeeJSONRequestBody) (*PostTransactionFeeResponse, error) // SignMetadata request with any body SignMetadataWithBodyWithResponse(ctx context.Context, walletId string, role string, index string, contentType string, body io.Reader) (*SignMetadataResponse, error) SignMetadataWithResponse(ctx context.Context, walletId string, role string, index string, body SignMetadataJSONRequestBody) (*SignMetadataResponse, error) // GetUTxOsStatistics request GetUTxOsStatisticsWithResponse(ctx context.Context, walletId string) (*GetUTxOsStatisticsResponse, error) // ListTransactions request ListTransactionsWithResponse(ctx context.Context, walletId string, params *ListTransactionsParams) (*ListTransactionsResponse, error) // PostTransaction request with any body PostTransactionWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader) (*PostTransactionResponse, error) PostTransactionWithResponse(ctx context.Context, walletId string, body PostTransactionJSONRequestBody) (*PostTransactionResponse, error) // DeleteTransaction request DeleteTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*DeleteTransactionResponse, error) // GetTransaction request GetTransactionWithResponse(ctx context.Context, walletId string, transactionId string) (*GetTransactionResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAddressJSONBody ¶
type CreateAddressJSONBody struct { // An address derivation index. AddressIndex *float32 `json:"address_index,omitempty"` // A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) Passphrase string `json:"passphrase"` }
CreateAddressJSONBody defines parameters for CreateAddress.
type CreateAddressJSONRequestBody ¶
type CreateAddressJSONRequestBody CreateAddressJSONBody
CreateAddressJSONRequestBody defines body for CreateAddress for application/json ContentType.
type CreateAddressResponse ¶
type CreateAddressResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` Id string `json:"id"` State string `json:"state"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParseCreateAddressResponse ¶
func ParseCreateAddressResponse(rsp *http.Response) (*CreateAddressResponse, error)
ParseCreateAddressResponse parses an HTTP response from a CreateAddressWithResponse call
func (CreateAddressResponse) Status ¶
func (r CreateAddressResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAddressResponse) StatusCode ¶
func (r CreateAddressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteByronTransactionResponse ¶
type DeleteByronTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON403 *struct { Code string `json:"code"` // Occurs when attempting to delete a transaction which is neither pending nor expired. Message string `json:"message"` } JSON404 *interface{} JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseDeleteByronTransactionResponse ¶
func ParseDeleteByronTransactionResponse(rsp *http.Response) (*DeleteByronTransactionResponse, error)
ParseDeleteByronTransactionResponse parses an HTTP response from a DeleteByronTransactionWithResponse call
func (DeleteByronTransactionResponse) Status ¶
func (r DeleteByronTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteByronTransactionResponse) StatusCode ¶
func (r DeleteByronTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteByronWalletResponse ¶
type DeleteByronWalletResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseDeleteByronWalletResponse ¶
func ParseDeleteByronWalletResponse(rsp *http.Response) (*DeleteByronWalletResponse, error)
ParseDeleteByronWalletResponse parses an HTTP response from a DeleteByronWalletWithResponse call
func (DeleteByronWalletResponse) Status ¶
func (r DeleteByronWalletResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteByronWalletResponse) StatusCode ¶
func (r DeleteByronWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSharedWalletResponse ¶
type DeleteSharedWalletResponse struct { string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }Code
func ParseDeleteSharedWalletResponse ¶
func ParseDeleteSharedWalletResponse(rsp *http.Response) (*DeleteSharedWalletResponse, error)
ParseDeleteSharedWalletResponse parses an HTTP response from a DeleteSharedWalletWithResponse call
func (DeleteSharedWalletResponse) Status ¶
func (r DeleteSharedWalletResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSharedWalletResponse) StatusCode ¶
func (r DeleteSharedWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTransactionResponse ¶
type DeleteTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON403 *struct { Code string `json:"code"` // Occurs when attempting to delete a transaction which is neither pending nor expired. Message string `json:"message"` } JSON404 *interface{} JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseDeleteTransactionResponse ¶
func ParseDeleteTransactionResponse(rsp *http.Response) (*DeleteTransactionResponse, error)
ParseDeleteTransactionResponse parses an HTTP response from a DeleteTransactionWithResponse call
func (DeleteTransactionResponse) Status ¶
func (r DeleteTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTransactionResponse) StatusCode ¶
func (r DeleteTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteWalletResponse ¶
type DeleteWalletResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseDeleteWalletResponse ¶
func ParseDeleteWalletResponse(rsp *http.Response) (*DeleteWalletResponse, error)
ParseDeleteWalletResponse parses an HTTP response from a DeleteWalletWithResponse call
func (DeleteWalletResponse) Status ¶
func (r DeleteWalletResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteWalletResponse) StatusCode ¶
func (r DeleteWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Distribution ¶
type Distribution struct { Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` Scale string `json:"scale"` // Expected enum value: "log10" Distribution map[uint64]uint `json:"distribution"` }
Distribution represents a distribution of UTXO sizes for a given address. This type is manually added here, because oapi-codegen fails to generate it.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetAssetDefaultResponse ¶
type GetAssetDefaultResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON404 *struct { Code string `json:"code"` // Occurs when requesting information about an asset which is not // involved in any transaction related to the wallet. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetAssetDefaultResponse ¶
func ParseGetAssetDefaultResponse(rsp *http.Response) (*GetAssetDefaultResponse, error)
ParseGetAssetDefaultResponse parses an HTTP response from a GetAssetDefaultWithResponse call
func (GetAssetDefaultResponse) Status ¶
func (r GetAssetDefaultResponse) Status() string
Status returns HTTPResponse.Status
func (GetAssetDefaultResponse) StatusCode ¶
func (r GetAssetDefaultResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAssetResponse ¶
type GetAssetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON404 *struct { Code string `json:"code"` // Occurs when requesting information about an asset which is not // involved in any transaction related to the wallet. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetAssetResponse ¶
func ParseGetAssetResponse(rsp *http.Response) (*GetAssetResponse, error)
ParseGetAssetResponse parses an HTTP response from a GetAssetWithResponse call
func (GetAssetResponse) Status ¶
func (r GetAssetResponse) Status() string
Status returns HTTPResponse.Status
func (GetAssetResponse) StatusCode ¶
func (r GetAssetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronAssetDefaultResponse ¶
type GetByronAssetDefaultResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON404 *struct { Code string `json:"code"` // Occurs when requesting information about an asset which is not // involved in any transaction related to the wallet. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronAssetDefaultResponse ¶
func ParseGetByronAssetDefaultResponse(rsp *http.Response) (*GetByronAssetDefaultResponse, error)
ParseGetByronAssetDefaultResponse parses an HTTP response from a GetByronAssetDefaultWithResponse call
func (GetByronAssetDefaultResponse) Status ¶
func (r GetByronAssetDefaultResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronAssetDefaultResponse) StatusCode ¶
func (r GetByronAssetDefaultResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronAssetResponse ¶
type GetByronAssetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON404 *struct { Code string `json:"code"` // Occurs when requesting information about an asset which is not // involved in any transaction related to the wallet. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronAssetResponse ¶
func ParseGetByronAssetResponse(rsp *http.Response) (*GetByronAssetResponse, error)
ParseGetByronAssetResponse parses an HTTP response from a GetByronAssetWithResponse call
func (GetByronAssetResponse) Status ¶
func (r GetByronAssetResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronAssetResponse) StatusCode ¶
func (r GetByronAssetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronTransactionResponse ¶
type GetByronTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON404 *interface{} JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronTransactionResponse ¶
func ParseGetByronTransactionResponse(rsp *http.Response) (*GetByronTransactionResponse, error)
ParseGetByronTransactionResponse parses an HTTP response from a GetByronTransactionWithResponse call
func (GetByronTransactionResponse) Status ¶
func (r GetByronTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronTransactionResponse) StatusCode ¶
func (r GetByronTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronUTxOsStatisticsResponse ¶
type GetByronUTxOsStatisticsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Distribution Distribution `json:"distribution"` Scale string `json:"scale"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronUTxOsStatisticsResponse ¶
func ParseGetByronUTxOsStatisticsResponse(rsp *http.Response) (*GetByronUTxOsStatisticsResponse, error)
ParseGetByronUTxOsStatisticsResponse parses an HTTP response from a GetByronUTxOsStatisticsWithResponse call
func (GetByronUTxOsStatisticsResponse) Status ¶
func (r GetByronUTxOsStatisticsResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronUTxOsStatisticsResponse) StatusCode ¶
func (r GetByronUTxOsStatisticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronWalletMigrationInfoResponse ¶
type GetByronWalletMigrationInfoResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Leftovers dust coins which won't be migrated nor spent as fees. Leftovers struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"leftovers"` // Total amount which will be paid as fees for the migration. MigrationCost struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"migration_cost"` } JSON403 *struct { Code string `json:"code"` // May occur when trying to migrate a wallet that is empty or full of dust. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronWalletMigrationInfoResponse ¶
func ParseGetByronWalletMigrationInfoResponse(rsp *http.Response) (*GetByronWalletMigrationInfoResponse, error)
ParseGetByronWalletMigrationInfoResponse parses an HTTP response from a GetByronWalletMigrationInfoWithResponse call
func (GetByronWalletMigrationInfoResponse) Status ¶
func (r GetByronWalletMigrationInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronWalletMigrationInfoResponse) StatusCode ¶
func (r GetByronWalletMigrationInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetByronWalletResponse ¶
type GetByronWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Byron wallet's current balance(s) Balance struct { // Available balance (funds that can be spent) Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // Total balance (available balance plus pending change) Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Mechanism used for discovering addresses. Discovery string `json:"discovery"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON404 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetByronWalletResponse ¶
func ParseGetByronWalletResponse(rsp *http.Response) (*GetByronWalletResponse, error)
ParseGetByronWalletResponse parses an HTTP response from a GetByronWalletWithResponse call
func (GetByronWalletResponse) Status ¶
func (r GetByronWalletResponse) Status() string
Status returns HTTPResponse.Status
func (GetByronWalletResponse) StatusCode ¶
func (r GetByronWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrentSmashHealthParams ¶
type GetCurrentSmashHealthParams struct { // check this url for health instead of the currently configured one Url *string `json:"url,omitempty"` }
GetCurrentSmashHealthParams defines parameters for GetCurrentSmashHealth.
type GetCurrentSmashHealthResponse ¶
type GetCurrentSmashHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Health string `json:"health"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetCurrentSmashHealthResponse ¶
func ParseGetCurrentSmashHealthResponse(rsp *http.Response) (*GetCurrentSmashHealthResponse, error)
ParseGetCurrentSmashHealthResponse parses an HTTP response from a GetCurrentSmashHealthWithResponse call
func (GetCurrentSmashHealthResponse) Status ¶
func (r GetCurrentSmashHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentSmashHealthResponse) StatusCode ¶
func (r GetCurrentSmashHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDelegationFeeResponse ¶
type GetDelegationFeeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMax struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_max"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMin struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_min"` // A list of minimum coin values that each output in a payment must satisfy. The values themselves depends on two things: // // - (a) Some updatable protocol parameters fixed by the network. // - (b) The nature of the outputs (i.e. the kind of assets it includes). // // The list is a direct 1:1 mapping of the requested outputs. Said differently, it has the **same number of items** and **items // are ordered in the same way** as **requested outputs** are ordered. In the case where there's no explicitly requested outputs (e.g. // when calculating fee for delegation), this list is empty. // // For example, an output containing only `Ada` may require to be of at least `1 Ada`. An output containing only an hypothetical `AppleCoin` // may require to also carry a minimum of `1.2 Ada`. Note that no matter what, a minimum coin value is always given in Lovelace / Ada. // // > ℹ️ This mechanism is used by the protocol to protect against flooding of the network with worthless assets. By requiring a minimum coin value to every // UTxO, they are given an intrinsic value indexed itself on the value of Ada. MinimumCoins []struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"minimum_coins"` } JSON403 *struct { Code string `json:"code"` // May occur when a transaction can't be balanced for fees. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetDelegationFeeResponse ¶
func ParseGetDelegationFeeResponse(rsp *http.Response) (*GetDelegationFeeResponse, error)
ParseGetDelegationFeeResponse parses an HTTP response from a GetDelegationFeeWithResponse call
func (GetDelegationFeeResponse) Status ¶
func (r GetDelegationFeeResponse) Status() string
Status returns HTTPResponse.Status
func (GetDelegationFeeResponse) StatusCode ¶
func (r GetDelegationFeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMaintenanceActionsResponse ¶
type GetMaintenanceActionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Gives an indication if metadata GC checking for delisted pools // has run and if so, when. // // Possible values are: // - not_applicable -> we're currently not querying a SMASH server for metadata // - not_started -> the GC hasn't started yet, try again in a short while // - restarting -> the GC thread is currently restarting, try again in short while // - has_run -> the GC has run successfully // // When 'status' is 'restarting' or 'has_run' then the field 'last_run' // is set to the last GC time in UTC. GcStakePools struct { LastRun *string `json:"last_run,omitempty"` Status string `json:"status"` } `json:"gc_stake_pools"` } }
func ParseGetMaintenanceActionsResponse ¶
func ParseGetMaintenanceActionsResponse(rsp *http.Response) (*GetMaintenanceActionsResponse, error)
ParseGetMaintenanceActionsResponse parses an HTTP response from a GetMaintenanceActionsWithResponse call
func (GetMaintenanceActionsResponse) Status ¶
func (r GetMaintenanceActionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetMaintenanceActionsResponse) StatusCode ¶
func (r GetMaintenanceActionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworkClockParams ¶
type GetNetworkClockParams struct { // NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. // // When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server. ForceNtpCheck *bool `json:"forceNtpCheck,omitempty"` }
GetNetworkClockParams defines parameters for GetNetworkClock.
type GetNetworkClockResponse ¶
type GetNetworkClockResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == available // </span><br/> // Drift offset of the local clock. Offset *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"offset,omitempty"` Status string `json:"status"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetNetworkClockResponse ¶
func ParseGetNetworkClockResponse(rsp *http.Response) (*GetNetworkClockResponse, error)
ParseGetNetworkClockResponse parses an HTTP response from a GetNetworkClockWithResponse call
func (GetNetworkClockResponse) Status ¶
func (r GetNetworkClockResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworkClockResponse) StatusCode ¶
func (r GetNetworkClockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworkInformationResponse ¶
type GetNetworkInformationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // The time slot corresponding the network tip. NetworkTip *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"network_tip,omitempty"` NextEpoch *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"next_epoch,omitempty"` NodeEra string `json:"node_era"` // Underlying node's tip NodeTip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"node_tip"` // Estimated synchronization progress of the node with the underlying network. Note that this may // change quite arbitrarily as the node may switch to shorter or longer chain forks. SyncProgress struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"sync_progress"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetNetworkInformationResponse ¶
func ParseGetNetworkInformationResponse(rsp *http.Response) (*GetNetworkInformationResponse, error)
ParseGetNetworkInformationResponse parses an HTTP response from a GetNetworkInformationWithResponse call
func (GetNetworkInformationResponse) Status ¶
func (r GetNetworkInformationResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworkInformationResponse) StatusCode ¶
func (r GetNetworkInformationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworkParametersResponse ¶
type GetNetworkParametersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { ActiveSlotCoefficient struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"active_slot_coefficient"` BlockchainStartTime string `json:"blockchain_start_time"` DecentralizationLevel struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"decentralization_level"` DesiredPoolNumber int `json:"desired_pool_number"` EpochLength struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"epoch_length"` // // If and when each era started or will start. // // The object is keyed by era names. The values either describe the epoch boundary // when the era starts (can be in the future or in the past), or are null if not yet // confirmed on-chain. // // If you need to know the current era, see the `node_era` field of // `GET /network/information`. // // > Due to complications with our current tooling, we cannot mark the era names // > as required, but the keys are in fact always present. Eras struct { Allegra *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"allegra"` Byron *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"byron"` Mary *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"mary"` Shelley *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"shelley"` } `json:"eras"` // The hash of genesis block GenesisBlockHash string `json:"genesis_block_hash"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. MinimumUtxoValue struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"minimum_utxo_value"` SecurityParameter struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"security_parameter"` SlotLength struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"slot_length"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetNetworkParametersResponse ¶
func ParseGetNetworkParametersResponse(rsp *http.Response) (*GetNetworkParametersResponse, error)
ParseGetNetworkParametersResponse parses an HTTP response from a GetNetworkParametersWithResponse call
func (GetNetworkParametersResponse) Status ¶
func (r GetNetworkParametersResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworkParametersResponse) StatusCode ¶
func (r GetNetworkParametersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSettingsResponse ¶
type GetSettingsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Pool metadata source. This sets the metadata fetching strategy. // // Possible values are // * none -> no fetching // * direct -> direct fetching // * uri -> use SMASH server PoolMetadataSource string `json:"pool_metadata_source"` } }
func ParseGetSettingsResponse ¶
func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error)
ParseGetSettingsResponse parses an HTTP response from a GetSettingsWithResponse call
func (GetSettingsResponse) Status ¶
func (r GetSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSettingsResponse) StatusCode ¶
func (r GetSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSharedWalletResponse ¶
type GetSharedWalletResponse struct { string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }Code
func ParseGetSharedWalletResponse ¶
func ParseGetSharedWalletResponse(rsp *http.Response) (*GetSharedWalletResponse, error)
ParseGetSharedWalletResponse parses an HTTP response from a GetSharedWalletWithResponse call
func (GetSharedWalletResponse) Status ¶
func (r GetSharedWalletResponse) Status() string
Status returns HTTPResponse.Status
func (GetSharedWalletResponse) StatusCode ¶
func (r GetSharedWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShelleyWalletMigrationInfoResponse ¶
type GetShelleyWalletMigrationInfoResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Leftovers dust coins which won't be migrated nor spent as fees. Leftovers struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"leftovers"` // Total amount which will be paid as fees for the migration. MigrationCost struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"migration_cost"` } JSON403 *struct { Code string `json:"code"` // May occur when trying to migrate a wallet that is empty or full of dust. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetShelleyWalletMigrationInfoResponse ¶
func ParseGetShelleyWalletMigrationInfoResponse(rsp *http.Response) (*GetShelleyWalletMigrationInfoResponse, error)
ParseGetShelleyWalletMigrationInfoResponse parses an HTTP response from a GetShelleyWalletMigrationInfoWithResponse call
func (GetShelleyWalletMigrationInfoResponse) Status ¶
func (r GetShelleyWalletMigrationInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetShelleyWalletMigrationInfoResponse) StatusCode ¶
func (r GetShelleyWalletMigrationInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionResponse ¶
type GetTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON404 *interface{} JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetTransactionResponse ¶
func ParseGetTransactionResponse(rsp *http.Response) (*GetTransactionResponse, error)
ParseGetTransactionResponse parses an HTTP response from a GetTransactionWithResponse call
func (GetTransactionResponse) Status ¶
func (r GetTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionResponse) StatusCode ¶
func (r GetTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUTxOsStatisticsResponse ¶
type GetUTxOsStatisticsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Distribution Distribution `json:"distribution"` Scale string `json:"scale"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetUTxOsStatisticsResponse ¶
func ParseGetUTxOsStatisticsResponse(rsp *http.Response) (*GetUTxOsStatisticsResponse, error)
ParseGetUTxOsStatisticsResponse parses an HTTP response from a GetUTxOsStatisticsWithResponse call
func (GetUTxOsStatisticsResponse) Status ¶
func (r GetUTxOsStatisticsResponse) Status() string
Status returns HTTPResponse.Status
func (GetUTxOsStatisticsResponse) StatusCode ¶
func (r GetUTxOsStatisticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWalletKeyResponse ¶
type GetWalletKeyResponse struct { Body []byte HTTPResponse *http.Response JSON200 *string JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetWalletKeyResponse ¶
func ParseGetWalletKeyResponse(rsp *http.Response) (*GetWalletKeyResponse, error)
ParseGetWalletKeyResponse parses an HTTP response from a GetWalletKeyWithResponse call
func (GetWalletKeyResponse) Status ¶
func (r GetWalletKeyResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletKeyResponse) StatusCode ¶
func (r GetWalletKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWalletResponse ¶
type GetWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Number of consecutive unused addresses allowed. // // **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore // your wallet in a different software which is strictly following BIP-44. // // Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks. AddressPoolGap int `json:"address_pool_gap"` // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Wallet current Ada balance(s). Balance struct { // Available Ada UTxO balance (funds that can be spent without condition). Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // The Ada balance of the reward account for this wallet. Reward struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"reward"` // Total Ada balance (available balance plus pending change and reward balance). Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Delegation settings Delegation struct { // Currently active delegation status. Active struct { Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"active"` Next []struct { ChangesAt struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"changes_at"` Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"next"` } `json:"delegation"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseGetWalletResponse ¶
func ParseGetWalletResponse(rsp *http.Response) (*GetWalletResponse, error)
ParseGetWalletResponse parses an HTTP response from a GetWalletWithResponse call
func (GetWalletResponse) Status ¶
func (r GetWalletResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletResponse) StatusCode ¶
func (r GetWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImportAddressResponse ¶
type ImportAddressResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParseImportAddressResponse ¶
func ParseImportAddressResponse(rsp *http.Response) (*ImportAddressResponse, error)
ParseImportAddressResponse parses an HTTP response from a ImportAddressWithResponse call
func (ImportAddressResponse) Status ¶
func (r ImportAddressResponse) Status() string
Status returns HTTPResponse.Status
func (ImportAddressResponse) StatusCode ¶
func (r ImportAddressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ImportAddressesJSONBody ¶
type ImportAddressesJSONBody struct { // The imported addresses. Addresses []string `json:"addresses"` }
ImportAddressesJSONBody defines parameters for ImportAddresses.
type ImportAddressesJSONRequestBody ¶
type ImportAddressesJSONRequestBody ImportAddressesJSONBody
ImportAddressesJSONRequestBody defines body for ImportAddresses for application/json ContentType.
type ImportAddressesResponse ¶
type ImportAddressesResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParseImportAddressesResponse ¶
func ParseImportAddressesResponse(rsp *http.Response) (*ImportAddressesResponse, error)
ParseImportAddressesResponse parses an HTTP response from a ImportAddressesWithResponse call
func (ImportAddressesResponse) Status ¶
func (r ImportAddressesResponse) Status() string
Status returns HTTPResponse.Status
func (ImportAddressesResponse) StatusCode ¶
func (r ImportAddressesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectAddressResponse ¶
type InspectAddressResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Only for 'Icarus' and 'Byron' styles. AddressRoot *string `json:"address_root,omitempty"` AddressStyle string `json:"address_style"` // Only for 'Byron' style. DerivationPath *string `json:"derivation_path,omitempty"` // Can be null for 'Icarus' and 'Byron' styles. NetworkTag *int `json:"network_tag,omitempty"` Pointer *struct { OutputIndex int `json:"output_index"` SlotNum int `json:"slot_num"` TransactionIndex int `json:"transaction_index"` } `json:"pointer,omitempty"` ScriptHash *string `json:"script_hash,omitempty"` ScriptHashBech32 *string `json:"script_hash_bech32,omitempty"` SpendingKeyBech32 *string `json:"spending_key_bech32,omitempty"` SpendingKeyHash *string `json:"spending_key_hash,omitempty"` StakeKeyBech32 *string `json:"stake_key_bech32,omitempty"` StakeKeyHash *string `json:"stake_key_hash,omitempty"` StakeReference string `json:"stake_reference"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } }
func ParseInspectAddressResponse ¶
func ParseInspectAddressResponse(rsp *http.Response) (*InspectAddressResponse, error)
ParseInspectAddressResponse parses an HTTP response from a InspectAddressWithResponse call
func (InspectAddressResponse) Status ¶
func (r InspectAddressResponse) Status() string
Status returns HTTPResponse.Status
func (InspectAddressResponse) StatusCode ¶
func (r InspectAddressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type JoinStakePoolJSONBody ¶
type JoinStakePoolJSONBody struct { // The source Byron wallet's master passphrase. Passphrase string `json:"passphrase"` }
JoinStakePoolJSONBody defines parameters for JoinStakePool.
type JoinStakePoolJSONRequestBody ¶
type JoinStakePoolJSONRequestBody JoinStakePoolJSONBody
JoinStakePoolJSONRequestBody defines body for JoinStakePool for application/json ContentType.
type JoinStakePoolResponse ¶
type JoinStakePoolResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *interface{} JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseJoinStakePoolResponse ¶
func ParseJoinStakePoolResponse(rsp *http.Response) (*JoinStakePoolResponse, error)
ParseJoinStakePoolResponse parses an HTTP response from a JoinStakePoolWithResponse call
func (JoinStakePoolResponse) Status ¶
func (r JoinStakePoolResponse) Status() string
Status returns HTTPResponse.Status
func (JoinStakePoolResponse) StatusCode ¶
func (r JoinStakePoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAddressesParams ¶
type ListAddressesParams struct { // An optional filter on the address state. State *string `json:"state,omitempty"` }
ListAddressesParams defines parameters for ListAddresses.
type ListAddressesResponse ¶
type ListAddressesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` Id string `json:"id"` State string `json:"state"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListAddressesResponse ¶
func ParseListAddressesResponse(rsp *http.Response) (*ListAddressesResponse, error)
ParseListAddressesResponse parses an HTTP response from a ListAddressesWithResponse call
func (ListAddressesResponse) Status ¶
func (r ListAddressesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAddressesResponse) StatusCode ¶
func (r ListAddressesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAssetsResponse ¶
type ListAssetsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListAssetsResponse ¶
func ParseListAssetsResponse(rsp *http.Response) (*ListAssetsResponse, error)
ParseListAssetsResponse parses an HTTP response from a ListAssetsWithResponse call
func (ListAssetsResponse) Status ¶
func (r ListAssetsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAssetsResponse) StatusCode ¶
func (r ListAssetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListByronAddressesParams ¶
type ListByronAddressesParams struct { // An optional filter on the address state. State *string `json:"state,omitempty"` }
ListByronAddressesParams defines parameters for ListByronAddresses.
type ListByronAddressesResponse ¶
type ListByronAddressesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` Id string `json:"id"` State string `json:"state"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListByronAddressesResponse ¶
func ParseListByronAddressesResponse(rsp *http.Response) (*ListByronAddressesResponse, error)
ParseListByronAddressesResponse parses an HTTP response from a ListByronAddressesWithResponse call
func (ListByronAddressesResponse) Status ¶
func (r ListByronAddressesResponse) Status() string
Status returns HTTPResponse.Status
func (ListByronAddressesResponse) StatusCode ¶
func (r ListByronAddressesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListByronAssetsResponse ¶
type ListByronAssetsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint string `json:"fingerprint"` // In the Mary era of Cardano, UTxO may contain native assets. These // assets are represented on-chain by opaque identifiers which are // meaningless to end-users. Therefore, user-facing metadata // regarding each token must be stored off-chain, in a metadata // registry. // // Token creators may publish metadata into the registry and client // applications can consume these metadata for display to end // users. This will work in a similar way to how it is done for stake // pool metadata. Metadata *struct { // A human-readable description for the asset. Good for display in // user interfaces. Description string `json:"description"` // A base64-encoded `image/png` for displaying the asset. The end image can be expected // to be smaller than 64KB. Logo *string `json:"logo,omitempty"` // A human-readable name for the asset, intended for display in user // interfaces. Name string `json:"name"` // An optional human-readable very short name or acronym for the // asset, intended for display in user interfaces. If `ticker` is not // present, then `name` will be used, but it might be truncated to // fit within the available space. Ticker *string `json:"ticker,omitempty"` // Defines a larger unit for the asset, in the same way Ada is the // larger unit of Lovelace. Unit *struct { // The number of digits after the decimal point. Decimals int `json:"decimals"` // The human-readable name for the larger unit of the asset. Used // for display in user interfaces. Name string `json:"name"` } `json:"unit,omitempty"` // A URL to the policy's owner(s) or the entity website in charge of the asset. Url *string `json:"url,omitempty"` } `json:"metadata,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListByronAssetsResponse ¶
func ParseListByronAssetsResponse(rsp *http.Response) (*ListByronAssetsResponse, error)
ParseListByronAssetsResponse parses an HTTP response from a ListByronAssetsWithResponse call
func (ListByronAssetsResponse) Status ¶
func (r ListByronAssetsResponse) Status() string
Status returns HTTPResponse.Status
func (ListByronAssetsResponse) StatusCode ¶
func (r ListByronAssetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListByronTransactionsParams ¶
type ListByronTransactionsParams struct { // An optional start time in ISO 8601 date-and-time format. Basic and // extended formats are both accepted. Times can be local (with a // timezone offset) or UTC. // // If both a start time and an end time are specified, then the start // time must not be later than the end time. // // Example: `2008-08-08T08:08:08Z` Start *string `json:"start,omitempty"` // An optional end time in ISO 8601 date-and-time format. Basic and // extended formats are both accepted. Times can be local (with a // timezone offset) or UTC. // // If both a start time and an end time are specified, then the start // time must not be later than the end time. // // Example: `2008-08-08T08:08:08Z` End *string `json:"end,omitempty"` // An optional sort order. Order *string `json:"order,omitempty"` }
ListByronTransactionsParams defines parameters for ListByronTransactions.
type ListByronTransactionsResponse ¶
type ListByronTransactionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListByronTransactionsResponse ¶
func ParseListByronTransactionsResponse(rsp *http.Response) (*ListByronTransactionsResponse, error)
ParseListByronTransactionsResponse parses an HTTP response from a ListByronTransactionsWithResponse call
func (ListByronTransactionsResponse) Status ¶
func (r ListByronTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListByronTransactionsResponse) StatusCode ¶
func (r ListByronTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListByronWalletsResponse ¶
type ListByronWalletsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Byron wallet's current balance(s) Balance struct { // Available balance (funds that can be spent) Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // Total balance (available balance plus pending change) Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Mechanism used for discovering addresses. Discovery string `json:"discovery"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListByronWalletsResponse ¶
func ParseListByronWalletsResponse(rsp *http.Response) (*ListByronWalletsResponse, error)
ParseListByronWalletsResponse parses an HTTP response from a ListByronWalletsWithResponse call
func (ListByronWalletsResponse) Status ¶
func (r ListByronWalletsResponse) Status() string
Status returns HTTPResponse.Status
func (ListByronWalletsResponse) StatusCode ¶
func (r ListByronWalletsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListStakePoolsParams ¶
type ListStakePoolsParams struct { // The stake the user intends to delegate in Lovelace. Required. Stake int `json:"stake"` }
ListStakePoolsParams defines parameters for ListStakePools.
type ListStakePoolsResponse ¶
type ListStakePoolsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // Estimated cost set by the pool operator when registering his pool. // This fixed cost is taken from each reward earned by the pool before splitting rewards between stakeholders. // // May be omitted if the wallet hasn't found the pool's registration cerificate yet. Cost struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"cost"` // Various flags applicable to stake pools. Possible flags: // // | flag | description | // | --- | --- | // | delisted | The pool is marked as delisted on a configured SMASH server; metadata for this pool have therefore been dropped. | Flags []string `json:"flags"` // A unique identifier for the pool. Id string `json:"id"` // Variable margin on the total reward given to an operator before splitting rewards between stakeholders. // // May be omitted if the wallet hasn't found the pool's registration cerificate yet. Margin struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"margin"` // Information about the stake pool. Metadata *struct { Description *string `json:"description,omitempty"` Homepage string `json:"homepage"` Name string `json:"name"` Ticker string `json:"ticker"` } `json:"metadata,omitempty"` Metrics struct { // The rewards the wallet can expect to receive at the end of an epoch, in the long term, if delegating to // this pool. // // For more details, see the // [Design Specification for Delegation and Incentives in Cardano](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec) // document. NonMyopicMemberRewards struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"non_myopic_member_rewards"` // Number of blocks produced by a given stake pool in its lifetime. ProducedBlocks struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"produced_blocks"` // The live pool stake relative to the *total* stake. // // For more details, see the section "Relative Stake: Active vs Total" in // [Design Specification for Delegation and Incentives in Cardano](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec). RelativeStake struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"relative_stake"` // Saturation-level of the pool based on the desired number of pools aimed by the network. // A value above `1` indicates that the pool is saturated. // // The `non_myopic_member_rewards` take oversaturation into account, as specified by the [specs](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec). // // The saturation is based on the live `relative_stake`. The saturation at the end of epoch e, // will affect the rewards paid out at the end of epoch e+3. Saturation float32 `json:"saturation"` } `json:"metrics"` // Minimal stake amount that a stake pool is willing to honor. // // May be omitted if the wallet hasn't found the pool's registration cerificate yet. Pledge struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"pledge"` // The epoch in which a stake pool retires. // // May be omitted if the wallet hasn't yet found a retirement certificate // for this stake pool. Retirement *struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"retirement,omitempty"` } JSON400 *struct { Code string `json:"code"` // May occur when an endpoint requires the presence of a query parameter that is missing. Message string `json:"message"` } }
func ParseListStakePoolsResponse ¶
func ParseListStakePoolsResponse(rsp *http.Response) (*ListStakePoolsResponse, error)
ParseListStakePoolsResponse parses an HTTP response from a ListStakePoolsWithResponse call
func (ListStakePoolsResponse) Status ¶
func (r ListStakePoolsResponse) Status() string
Status returns HTTPResponse.Status
func (ListStakePoolsResponse) StatusCode ¶
func (r ListStakePoolsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTransactionsParams ¶
type ListTransactionsParams struct { // An optional start time in ISO 8601 date-and-time format. Basic and // extended formats are both accepted. Times can be local (with a // timezone offset) or UTC. // // If both a start time and an end time are specified, then the start // time must not be later than the end time. // // Example: `2008-08-08T08:08:08Z` Start *string `json:"start,omitempty"` // An optional end time in ISO 8601 date-and-time format. Basic and // extended formats are both accepted. Times can be local (with a // timezone offset) or UTC. // // If both a start time and an end time are specified, then the start // time must not be later than the end time. // // Example: `2008-08-08T08:08:08Z` End *string `json:"end,omitempty"` // An optional sort order. Order *string `json:"order,omitempty"` // Returns only transactions that have at least one withdrawal above the given amount. // This is particularly useful when set to `1` in order to list the withdrawal history of a wallet. MinWithdrawal *int `json:"minWithdrawal,omitempty"` }
ListTransactionsParams defines parameters for ListTransactions.
type ListTransactionsResponse ¶
type ListTransactionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListTransactionsResponse ¶
func ParseListTransactionsResponse(rsp *http.Response) (*ListTransactionsResponse, error)
ParseListTransactionsResponse parses an HTTP response from a ListTransactionsWithResponse call
func (ListTransactionsResponse) Status ¶
func (r ListTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTransactionsResponse) StatusCode ¶
func (r ListTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWalletsResponse ¶
type ListWalletsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // Number of consecutive unused addresses allowed. // // **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore // your wallet in a different software which is strictly following BIP-44. // // Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks. AddressPoolGap int `json:"address_pool_gap"` // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Wallet current Ada balance(s). Balance struct { // Available Ada UTxO balance (funds that can be spent without condition). Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // The Ada balance of the reward account for this wallet. Reward struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"reward"` // Total Ada balance (available balance plus pending change and reward balance). Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Delegation settings Delegation struct { // Currently active delegation status. Active struct { Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"active"` Next []struct { ChangesAt struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"changes_at"` Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"next"` } `json:"delegation"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }
func ParseListWalletsResponse ¶
func ParseListWalletsResponse(rsp *http.Response) (*ListWalletsResponse, error)
ParseListWalletsResponse parses an HTTP response from a ListWalletsWithResponse call
func (ListWalletsResponse) Status ¶
func (r ListWalletsResponse) Status() string
Status returns HTTPResponse.Status
func (ListWalletsResponse) StatusCode ¶
func (r ListWalletsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Metadata ¶
type Metadata map[uint]interface{}
Metadata represents transaction metadata, as it is stored on the ledger. This type is manually added here, because oapi-codegen fails to generate it. The doc-comment below is copied from the Swagger definition.
**⚠️ WARNING ⚠️**
_Please note that metadata provided in a transaction will be stored on the blockchain forever. Make sure not to include any sensitive data, in particular personally identifiable information (PII)._
Extra application data attached to the transaction.
Cardano allows users and developers to embed their own authenticated metadata when submitting transactions. Metadata can be expressed as a JSON object with some restrictions:
1. All top-level keys must be integers between `0` and `2^64 - 1`.
2. Each metadata value is tagged with its type.
3. Strings must be at most 64 bytes when UTF-8 encoded.
4. Bytestrings are hex-encoded, with a maximum length of 64 bytes.
Metadata aren't stored as JSON on the Cardano blockchain but are instead stored using a compact binary encoding (CBOR).
The binary encoding of metadata values supports three simple types:
* Integers in the range `-(2^64 - 1)` to `2^64 - 1` * Strings (UTF-8 encoded) * Bytestrings
And two compound types:
* Lists of metadata values * Mappings from metadata values to metadata values
It is possible to transform any JSON object into this schema.
However, if your application uses floating point values, they will need to be converted somehow, according to your requirements. Likewise for `null` or `bool` values. When reading metadata from chain, be aware that integers may exceed the javascript numeric range, and may need special "bigint" parsing.
func EncodeMetadata ¶
type MigrateByronWalletJSONBody ¶
type MigrateByronWalletJSONBody struct { // The recipient addresses. Addresses []string `json:"addresses"` // The wallet's master passphrase. Passphrase string `json:"passphrase"` }
MigrateByronWalletJSONBody defines parameters for MigrateByronWallet.
type MigrateByronWalletJSONRequestBody ¶
type MigrateByronWalletJSONRequestBody MigrateByronWalletJSONBody
MigrateByronWalletJSONRequestBody defines body for MigrateByronWallet for application/json ContentType.
type MigrateByronWalletResponse ¶
type MigrateByronWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseMigrateByronWalletResponse ¶
func ParseMigrateByronWalletResponse(rsp *http.Response) (*MigrateByronWalletResponse, error)
ParseMigrateByronWalletResponse parses an HTTP response from a MigrateByronWalletWithResponse call
func (MigrateByronWalletResponse) Status ¶
func (r MigrateByronWalletResponse) Status() string
Status returns HTTPResponse.Status
func (MigrateByronWalletResponse) StatusCode ¶
func (r MigrateByronWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MigrateShelleyWalletJSONBody ¶
type MigrateShelleyWalletJSONBody struct { // The recipient addresses. Addresses []string `json:"addresses"` // The wallet's master passphrase. Passphrase string `json:"passphrase"` }
MigrateShelleyWalletJSONBody defines parameters for MigrateShelleyWallet.
type MigrateShelleyWalletJSONRequestBody ¶
type MigrateShelleyWalletJSONRequestBody MigrateShelleyWalletJSONBody
MigrateShelleyWalletJSONRequestBody defines body for MigrateShelleyWallet for application/json ContentType.
type MigrateShelleyWalletResponse ¶
type MigrateShelleyWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseMigrateShelleyWalletResponse ¶
func ParseMigrateShelleyWalletResponse(rsp *http.Response) (*MigrateShelleyWalletResponse, error)
ParseMigrateShelleyWalletResponse parses an HTTP response from a MigrateShelleyWalletWithResponse call
func (MigrateShelleyWalletResponse) Status ¶
func (r MigrateShelleyWalletResponse) Status() string
Status returns HTTPResponse.Status
func (MigrateShelleyWalletResponse) StatusCode ¶
func (r MigrateShelleyWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchSharedWalletInDelegationJSONBody ¶
type PatchSharedWalletInDelegationJSONBody struct {
}PatchSharedWalletInDelegationJSONBody defines parameters for PatchSharedWalletInDelegation.
func (PatchSharedWalletInDelegationJSONBody) Get ¶
func (a PatchSharedWalletInDelegationJSONBody) Get(fieldName string) (value string, found bool)
Getter for additional properties for PatchSharedWalletInDelegationJSONBody. Returns the specified element and whether it was found
func (PatchSharedWalletInDelegationJSONBody) MarshalJSON ¶
func (a PatchSharedWalletInDelegationJSONBody) MarshalJSON() ([]byte, error)
Override default JSON handling for PatchSharedWalletInDelegationJSONBody to handle AdditionalProperties
func (*PatchSharedWalletInDelegationJSONBody) Set ¶
func (a *PatchSharedWalletInDelegationJSONBody) Set(fieldName string, value string)
Setter for additional properties for PatchSharedWalletInDelegationJSONBody
func (*PatchSharedWalletInDelegationJSONBody) UnmarshalJSON ¶
func (a *PatchSharedWalletInDelegationJSONBody) UnmarshalJSON(b []byte) error
Override default JSON handling for PatchSharedWalletInDelegationJSONBody to handle AdditionalProperties
type PatchSharedWalletInDelegationJSONRequestBody ¶
type PatchSharedWalletInDelegationJSONRequestBody PatchSharedWalletInDelegationJSONBody
PatchSharedWalletInDelegationJSONRequestBody defines body for PatchSharedWalletInDelegation for application/json ContentType.
type PatchSharedWalletInDelegationResponse ¶
type PatchSharedWalletInDelegationResponse struct { string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }Code
func ParsePatchSharedWalletInDelegationResponse ¶
func ParsePatchSharedWalletInDelegationResponse(rsp *http.Response) (*PatchSharedWalletInDelegationResponse, error)
ParsePatchSharedWalletInDelegationResponse parses an HTTP response from a PatchSharedWalletInDelegationWithResponse call
func (PatchSharedWalletInDelegationResponse) Status ¶
func (r PatchSharedWalletInDelegationResponse) Status() string
Status returns HTTPResponse.Status
func (PatchSharedWalletInDelegationResponse) StatusCode ¶
func (r PatchSharedWalletInDelegationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchSharedWalletInPaymentJSONBody ¶
type PatchSharedWalletInPaymentJSONBody struct {
}PatchSharedWalletInPaymentJSONBody defines parameters for PatchSharedWalletInPayment.
func (PatchSharedWalletInPaymentJSONBody) Get ¶
func (a PatchSharedWalletInPaymentJSONBody) Get(fieldName string) (value string, found bool)
Getter for additional properties for PatchSharedWalletInPaymentJSONBody. Returns the specified element and whether it was found
func (PatchSharedWalletInPaymentJSONBody) MarshalJSON ¶
func (a PatchSharedWalletInPaymentJSONBody) MarshalJSON() ([]byte, error)
Override default JSON handling for PatchSharedWalletInPaymentJSONBody to handle AdditionalProperties
func (*PatchSharedWalletInPaymentJSONBody) Set ¶
func (a *PatchSharedWalletInPaymentJSONBody) Set(fieldName string, value string)
Setter for additional properties for PatchSharedWalletInPaymentJSONBody
func (*PatchSharedWalletInPaymentJSONBody) UnmarshalJSON ¶
func (a *PatchSharedWalletInPaymentJSONBody) UnmarshalJSON(b []byte) error
Override default JSON handling for PatchSharedWalletInPaymentJSONBody to handle AdditionalProperties
type PatchSharedWalletInPaymentJSONRequestBody ¶
type PatchSharedWalletInPaymentJSONRequestBody PatchSharedWalletInPaymentJSONBody
PatchSharedWalletInPaymentJSONRequestBody defines body for PatchSharedWalletInPayment for application/json ContentType.
type PatchSharedWalletInPaymentResponse ¶
type PatchSharedWalletInPaymentResponse struct { string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } }Code
func ParsePatchSharedWalletInPaymentResponse ¶
func ParsePatchSharedWalletInPaymentResponse(rsp *http.Response) (*PatchSharedWalletInPaymentResponse, error)
ParsePatchSharedWalletInPaymentResponse parses an HTTP response from a PatchSharedWalletInPaymentWithResponse call
func (PatchSharedWalletInPaymentResponse) Status ¶
func (r PatchSharedWalletInPaymentResponse) Status() string
Status returns HTTPResponse.Status
func (PatchSharedWalletInPaymentResponse) StatusCode ¶
func (r PatchSharedWalletInPaymentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostAccountKeyJSONBody ¶
type PostAccountKeyJSONBody struct { // Determines whether extended (with chain code) or normal (without chain code) key is requested Extended bool `json:"extended"` // A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) Passphrase string `json:"passphrase"` }
PostAccountKeyJSONBody defines parameters for PostAccountKey.
type PostAccountKeyJSONRequestBody ¶
type PostAccountKeyJSONRequestBody PostAccountKeyJSONBody
PostAccountKeyJSONRequestBody defines body for PostAccountKey for application/json ContentType.
type PostAccountKeyResponse ¶
type PostAccountKeyResponse struct { Body []byte HTTPResponse *http.Response JSON202 *string JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParsePostAccountKeyResponse ¶
func ParsePostAccountKeyResponse(rsp *http.Response) (*PostAccountKeyResponse, error)
ParsePostAccountKeyResponse parses an HTTP response from a PostAccountKeyWithResponse call
func (PostAccountKeyResponse) Status ¶
func (r PostAccountKeyResponse) Status() string
Status returns HTTPResponse.Status
func (PostAccountKeyResponse) StatusCode ¶
func (r PostAccountKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostAnyAddressJSONBody ¶
type PostAnyAddressJSONBody struct { Payment *interface{} `json:"payment,omitempty"` Stake *interface{} `json:"stake,omitempty"` // Script validation level. Required validation sifts off scripts that would not // be accepted by the ledger. Recommended level filters out scripts that do not pass // required validation and additionally when: // * 'all' is non-empty // * there are redundant timelocks in a given level // * there are no duplicated verification keys in a given level // * 'at_least' coeffcient is positive // * 'all', 'any' are non-empty and `'at_least' has no less elements in the list // than the coeffcient after timelocks are filtered out. Validation *string `json:"validation,omitempty"` }
PostAnyAddressJSONBody defines parameters for PostAnyAddress.
type PostAnyAddressJSONRequestBody ¶
type PostAnyAddressJSONRequestBody PostAnyAddressJSONBody
PostAnyAddressJSONRequestBody defines body for PostAnyAddress for application/json ContentType.
type PostAnyAddressResponse ¶
type PostAnyAddressResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // A Shelley address representing either enterprise, reward account or delegating address Address string `json:"address"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParsePostAnyAddressResponse ¶
func ParsePostAnyAddressResponse(rsp *http.Response) (*PostAnyAddressResponse, error)
ParsePostAnyAddressResponse parses an HTTP response from a PostAnyAddressWithResponse call
func (PostAnyAddressResponse) Status ¶
func (r PostAnyAddressResponse) Status() string
Status returns HTTPResponse.Status
func (PostAnyAddressResponse) StatusCode ¶
func (r PostAnyAddressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostByronTransactionFeeJSONBody ¶
type PostByronTransactionFeeJSONBody struct { // A list of target outputs Payments []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"payments"` }
PostByronTransactionFeeJSONBody defines parameters for PostByronTransactionFee.
type PostByronTransactionFeeJSONRequestBody ¶
type PostByronTransactionFeeJSONRequestBody PostByronTransactionFeeJSONBody
PostByronTransactionFeeJSONRequestBody defines body for PostByronTransactionFee for application/json ContentType.
type PostByronTransactionFeeResponse ¶
type PostByronTransactionFeeResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMax struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_max"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMin struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_min"` // A list of minimum coin values that each output in a payment must satisfy. The values themselves depends on two things: // // - (a) Some updatable protocol parameters fixed by the network. // - (b) The nature of the outputs (i.e. the kind of assets it includes). // // The list is a direct 1:1 mapping of the requested outputs. Said differently, it has the **same number of items** and **items // are ordered in the same way** as **requested outputs** are ordered. In the case where there's no explicitly requested outputs (e.g. // when calculating fee for delegation), this list is empty. // // For example, an output containing only `Ada` may require to be of at least `1 Ada`. An output containing only an hypothetical `AppleCoin` // may require to also carry a minimum of `1.2 Ada`. Note that no matter what, a minimum coin value is always given in Lovelace / Ada. // // > ℹ️ This mechanism is used by the protocol to protect against flooding of the network with worthless assets. By requiring a minimum coin value to every // UTxO, they are given an intrinsic value indexed itself on the value of Ada. MinimumCoins []struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"minimum_coins"` } JSON400 *interface{} JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostByronTransactionFeeResponse ¶
func ParsePostByronTransactionFeeResponse(rsp *http.Response) (*PostByronTransactionFeeResponse, error)
ParsePostByronTransactionFeeResponse parses an HTTP response from a PostByronTransactionFeeWithResponse call
func (PostByronTransactionFeeResponse) Status ¶
func (r PostByronTransactionFeeResponse) Status() string
Status returns HTTPResponse.Status
func (PostByronTransactionFeeResponse) StatusCode ¶
func (r PostByronTransactionFeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostByronTransactionJSONBody ¶
type PostByronTransactionJSONBody struct { // The wallet's master passphrase. Passphrase string `json:"passphrase"` // A list of target outputs Payments []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"payments"` }
PostByronTransactionJSONBody defines parameters for PostByronTransaction.
type PostByronTransactionJSONRequestBody ¶
type PostByronTransactionJSONRequestBody PostByronTransactionJSONBody
PostByronTransactionJSONRequestBody defines body for PostByronTransaction for application/json ContentType.
type PostByronTransactionResponse ¶
type PostByronTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *interface{} JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostByronTransactionResponse ¶
func ParsePostByronTransactionResponse(rsp *http.Response) (*PostByronTransactionResponse, error)
ParsePostByronTransactionResponse parses an HTTP response from a PostByronTransactionWithResponse call
func (PostByronTransactionResponse) Status ¶
func (r PostByronTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (PostByronTransactionResponse) StatusCode ¶
func (r PostByronTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostByronWalletJSONBody ¶
type PostByronWalletJSONBody interface{}
PostByronWalletJSONBody defines parameters for PostByronWallet.
type PostByronWalletJSONRequestBody ¶
type PostByronWalletJSONRequestBody PostByronWalletJSONBody
PostByronWalletJSONRequestBody defines body for PostByronWallet for application/json ContentType.
type PostByronWalletResponse ¶
type PostByronWalletResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Byron wallet's current balance(s) Balance struct { // Available balance (funds that can be spent) Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // Total balance (available balance plus pending change) Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Mechanism used for discovering addresses. Discovery string `json:"discovery"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON409 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } JSON415 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParsePostByronWalletResponse ¶
func ParsePostByronWalletResponse(rsp *http.Response) (*PostByronWalletResponse, error)
ParsePostByronWalletResponse parses an HTTP response from a PostByronWalletWithResponse call
func (PostByronWalletResponse) Status ¶
func (r PostByronWalletResponse) Status() string
Status returns HTTPResponse.Status
func (PostByronWalletResponse) StatusCode ¶
func (r PostByronWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostExternalTransactionResponse ¶
type PostExternalTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // A unique identifier for this transaction Id string `json:"id"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostExternalTransactionResponse ¶
func ParsePostExternalTransactionResponse(rsp *http.Response) (*PostExternalTransactionResponse, error)
ParsePostExternalTransactionResponse parses an HTTP response from a PostExternalTransactionWithResponse call
func (PostExternalTransactionResponse) Status ¶
func (r PostExternalTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (PostExternalTransactionResponse) StatusCode ¶
func (r PostExternalTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostMaintenanceActionJSONBody ¶
type PostMaintenanceActionJSONBody struct {
MaintenanceAction string `json:"maintenance_action"`
}
PostMaintenanceActionJSONBody defines parameters for PostMaintenanceAction.
type PostMaintenanceActionJSONRequestBody ¶
type PostMaintenanceActionJSONRequestBody PostMaintenanceActionJSONBody
PostMaintenanceActionJSONRequestBody defines body for PostMaintenanceAction for application/json ContentType.
type PostMaintenanceActionResponse ¶
type PostMaintenanceActionResponse struct { Body []byte HTTPResponse *http.Response JSON404 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParsePostMaintenanceActionResponse ¶
func ParsePostMaintenanceActionResponse(rsp *http.Response) (*PostMaintenanceActionResponse, error)
ParsePostMaintenanceActionResponse parses an HTTP response from a PostMaintenanceActionWithResponse call
func (PostMaintenanceActionResponse) Status ¶
func (r PostMaintenanceActionResponse) Status() string
Status returns HTTPResponse.Status
func (PostMaintenanceActionResponse) StatusCode ¶
func (r PostMaintenanceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostSharedWalletJSONBody ¶
type PostSharedWalletJSONBody interface{}
PostSharedWalletJSONBody defines parameters for PostSharedWallet.
type PostSharedWalletJSONRequestBody ¶
type PostSharedWalletJSONRequestBody PostSharedWalletJSONBody
PostSharedWalletJSONRequestBody defines body for PostSharedWallet for application/json ContentType.
type PostSharedWalletResponse ¶
type PostSharedWalletResponse struct { string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } Code string `json:"code"` // May occur when a otherwise valid request would yield a wallet that already exists. Message string `json:"message"` } Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }Code
func ParsePostSharedWalletResponse ¶
func ParsePostSharedWalletResponse(rsp *http.Response) (*PostSharedWalletResponse, error)
ParsePostSharedWalletResponse parses an HTTP response from a PostSharedWalletWithResponse call
func (PostSharedWalletResponse) Status ¶
func (r PostSharedWalletResponse) Status() string
Status returns HTTPResponse.Status
func (PostSharedWalletResponse) StatusCode ¶
func (r PostSharedWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostTransactionFeeJSONBody ¶
type PostTransactionFeeJSONBody interface{}
PostTransactionFeeJSONBody defines parameters for PostTransactionFee.
type PostTransactionFeeJSONRequestBody ¶
type PostTransactionFeeJSONRequestBody PostTransactionFeeJSONBody
PostTransactionFeeJSONRequestBody defines body for PostTransactionFee for application/json ContentType.
type PostTransactionFeeResponse ¶
type PostTransactionFeeResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMax struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_max"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. EstimatedMin struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"estimated_min"` // A list of minimum coin values that each output in a payment must satisfy. The values themselves depends on two things: // // - (a) Some updatable protocol parameters fixed by the network. // - (b) The nature of the outputs (i.e. the kind of assets it includes). // // The list is a direct 1:1 mapping of the requested outputs. Said differently, it has the **same number of items** and **items // are ordered in the same way** as **requested outputs** are ordered. In the case where there's no explicitly requested outputs (e.g. // when calculating fee for delegation), this list is empty. // // For example, an output containing only `Ada` may require to be of at least `1 Ada`. An output containing only an hypothetical `AppleCoin` // may require to also carry a minimum of `1.2 Ada`. Note that no matter what, a minimum coin value is always given in Lovelace / Ada. // // > ℹ️ This mechanism is used by the protocol to protect against flooding of the network with worthless assets. By requiring a minimum coin value to every // UTxO, they are given an intrinsic value indexed itself on the value of Ada. MinimumCoins []struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"minimum_coins"` } JSON400 *interface{} JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostTransactionFeeResponse ¶
func ParsePostTransactionFeeResponse(rsp *http.Response) (*PostTransactionFeeResponse, error)
ParsePostTransactionFeeResponse parses an HTTP response from a PostTransactionFeeWithResponse call
func (PostTransactionFeeResponse) Status ¶
func (r PostTransactionFeeResponse) Status() string
Status returns HTTPResponse.Status
func (PostTransactionFeeResponse) StatusCode ¶
func (r PostTransactionFeeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostTransactionJSONBody ¶
type PostTransactionJSONBody interface{}
PostTransactionJSONBody defines parameters for PostTransaction.
type PostTransactionJSONRequestBody ¶
type PostTransactionJSONRequestBody PostTransactionJSONBody
PostTransactionJSONRequestBody defines body for PostTransaction for application/json ContentType.
type PostTransactionResponse ¶
type PostTransactionResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *interface{} JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostTransactionResponse ¶
func ParsePostTransactionResponse(rsp *http.Response) (*PostTransactionResponse, error)
ParsePostTransactionResponse parses an HTTP response from a PostTransactionWithResponse call
func (PostTransactionResponse) Status ¶
func (r PostTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (PostTransactionResponse) StatusCode ¶
func (r PostTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostWalletJSONBody ¶
type PostWalletJSONBody interface{}
PostWalletJSONBody defines parameters for PostWallet.
type PostWalletJSONRequestBody ¶
type PostWalletJSONRequestBody PostWalletJSONBody
PostWalletJSONRequestBody defines body for PostWallet for application/json ContentType.
type PostWalletResponse ¶
type PostWalletResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { // Number of consecutive unused addresses allowed. // // **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore // your wallet in a different software which is strictly following BIP-44. // // Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks. AddressPoolGap int `json:"address_pool_gap"` // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Wallet current Ada balance(s). Balance struct { // Available Ada UTxO balance (funds that can be spent without condition). Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // The Ada balance of the reward account for this wallet. Reward struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"reward"` // Total Ada balance (available balance plus pending change and reward balance). Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Delegation settings Delegation struct { // Currently active delegation status. Active struct { Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"active"` Next []struct { ChangesAt struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"changes_at"` Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"next"` } `json:"delegation"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON409 *struct { Code string `json:"code"` // May occur when a otherwise valid request would yield a wallet that already exists. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePostWalletResponse ¶
func ParsePostWalletResponse(rsp *http.Response) (*PostWalletResponse, error)
ParsePostWalletResponse parses an HTTP response from a PostWalletWithResponse call
func (PostWalletResponse) Status ¶
func (r PostWalletResponse) Status() string
Status returns HTTPResponse.Status
func (PostWalletResponse) StatusCode ¶
func (r PostWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutByronWalletJSONBody ¶
type PutByronWalletJSONBody struct {
Name *string `json:"name,omitempty"`
}
PutByronWalletJSONBody defines parameters for PutByronWallet.
type PutByronWalletJSONRequestBody ¶
type PutByronWalletJSONRequestBody PutByronWalletJSONBody
PutByronWalletJSONRequestBody defines body for PutByronWallet for application/json ContentType.
type PutByronWalletPassphraseJSONBody ¶
type PutByronWalletPassphraseJSONBody struct { // A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). NewPassphrase string `json:"new_passphrase"` // The current passphrase if present. OldPassphrase *string `json:"old_passphrase,omitempty"` }
PutByronWalletPassphraseJSONBody defines parameters for PutByronWalletPassphrase.
type PutByronWalletPassphraseJSONRequestBody ¶
type PutByronWalletPassphraseJSONRequestBody PutByronWalletPassphraseJSONBody
PutByronWalletPassphraseJSONRequestBody defines body for PutByronWalletPassphrase for application/json ContentType.
type PutByronWalletPassphraseResponse ¶
type PutByronWalletPassphraseResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePutByronWalletPassphraseResponse ¶
func ParsePutByronWalletPassphraseResponse(rsp *http.Response) (*PutByronWalletPassphraseResponse, error)
ParsePutByronWalletPassphraseResponse parses an HTTP response from a PutByronWalletPassphraseWithResponse call
func (PutByronWalletPassphraseResponse) Status ¶
func (r PutByronWalletPassphraseResponse) Status() string
Status returns HTTPResponse.Status
func (PutByronWalletPassphraseResponse) StatusCode ¶
func (r PutByronWalletPassphraseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutByronWalletResponse ¶
type PutByronWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Number of consecutive unused addresses allowed. // // **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore // your wallet in a different software which is strictly following BIP-44. // // Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks. AddressPoolGap int `json:"address_pool_gap"` // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Wallet current Ada balance(s). Balance struct { // Available Ada UTxO balance (funds that can be spent without condition). Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // The Ada balance of the reward account for this wallet. Reward struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"reward"` // Total Ada balance (available balance plus pending change and reward balance). Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Delegation settings Delegation struct { // Currently active delegation status. Active struct { Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"active"` Next []struct { ChangesAt struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"changes_at"` Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"next"` } `json:"delegation"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePutByronWalletResponse ¶
func ParsePutByronWalletResponse(rsp *http.Response) (*PutByronWalletResponse, error)
ParsePutByronWalletResponse parses an HTTP response from a PutByronWalletWithResponse call
func (PutByronWalletResponse) Status ¶
func (r PutByronWalletResponse) Status() string
Status returns HTTPResponse.Status
func (PutByronWalletResponse) StatusCode ¶
func (r PutByronWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutSettingsJSONBody ¶
type PutSettingsJSONBody struct { // Settings Settings *struct { // Select stake pool metadata fetching strategy: // - `none` - metadata is not fetched at all, // - `direct` - metadata is fetched directly URLs registered on chain, // - `uri` - metadata is fetched from an external Stake-Pool Metadata Aggregation Server (SMASH) // // After update existing metadata will be dropped forcing it to re-sync automatically with the new setting. PoolMetadataSource string `json:"pool_metadata_source"` } `json:"settings,omitempty"` }
PutSettingsJSONBody defines parameters for PutSettings.
type PutSettingsJSONRequestBody ¶
type PutSettingsJSONRequestBody PutSettingsJSONBody
PutSettingsJSONRequestBody defines body for PutSettings for application/json ContentType.
type PutSettingsResponse ¶
type PutSettingsResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePutSettingsResponse ¶
func ParsePutSettingsResponse(rsp *http.Response) (*PutSettingsResponse, error)
ParsePutSettingsResponse parses an HTTP response from a PutSettingsWithResponse call
func (PutSettingsResponse) Status ¶
func (r PutSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (PutSettingsResponse) StatusCode ¶
func (r PutSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutWalletJSONBody ¶
type PutWalletJSONBody struct {
Name *string `json:"name,omitempty"`
}
PutWalletJSONBody defines parameters for PutWallet.
type PutWalletJSONRequestBody ¶
type PutWalletJSONRequestBody PutWalletJSONBody
PutWalletJSONRequestBody defines body for PutWallet for application/json ContentType.
type PutWalletPassphraseJSONBody ¶
type PutWalletPassphraseJSONBody struct { // A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). NewPassphrase string `json:"new_passphrase"` // The current passphrase. OldPassphrase string `json:"old_passphrase"` }
PutWalletPassphraseJSONBody defines parameters for PutWalletPassphrase.
type PutWalletPassphraseJSONRequestBody ¶
type PutWalletPassphraseJSONRequestBody PutWalletPassphraseJSONBody
PutWalletPassphraseJSONRequestBody defines body for PutWalletPassphrase for application/json ContentType.
type PutWalletPassphraseResponse ¶
type PutWalletPassphraseResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePutWalletPassphraseResponse ¶
func ParsePutWalletPassphraseResponse(rsp *http.Response) (*PutWalletPassphraseResponse, error)
ParsePutWalletPassphraseResponse parses an HTTP response from a PutWalletPassphraseWithResponse call
func (PutWalletPassphraseResponse) Status ¶
func (r PutWalletPassphraseResponse) Status() string
Status returns HTTPResponse.Status
func (PutWalletPassphraseResponse) StatusCode ¶
func (r PutWalletPassphraseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutWalletResponse ¶
type PutWalletResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // Number of consecutive unused addresses allowed. // // **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore // your wallet in a different software which is strictly following BIP-44. // // Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks. AddressPoolGap int `json:"address_pool_gap"` // Current non-Ada asset holdings of the wallet. // // The amount of assets available to spend may be less than the total // unspent assets due to transaction change amounts which are yet to // be fully confirmed (pending). Assets struct { // Available UTxO asset balances (funds that can be spent without // condition). Available []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"available"` // Total asset balances (available balances plus pending change balances). Total []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"total"` } `json:"assets"` // Wallet current Ada balance(s). Balance struct { // Available Ada UTxO balance (funds that can be spent without condition). Available struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"available"` // The Ada balance of the reward account for this wallet. Reward struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"reward"` // Total Ada balance (available balance plus pending change and reward balance). Total struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"total"` } `json:"balance"` // Delegation settings Delegation struct { // Currently active delegation status. Active struct { Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"active"` Next []struct { ChangesAt struct { // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` EpochStartTime string `json:"epoch_start_time"` } `json:"changes_at"` Status string `json:"status"` // A unique Stake-Pool identifier (present only if status = `delegating`) Target *string `json:"target,omitempty"` } `json:"next"` } `json:"delegation"` // A unique identifier for the wallet Id string `json:"id"` Name string `json:"name"` // Information about the wallet's passphrase Passphrase *struct { LastUpdatedAt string `json:"last_updated_at"` } `json:"passphrase,omitempty"` // Whether a wallet is ready to use or still syncing State struct { // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == syncing // </span><br/> Progress *struct { Quantity float32 `json:"quantity"` Unit string `json:"unit"` } `json:"progress,omitempty"` Status string `json:"status"` } `json:"state"` // A reference to a particular time slot, and the block height at that point. Tip struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"tip"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParsePutWalletResponse ¶
func ParsePutWalletResponse(rsp *http.Response) (*PutWalletResponse, error)
ParsePutWalletResponse parses an HTTP response from a PutWalletWithResponse call
func (PutWalletResponse) Status ¶
func (r PutWalletResponse) Status() string
Status returns HTTPResponse.Status
func (PutWalletResponse) StatusCode ¶
func (r PutWalletResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QuitStakePoolJSONBody ¶
type QuitStakePoolJSONBody struct { // The source Byron wallet's master passphrase. Passphrase string `json:"passphrase"` }
QuitStakePoolJSONBody defines parameters for QuitStakePool.
type QuitStakePoolJSONRequestBody ¶
type QuitStakePoolJSONRequestBody QuitStakePoolJSONBody
QuitStakePoolJSONRequestBody defines body for QuitStakePool for application/json ContentType.
type QuitStakePoolResponse ¶
type QuitStakePoolResponse struct { Body []byte HTTPResponse *http.Response JSON202 *struct { // An amount of Ada spent or received, from the perspective of the wallet. // // That is, for outgoing transaction, it represents the amount of Ada consumed // as inputs, minus the amount of Ada spent as fees, as deposits or to addresses // which do not belong to the wallet. // // For incoming transaction, it represents the total amount of Ada received to // addresses that belong to the wallet. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Deposit struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposit"` // <span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;"> // <strong>if:</strong> status == in_ledger // </span><br/> // Current depth of the transaction in the local chain Depth *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"depth,omitempty"` Direction string `json:"direction"` // A reference to a particular time slot. ExpiresAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"expires_at,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Fee struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"fee"` // A unique identifier for this transaction Id string `json:"id"` // A list of transaction inputs. // // `assets` and `address` are always present for `outgoing` // transactions but generally absent for `incoming` // transactions. This information is present on the Cardano explorer, // but is not tracked by the wallet. Inputs []struct { Address *string `json:"address,omitempty"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount *struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount,omitempty"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // A reference to a particular time slot, and the block height at that point. InsertedAt *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"inserted_at,omitempty"` // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *Metadata `json:"metadata"` // <p>status: <strong>⚠ under development</strong></p> // // _This field is not implemented yet, and will always be empty._ // // Assets minted (created) or unminted (destroyed) // // This amount contributes to the total transaction value. // // Positive values denote creation of assets and negative values // denote the reverse. Mint []struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A user-facing short fingerprint which combines the `policy_id` and `asset_name` // to allow for an easier human comparison of assets. Note that it is generally // **not okay** to use this fingerprint as a unique identifier for it is not collision // resistant. Yet within the context of a single wallet, it makes for a (rather) // short user-facing comparison mean. Fingerprint *string `json:"fingerprint,omitempty"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Positive values mean creation and negative values mean // destruction. Quantity int `json:"quantity"` } `json:"mint"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A reference to a particular time slot, and the block height at that point. PendingSince *struct { // The 0-based slot index starting from genesis of the blockchain. AbsoluteSlotNumber int `json:"absolute_slot_number"` // An epoch is a time period which is divided into slots. EpochNumber int `json:"epoch_number"` Height struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"height"` // The zero-based slot index within an epoch. SlotNumber int `json:"slot_number"` Time string `json:"time"` } `json:"pending_since,omitempty"` // Current transaction status. // // “` // *---------* *-----------* // | |----------> EXPIRED | // | | (ttl) *-----------* // -------> PENDING | // | <----------------* // | | | // *---------* (rollback) // | | // (in ledger) *-----------* // | | | // *---------------> IN_LEDGER | // | | // *-----------* // “` Status string `json:"status"` // A list of withdrawals from stake addresses. Withdrawals []struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` StakeAddress string `json:"stake_address"` } `json:"withdrawals"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseQuitStakePoolResponse ¶
func ParseQuitStakePoolResponse(rsp *http.Response) (*QuitStakePoolResponse, error)
ParseQuitStakePoolResponse parses an HTTP response from a QuitStakePoolWithResponse call
func (QuitStakePoolResponse) Status ¶
func (r QuitStakePoolResponse) Status() string
Status returns HTTPResponse.Status
func (QuitStakePoolResponse) StatusCode ¶
func (r QuitStakePoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ScriptTemplateValue ¶
type ScriptTemplateValue interface{}
ScriptTemplateValue defines model for ScriptTemplateValue.
type SelectCoinsJSONBody ¶
type SelectCoinsJSONBody interface{}
SelectCoinsJSONBody defines parameters for SelectCoins.
type SelectCoinsJSONRequestBody ¶
type SelectCoinsJSONRequestBody SelectCoinsJSONBody
SelectCoinsJSONRequestBody defines body for SelectCoins for application/json ContentType.
type SelectCoinsResponse ¶
type SelectCoinsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Certificates *[]struct { CertificateType string `json:"certificate_type"` // A unique identifier for the pool. Pool *string `json:"pool,omitempty"` RewardAccountPath []string `json:"reward_account_path"` } `json:"certificates,omitempty"` // A list of transaction change outputs. Change []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` } `json:"change"` // A list of deposits associated with a transaction. Deposits *[]struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"deposits,omitempty"` // A list of transaction inputs Inputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` // A unique identifier for this transaction Id string `json:"id"` Index int `json:"index"` } `json:"inputs"` // Transaction metadata, serialized according to the expected on-chain binary format, base64-encoded. Metadata *string `json:"metadata,omitempty"` // A list of target outputs Outputs []struct { Address string `json:"address"` // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A flat list of assets. Assets *[]struct { // The asset on-chain type which acts as a sub-identifier within a // policy. Although we call it "asset name", the value needn't be // text, and it could even be empty. // // For policies with a single fungible asset item, asset name is // typically an empty string. // // This value can be up to 32 bytes of arbitrary data (which is 64 // hexadecimal digits). AssetName string `json:"asset_name"` // A unique identifier of the asset's monetary policy. The policy // controls how assets of this kind are created and destroyed. // // The contents are the blake2b-224 hash of the monetary policy // script, encoded in hexadecimal. PolicyId string `json:"policy_id"` // Number of assets for the given `policy_id` and `asset_name`. Quantity int `json:"quantity"` } `json:"assets,omitempty"` } `json:"outputs"` // A list of withdrawals from stake addresses. Withdrawals *[]struct { // Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. Amount struct { Quantity int `json:"quantity"` Unit string `json:"unit"` } `json:"amount"` // A path for deriving a child key from a parent key. DerivationPath []string `json:"derivation_path"` StakeAddress string `json:"stake_address"` } `json:"withdrawals,omitempty"` } JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON403 *interface{} JSON404 *struct { Code string `json:"code"` // May occur when a given walletId does not match with any known // wallets (because it has been deleted, or has never existed). Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { Code string `json:"code"` // May occur when providing an invalid 'Content-Type' header. Message string `json:"message"` } }
func ParseSelectCoinsResponse ¶
func ParseSelectCoinsResponse(rsp *http.Response) (*SelectCoinsResponse, error)
ParseSelectCoinsResponse parses an HTTP response from a SelectCoinsWithResponse call
func (SelectCoinsResponse) Status ¶
func (r SelectCoinsResponse) Status() string
Status returns HTTPResponse.Status
func (SelectCoinsResponse) StatusCode ¶
func (r SelectCoinsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ServerInterface ¶
type ServerInterface interface { // Construct Address // (POST /addresses) PostAnyAddress(ctx echo.Context) error // Inspect Address // (GET /addresses/{addressId}) InspectAddress(ctx echo.Context, addressId string) error // List // (GET /byron-wallets) ListByronWallets(ctx echo.Context) error // Restore // (POST /byron-wallets) PostByronWallet(ctx echo.Context) error // Delete // (DELETE /byron-wallets/{walletId}) DeleteByronWallet(ctx echo.Context, walletId string) error // Get // (GET /byron-wallets/{walletId}) GetByronWallet(ctx echo.Context, walletId string) error // Update Metadata // (PUT /byron-wallets/{walletId}) PutByronWallet(ctx echo.Context, walletId string) error // List // (GET /byron-wallets/{walletId}/addresses) ListByronAddresses(ctx echo.Context, walletId string, params ListByronAddressesParams) error // Create Address // (POST /byron-wallets/{walletId}/addresses) CreateAddress(ctx echo.Context, walletId string) error // Import Addresses // (PUT /byron-wallets/{walletId}/addresses) ImportAddresses(ctx echo.Context, walletId string) error // Import Address // (PUT /byron-wallets/{walletId}/addresses/{addressId}) ImportAddress(ctx echo.Context, walletId string, addressId string) error // List Assets // (GET /byron-wallets/{walletId}/assets) ListByronAssets(ctx echo.Context, walletId string) error // Get Asset (empty name) // (GET /byron-wallets/{walletId}/assets/{policyId}) GetByronAssetDefault(ctx echo.Context, walletId string, policyId string) error // Get Asset // (GET /byron-wallets/{walletId}/assets/{policyId}/{assetName}) GetByronAsset(ctx echo.Context, walletId string, policyId string, assetName string) error // Random // (POST /byron-wallets/{walletId}/coin-selections/random) ByronSelectCoins(ctx echo.Context, walletId string) error // Calculate Cost // (GET /byron-wallets/{walletId}/migrations) GetByronWalletMigrationInfo(ctx echo.Context, walletId string) error // Migrate // (POST /byron-wallets/{walletId}/migrations) MigrateByronWallet(ctx echo.Context, walletId string) error // Update Passphrase // (PUT /byron-wallets/{walletId}/passphrase) PutByronWalletPassphrase(ctx echo.Context, walletId string) error // Estimate Fee // (POST /byron-wallets/{walletId}/payment-fees) PostByronTransactionFee(ctx echo.Context, walletId string) error // UTxO Statistics // (GET /byron-wallets/{walletId}/statistics/utxos) GetByronUTxOsStatistics(ctx echo.Context, walletId string) error // List // (GET /byron-wallets/{walletId}/transactions) ListByronTransactions(ctx echo.Context, walletId string, params ListByronTransactionsParams) error // Create // (POST /byron-wallets/{walletId}/transactions) PostByronTransaction(ctx echo.Context, walletId string) error // Forget // (DELETE /byron-wallets/{walletId}/transactions/{transactionId}) DeleteByronTransaction(ctx echo.Context, walletId string, transactionId string) error // Get // (GET /byron-wallets/{walletId}/transactions/{transactionId}) GetByronTransaction(ctx echo.Context, walletId string, transactionId string) error // Clock // (GET /network/clock) GetNetworkClock(ctx echo.Context, params GetNetworkClockParams) error // Information // (GET /network/information) GetNetworkInformation(ctx echo.Context) error // Parameters // (GET /network/parameters) GetNetworkParameters(ctx echo.Context) error // Submit External Transaction // (POST /proxy/transactions) PostExternalTransaction(ctx echo.Context) error // Get settings // (GET /settings) GetSettings(ctx echo.Context) error // Update settings // (PUT /settings) PutSettings(ctx echo.Context) error // (POST /shared-wallets) PostSharedWallet(ctx echo.Context) error // (DELETE /shared-wallets/{walletId}) DeleteSharedWallet(ctx echo.Context, walletId string) error // (GET /shared-wallets/{walletId}) GetSharedWallet(ctx echo.Context, walletId string) error // (PATCH /shared-wallets/{walletId}/delegation-script-template) PatchSharedWalletInDelegation(ctx echo.Context, walletId string) error // (PATCH /shared-wallets/{walletId}/payment-script-template) PatchSharedWalletInPayment(ctx echo.Context, walletId string) error // Current SMASH health // (GET /smash/health) GetCurrentSmashHealth(ctx echo.Context, params GetCurrentSmashHealthParams) error // List // (GET /stake-pools) ListStakePools(ctx echo.Context, params ListStakePoolsParams) error // Quit // (DELETE /stake-pools/*/wallets/{walletId}) QuitStakePool(ctx echo.Context, walletId string) error // View maintenance actions // (GET /stake-pools/maintenance-actions) GetMaintenanceActions(ctx echo.Context) error // Trigger Maintenance actions // (POST /stake-pools/maintenance-actions) PostMaintenanceAction(ctx echo.Context) error // Join // (PUT /stake-pools/{stakePoolId}/wallets/{walletId}) JoinStakePool(ctx echo.Context, stakePoolId string, walletId string) error // List // (GET /wallets) ListWallets(ctx echo.Context) error // Create / Restore // (POST /wallets) PostWallet(ctx echo.Context) error // Delete // (DELETE /wallets/{walletId}) DeleteWallet(ctx echo.Context, walletId string) error // Get // (GET /wallets/{walletId}) GetWallet(ctx echo.Context, walletId string) error // Update Metadata // (PUT /wallets/{walletId}) PutWallet(ctx echo.Context, walletId string) error // List // (GET /wallets/{walletId}/addresses) ListAddresses(ctx echo.Context, walletId string, params ListAddressesParams) error // List Assets // (GET /wallets/{walletId}/assets) ListAssets(ctx echo.Context, walletId string) error // Get Asset (empty name) // (GET /wallets/{walletId}/assets/{policyId}) GetAssetDefault(ctx echo.Context, walletId string, policyId string) error // Get Asset // (GET /wallets/{walletId}/assets/{policyId}/{assetName}) GetAsset(ctx echo.Context, walletId string, policyId string, assetName string) error // Random // (POST /wallets/{walletId}/coin-selections/random) SelectCoins(ctx echo.Context, walletId string) error // Estimate Fee // (GET /wallets/{walletId}/delegation-fees) GetDelegationFee(ctx echo.Context, walletId string) error // Create // (POST /wallets/{walletId}/keys/{index}) PostAccountKey(ctx echo.Context, walletId string, index string) error // Get Public Key // (GET /wallets/{walletId}/keys/{role}/{index}) GetWalletKey(ctx echo.Context, walletId string, role string, index string) error // Calculate Cost // (GET /wallets/{walletId}/migrations) GetShelleyWalletMigrationInfo(ctx echo.Context, walletId string) error // Migrate // (POST /wallets/{walletId}/migrations) MigrateShelleyWallet(ctx echo.Context, walletId string) error // Update Passphrase // (PUT /wallets/{walletId}/passphrase) PutWalletPassphrase(ctx echo.Context, walletId string) error // Estimate Fee // (POST /wallets/{walletId}/payment-fees) PostTransactionFee(ctx echo.Context, walletId string) error // Sign Metadata // (POST /wallets/{walletId}/signatures/{role}/{index}) SignMetadata(ctx echo.Context, walletId string, role string, index string) error // UTxO Statistics // (GET /wallets/{walletId}/statistics/utxos) GetUTxOsStatistics(ctx echo.Context, walletId string) error // List // (GET /wallets/{walletId}/transactions) ListTransactions(ctx echo.Context, walletId string, params ListTransactionsParams) error // Create // (POST /wallets/{walletId}/transactions) PostTransaction(ctx echo.Context, walletId string) error // Forget // (DELETE /wallets/{walletId}/transactions/{transactionId}) DeleteTransaction(ctx echo.Context, walletId string, transactionId string) error // Get // (GET /wallets/{walletId}/transactions/{transactionId}) GetTransaction(ctx echo.Context, walletId string, transactionId string) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) ByronSelectCoins ¶
func (w *ServerInterfaceWrapper) ByronSelectCoins(ctx echo.Context) error
ByronSelectCoins converts echo context to params.
func (*ServerInterfaceWrapper) CreateAddress ¶
func (w *ServerInterfaceWrapper) CreateAddress(ctx echo.Context) error
CreateAddress converts echo context to params.
func (*ServerInterfaceWrapper) DeleteByronTransaction ¶
func (w *ServerInterfaceWrapper) DeleteByronTransaction(ctx echo.Context) error
DeleteByronTransaction converts echo context to params.
func (*ServerInterfaceWrapper) DeleteByronWallet ¶
func (w *ServerInterfaceWrapper) DeleteByronWallet(ctx echo.Context) error
DeleteByronWallet converts echo context to params.
func (*ServerInterfaceWrapper) DeleteSharedWallet ¶
func (w *ServerInterfaceWrapper) DeleteSharedWallet(ctx echo.Context) error
DeleteSharedWallet converts echo context to params.
func (*ServerInterfaceWrapper) DeleteTransaction ¶
func (w *ServerInterfaceWrapper) DeleteTransaction(ctx echo.Context) error
DeleteTransaction converts echo context to params.
func (*ServerInterfaceWrapper) DeleteWallet ¶
func (w *ServerInterfaceWrapper) DeleteWallet(ctx echo.Context) error
DeleteWallet converts echo context to params.
func (*ServerInterfaceWrapper) GetAsset ¶
func (w *ServerInterfaceWrapper) GetAsset(ctx echo.Context) error
GetAsset converts echo context to params.
func (*ServerInterfaceWrapper) GetAssetDefault ¶
func (w *ServerInterfaceWrapper) GetAssetDefault(ctx echo.Context) error
GetAssetDefault converts echo context to params.
func (*ServerInterfaceWrapper) GetByronAsset ¶
func (w *ServerInterfaceWrapper) GetByronAsset(ctx echo.Context) error
GetByronAsset converts echo context to params.
func (*ServerInterfaceWrapper) GetByronAssetDefault ¶
func (w *ServerInterfaceWrapper) GetByronAssetDefault(ctx echo.Context) error
GetByronAssetDefault converts echo context to params.
func (*ServerInterfaceWrapper) GetByronTransaction ¶
func (w *ServerInterfaceWrapper) GetByronTransaction(ctx echo.Context) error
GetByronTransaction converts echo context to params.
func (*ServerInterfaceWrapper) GetByronUTxOsStatistics ¶
func (w *ServerInterfaceWrapper) GetByronUTxOsStatistics(ctx echo.Context) error
GetByronUTxOsStatistics converts echo context to params.
func (*ServerInterfaceWrapper) GetByronWallet ¶
func (w *ServerInterfaceWrapper) GetByronWallet(ctx echo.Context) error
GetByronWallet converts echo context to params.
func (*ServerInterfaceWrapper) GetByronWalletMigrationInfo ¶
func (w *ServerInterfaceWrapper) GetByronWalletMigrationInfo(ctx echo.Context) error
GetByronWalletMigrationInfo converts echo context to params.
func (*ServerInterfaceWrapper) GetCurrentSmashHealth ¶
func (w *ServerInterfaceWrapper) GetCurrentSmashHealth(ctx echo.Context) error
GetCurrentSmashHealth converts echo context to params.
func (*ServerInterfaceWrapper) GetDelegationFee ¶
func (w *ServerInterfaceWrapper) GetDelegationFee(ctx echo.Context) error
GetDelegationFee converts echo context to params.
func (*ServerInterfaceWrapper) GetMaintenanceActions ¶
func (w *ServerInterfaceWrapper) GetMaintenanceActions(ctx echo.Context) error
GetMaintenanceActions converts echo context to params.
func (*ServerInterfaceWrapper) GetNetworkClock ¶
func (w *ServerInterfaceWrapper) GetNetworkClock(ctx echo.Context) error
GetNetworkClock converts echo context to params.
func (*ServerInterfaceWrapper) GetNetworkInformation ¶
func (w *ServerInterfaceWrapper) GetNetworkInformation(ctx echo.Context) error
GetNetworkInformation converts echo context to params.
func (*ServerInterfaceWrapper) GetNetworkParameters ¶
func (w *ServerInterfaceWrapper) GetNetworkParameters(ctx echo.Context) error
GetNetworkParameters converts echo context to params.
func (*ServerInterfaceWrapper) GetSettings ¶
func (w *ServerInterfaceWrapper) GetSettings(ctx echo.Context) error
GetSettings converts echo context to params.
func (*ServerInterfaceWrapper) GetSharedWallet ¶
func (w *ServerInterfaceWrapper) GetSharedWallet(ctx echo.Context) error
GetSharedWallet converts echo context to params.
func (*ServerInterfaceWrapper) GetShelleyWalletMigrationInfo ¶
func (w *ServerInterfaceWrapper) GetShelleyWalletMigrationInfo(ctx echo.Context) error
GetShelleyWalletMigrationInfo converts echo context to params.
func (*ServerInterfaceWrapper) GetTransaction ¶
func (w *ServerInterfaceWrapper) GetTransaction(ctx echo.Context) error
GetTransaction converts echo context to params.
func (*ServerInterfaceWrapper) GetUTxOsStatistics ¶
func (w *ServerInterfaceWrapper) GetUTxOsStatistics(ctx echo.Context) error
GetUTxOsStatistics converts echo context to params.
func (*ServerInterfaceWrapper) GetWallet ¶
func (w *ServerInterfaceWrapper) GetWallet(ctx echo.Context) error
GetWallet converts echo context to params.
func (*ServerInterfaceWrapper) GetWalletKey ¶
func (w *ServerInterfaceWrapper) GetWalletKey(ctx echo.Context) error
GetWalletKey converts echo context to params.
func (*ServerInterfaceWrapper) ImportAddress ¶
func (w *ServerInterfaceWrapper) ImportAddress(ctx echo.Context) error
ImportAddress converts echo context to params.
func (*ServerInterfaceWrapper) ImportAddresses ¶
func (w *ServerInterfaceWrapper) ImportAddresses(ctx echo.Context) error
ImportAddresses converts echo context to params.
func (*ServerInterfaceWrapper) InspectAddress ¶
func (w *ServerInterfaceWrapper) InspectAddress(ctx echo.Context) error
InspectAddress converts echo context to params.
func (*ServerInterfaceWrapper) JoinStakePool ¶
func (w *ServerInterfaceWrapper) JoinStakePool(ctx echo.Context) error
JoinStakePool converts echo context to params.
func (*ServerInterfaceWrapper) ListAddresses ¶
func (w *ServerInterfaceWrapper) ListAddresses(ctx echo.Context) error
ListAddresses converts echo context to params.
func (*ServerInterfaceWrapper) ListAssets ¶
func (w *ServerInterfaceWrapper) ListAssets(ctx echo.Context) error
ListAssets converts echo context to params.
func (*ServerInterfaceWrapper) ListByronAddresses ¶
func (w *ServerInterfaceWrapper) ListByronAddresses(ctx echo.Context) error
ListByronAddresses converts echo context to params.
func (*ServerInterfaceWrapper) ListByronAssets ¶
func (w *ServerInterfaceWrapper) ListByronAssets(ctx echo.Context) error
ListByronAssets converts echo context to params.
func (*ServerInterfaceWrapper) ListByronTransactions ¶
func (w *ServerInterfaceWrapper) ListByronTransactions(ctx echo.Context) error
ListByronTransactions converts echo context to params.
func (*ServerInterfaceWrapper) ListByronWallets ¶
func (w *ServerInterfaceWrapper) ListByronWallets(ctx echo.Context) error
ListByronWallets converts echo context to params.
func (*ServerInterfaceWrapper) ListStakePools ¶
func (w *ServerInterfaceWrapper) ListStakePools(ctx echo.Context) error
ListStakePools converts echo context to params.
func (*ServerInterfaceWrapper) ListTransactions ¶
func (w *ServerInterfaceWrapper) ListTransactions(ctx echo.Context) error
ListTransactions converts echo context to params.
func (*ServerInterfaceWrapper) ListWallets ¶
func (w *ServerInterfaceWrapper) ListWallets(ctx echo.Context) error
ListWallets converts echo context to params.
func (*ServerInterfaceWrapper) MigrateByronWallet ¶
func (w *ServerInterfaceWrapper) MigrateByronWallet(ctx echo.Context) error
MigrateByronWallet converts echo context to params.
func (*ServerInterfaceWrapper) MigrateShelleyWallet ¶
func (w *ServerInterfaceWrapper) MigrateShelleyWallet(ctx echo.Context) error
MigrateShelleyWallet converts echo context to params.
func (*ServerInterfaceWrapper) PatchSharedWalletInDelegation ¶
func (w *ServerInterfaceWrapper) PatchSharedWalletInDelegation(ctx echo.Context) error
PatchSharedWalletInDelegation converts echo context to params.
func (*ServerInterfaceWrapper) PatchSharedWalletInPayment ¶
func (w *ServerInterfaceWrapper) PatchSharedWalletInPayment(ctx echo.Context) error
PatchSharedWalletInPayment converts echo context to params.
func (*ServerInterfaceWrapper) PostAccountKey ¶
func (w *ServerInterfaceWrapper) PostAccountKey(ctx echo.Context) error
PostAccountKey converts echo context to params.
func (*ServerInterfaceWrapper) PostAnyAddress ¶
func (w *ServerInterfaceWrapper) PostAnyAddress(ctx echo.Context) error
PostAnyAddress converts echo context to params.
func (*ServerInterfaceWrapper) PostByronTransaction ¶
func (w *ServerInterfaceWrapper) PostByronTransaction(ctx echo.Context) error
PostByronTransaction converts echo context to params.
func (*ServerInterfaceWrapper) PostByronTransactionFee ¶
func (w *ServerInterfaceWrapper) PostByronTransactionFee(ctx echo.Context) error
PostByronTransactionFee converts echo context to params.
func (*ServerInterfaceWrapper) PostByronWallet ¶
func (w *ServerInterfaceWrapper) PostByronWallet(ctx echo.Context) error
PostByronWallet converts echo context to params.
func (*ServerInterfaceWrapper) PostExternalTransaction ¶
func (w *ServerInterfaceWrapper) PostExternalTransaction(ctx echo.Context) error
PostExternalTransaction converts echo context to params.
func (*ServerInterfaceWrapper) PostMaintenanceAction ¶
func (w *ServerInterfaceWrapper) PostMaintenanceAction(ctx echo.Context) error
PostMaintenanceAction converts echo context to params.
func (*ServerInterfaceWrapper) PostSharedWallet ¶
func (w *ServerInterfaceWrapper) PostSharedWallet(ctx echo.Context) error
PostSharedWallet converts echo context to params.
func (*ServerInterfaceWrapper) PostTransaction ¶
func (w *ServerInterfaceWrapper) PostTransaction(ctx echo.Context) error
PostTransaction converts echo context to params.
func (*ServerInterfaceWrapper) PostTransactionFee ¶
func (w *ServerInterfaceWrapper) PostTransactionFee(ctx echo.Context) error
PostTransactionFee converts echo context to params.
func (*ServerInterfaceWrapper) PostWallet ¶
func (w *ServerInterfaceWrapper) PostWallet(ctx echo.Context) error
PostWallet converts echo context to params.
func (*ServerInterfaceWrapper) PutByronWallet ¶
func (w *ServerInterfaceWrapper) PutByronWallet(ctx echo.Context) error
PutByronWallet converts echo context to params.
func (*ServerInterfaceWrapper) PutByronWalletPassphrase ¶
func (w *ServerInterfaceWrapper) PutByronWalletPassphrase(ctx echo.Context) error
PutByronWalletPassphrase converts echo context to params.
func (*ServerInterfaceWrapper) PutSettings ¶
func (w *ServerInterfaceWrapper) PutSettings(ctx echo.Context) error
PutSettings converts echo context to params.
func (*ServerInterfaceWrapper) PutWallet ¶
func (w *ServerInterfaceWrapper) PutWallet(ctx echo.Context) error
PutWallet converts echo context to params.
func (*ServerInterfaceWrapper) PutWalletPassphrase ¶
func (w *ServerInterfaceWrapper) PutWalletPassphrase(ctx echo.Context) error
PutWalletPassphrase converts echo context to params.
func (*ServerInterfaceWrapper) QuitStakePool ¶
func (w *ServerInterfaceWrapper) QuitStakePool(ctx echo.Context) error
QuitStakePool converts echo context to params.
func (*ServerInterfaceWrapper) SelectCoins ¶
func (w *ServerInterfaceWrapper) SelectCoins(ctx echo.Context) error
SelectCoins converts echo context to params.
func (*ServerInterfaceWrapper) SignMetadata ¶
func (w *ServerInterfaceWrapper) SignMetadata(ctx echo.Context) error
SignMetadata converts echo context to params.
type SignMetadataJSONBody ¶
type SignMetadataJSONBody struct { // **⚠️ WARNING ⚠️** // // _Please note that metadata provided in a transaction will be // stored on the blockchain forever. Make sure not to include any sensitive data, // in particular personally identifiable information (PII)._ // // Extra application data attached to the transaction. // // Cardano allows users and developers to embed their own // authenticated metadata when submitting transactions. Metadata can // be expressed as a JSON object with some restrictions: // // 1. All top-level keys must be integers between `0` and `2^64 - 1`. // // 2. Each metadata value is tagged with its type. // // 3. Strings must be at most 64 bytes when UTF-8 encoded. // // 4. Bytestrings are hex-encoded, with a maximum length of 64 bytes. // // Metadata aren't stored as JSON on the Cardano blockchain but are // instead stored using a compact binary encoding (CBOR). // // The binary encoding of metadata values supports three simple types: // // * Integers in the range `-(2^64 - 1)` to `2^64 - 1` // * Strings (UTF-8 encoded) // * Bytestrings // // And two compound types: // // * Lists of metadata values // * Mappings from metadata values to metadata values // // It is possible to transform any JSON object into this schema. // // However, if your application uses floating point values, they will // need to be converted somehow, according to your // requirements. Likewise for `null` or `bool` values. When reading // metadata from chain, be aware that integers may exceed the // javascript numeric range, and may need special "bigint" parsing. Metadata *SignMetadataJSONBody_Metadata `json:"metadata"` // A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) Passphrase string `json:"passphrase"` }
SignMetadataJSONBody defines parameters for SignMetadata.
type SignMetadataJSONBody_Metadata ¶
type SignMetadataJSONBody_Metadata struct {
AdditionalProperties map[string]TransactionMetadataValue `json:"-"`
}
SignMetadataJSONBody_Metadata defines parameters for SignMetadata.
func (SignMetadataJSONBody_Metadata) Get ¶
func (a SignMetadataJSONBody_Metadata) Get(fieldName string) (value TransactionMetadataValue, found bool)
Getter for additional properties for SignMetadataJSONBody_Metadata. Returns the specified element and whether it was found
func (SignMetadataJSONBody_Metadata) MarshalJSON ¶
func (a SignMetadataJSONBody_Metadata) MarshalJSON() ([]byte, error)
Override default JSON handling for SignMetadataJSONBody_Metadata to handle AdditionalProperties
func (*SignMetadataJSONBody_Metadata) Set ¶
func (a *SignMetadataJSONBody_Metadata) Set(fieldName string, value TransactionMetadataValue)
Setter for additional properties for SignMetadataJSONBody_Metadata
func (*SignMetadataJSONBody_Metadata) UnmarshalJSON ¶
func (a *SignMetadataJSONBody_Metadata) UnmarshalJSON(b []byte) error
Override default JSON handling for SignMetadataJSONBody_Metadata to handle AdditionalProperties
type SignMetadataJSONRequestBody ¶
type SignMetadataJSONRequestBody SignMetadataJSONBody
SignMetadataJSONRequestBody defines body for SignMetadata for application/json ContentType.
type SignMetadataResponse ¶
type SignMetadataResponse struct { Body []byte HTTPResponse *http.Response JSON400 *struct { Code string `json:"code"` // May occur when a request is not well-formed; that is, it fails to parse // successfully. This could be the case when some required parameters // are missing or, when malformed values are provided. Message string `json:"message"` } JSON406 *struct { Code string `json:"code"` // May occur when providing an invalid 'Accept' header. Message string `json:"message"` } JSON415 *struct { // A specific error code for this error, more precise than HTTP ones. Code string `json:"code"` // A descriptive error message. Message string `json:"message"` } }
func ParseSignMetadataResponse ¶
func ParseSignMetadataResponse(rsp *http.Response) (*SignMetadataResponse, error)
ParseSignMetadataResponse parses an HTTP response from a SignMetadataWithResponse call
func (SignMetadataResponse) Status ¶
func (r SignMetadataResponse) Status() string
Status returns HTTPResponse.Status
func (SignMetadataResponse) StatusCode ¶
func (r SignMetadataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TransactionMetadataValue ¶
type TransactionMetadataValue interface{}
TransactionMetadataValue defines model for TransactionMetadataValue.