Class DefaultApi

  • Direct Known Subclasses:
    KmdApi

    public class DefaultApi
    extends Object
    • Constructor Detail

      • DefaultApi

        public DefaultApi()
      • DefaultApi

        public DefaultApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createWallet

        public APIV1POSTWalletResponse createWallet​(CreateWalletRequest createWalletRequest)
                                             throws ApiException
        Create a wallet Create a new wallet (collection of keys) with the given parameters.
        Parameters:
        createWalletRequest - (required)
        Returns:
        APIV1POSTWalletResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createWalletWithHttpInfo

        public ApiResponse<APIV1POSTWalletResponse> createWalletWithHttpInfo​(CreateWalletRequest createWalletRequest)
                                                                      throws ApiException
        Create a wallet Create a new wallet (collection of keys) with the given parameters.
        Parameters:
        createWalletRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createWalletAsync

        public com.squareup.okhttp.Call createWalletAsync​(CreateWalletRequest createWalletRequest,
                                                          ApiCallback<APIV1POSTWalletResponse> callback)
                                                   throws ApiException
        Create a wallet (asynchronously) Create a new wallet (collection of keys) with the given parameters.
        Parameters:
        createWalletRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • deleteKey

        public APIV1DELETEKeyResponse deleteKey​(DeleteKeyRequest deleteKeyRequest)
                                         throws ApiException
        Delete a key Deletes the key with the passed public key from the wallet.
        Parameters:
        deleteKeyRequest - (required)
        Returns:
        APIV1DELETEKeyResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteKeyWithHttpInfo

        public ApiResponse<APIV1DELETEKeyResponse> deleteKeyWithHttpInfo​(DeleteKeyRequest deleteKeyRequest)
                                                                  throws ApiException
        Delete a key Deletes the key with the passed public key from the wallet.
        Parameters:
        deleteKeyRequest - (required)
        Returns:
        ApiResponse<APIV1DELETEKeyResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteKeyAsync

        public com.squareup.okhttp.Call deleteKeyAsync​(DeleteKeyRequest deleteKeyRequest,
                                                       ApiCallback<APIV1DELETEKeyResponse> callback)
                                                throws ApiException
        Delete a key (asynchronously) Deletes the key with the passed public key from the wallet.
        Parameters:
        deleteKeyRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • deleteMultisig

        public APIV1DELETEMultisigResponse deleteMultisig​(DeleteMultisigRequest deleteMultisigRequest)
                                                   throws ApiException
        Delete a multisig Deletes multisig preimage information for the passed address from the wallet.
        Parameters:
        deleteMultisigRequest - (required)
        Returns:
        APIV1DELETEMultisigResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteMultisigWithHttpInfo

        public ApiResponse<APIV1DELETEMultisigResponse> deleteMultisigWithHttpInfo​(DeleteMultisigRequest deleteMultisigRequest)
                                                                            throws ApiException
        Delete a multisig Deletes multisig preimage information for the passed address from the wallet.
        Parameters:
        deleteMultisigRequest - (required)
        Returns:
        ApiResponse<APIV1DELETEMultisigResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteMultisigAsync

        public com.squareup.okhttp.Call deleteMultisigAsync​(DeleteMultisigRequest deleteMultisigRequest,
                                                            ApiCallback<APIV1DELETEMultisigResponse> callback)
                                                     throws ApiException
        Delete a multisig (asynchronously) Deletes multisig preimage information for the passed address from the wallet.
        Parameters:
        deleteMultisigRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • exportKey

        public APIV1POSTKeyExportResponse exportKey​(ExportKeyRequest exportKeyRequest)
                                             throws ApiException
        Export a key Export the secret key associated with the passed public key.
        Parameters:
        exportKeyRequest - (required)
        Returns:
        APIV1POSTKeyExportResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportKeyWithHttpInfo

        public ApiResponse<APIV1POSTKeyExportResponse> exportKeyWithHttpInfo​(ExportKeyRequest exportKeyRequest)
                                                                      throws ApiException
        Export a key Export the secret key associated with the passed public key.
        Parameters:
        exportKeyRequest - (required)
        Returns:
        ApiResponse<APIV1POSTKeyExportResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportKeyAsync

        public com.squareup.okhttp.Call exportKeyAsync​(ExportKeyRequest exportKeyRequest,
                                                       ApiCallback<APIV1POSTKeyExportResponse> callback)
                                                throws ApiException
        Export a key (asynchronously) Export the secret key associated with the passed public key.
        Parameters:
        exportKeyRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • exportMasterKey

        public APIV1POSTMasterKeyExportResponse exportMasterKey​(ExportMasterKeyRequest exportMasterKeyRequest)
                                                         throws ApiException
        Export the master derivation key from a wallet Export the master derivation key from the wallet. This key is a master \"backup\" key for the underlying wallet. With it, you can regenerate all of the wallets that have been generated with this wallet's `POST /v1/key` endpoint. This key will not allow you to recover keys imported from other wallets, however.
        Parameters:
        exportMasterKeyRequest - (required)
        Returns:
        APIV1POSTMasterKeyExportResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportMasterKeyWithHttpInfo

        public ApiResponse<APIV1POSTMasterKeyExportResponse> exportMasterKeyWithHttpInfo​(ExportMasterKeyRequest exportMasterKeyRequest)
                                                                                  throws ApiException
        Export the master derivation key from a wallet Export the master derivation key from the wallet. This key is a master \"backup\" key for the underlying wallet. With it, you can regenerate all of the wallets that have been generated with this wallet's `POST /v1/key` endpoint. This key will not allow you to recover keys imported from other wallets, however.
        Parameters:
        exportMasterKeyRequest - (required)
        Returns:
        ApiResponse<APIV1POSTMasterKeyExportResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportMasterKeyAsync

        public com.squareup.okhttp.Call exportMasterKeyAsync​(ExportMasterKeyRequest exportMasterKeyRequest,
                                                             ApiCallback<APIV1POSTMasterKeyExportResponse> callback)
                                                      throws ApiException
        Export the master derivation key from a wallet (asynchronously) Export the master derivation key from the wallet. This key is a master \"backup\" key for the underlying wallet. With it, you can regenerate all of the wallets that have been generated with this wallet's `POST /v1/key` endpoint. This key will not allow you to recover keys imported from other wallets, however.
        Parameters:
        exportMasterKeyRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • exportMultisig

        public APIV1POSTMultisigExportResponse exportMultisig​(ExportMultisigRequest exportMultisigRequest)
                                                       throws ApiException
        Export multisig address metadata Given a multisig address whose preimage this wallet stores, returns the information used to generate the address, including public keys, threshold, and multisig version.
        Parameters:
        exportMultisigRequest - (required)
        Returns:
        APIV1POSTMultisigExportResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportMultisigWithHttpInfo

        public ApiResponse<APIV1POSTMultisigExportResponse> exportMultisigWithHttpInfo​(ExportMultisigRequest exportMultisigRequest)
                                                                                throws ApiException
        Export multisig address metadata Given a multisig address whose preimage this wallet stores, returns the information used to generate the address, including public keys, threshold, and multisig version.
        Parameters:
        exportMultisigRequest - (required)
        Returns:
        ApiResponse<APIV1POSTMultisigExportResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • exportMultisigAsync

        public com.squareup.okhttp.Call exportMultisigAsync​(ExportMultisigRequest exportMultisigRequest,
                                                            ApiCallback<APIV1POSTMultisigExportResponse> callback)
                                                     throws ApiException
        Export multisig address metadata (asynchronously) Given a multisig address whose preimage this wallet stores, returns the information used to generate the address, including public keys, threshold, and multisig version.
        Parameters:
        exportMultisigRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • generateKey

        public APIV1POSTKeyResponse generateKey​(GenerateKeyRequest generateKeyRequest)
                                         throws ApiException
        Generate a key Generates the next key in the deterministic key sequence (as determined by the master derivation key) and adds it to the wallet, returning the public key.
        Parameters:
        generateKeyRequest - (required)
        Returns:
        APIV1POSTKeyResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • generateKeyWithHttpInfo

        public ApiResponse<APIV1POSTKeyResponse> generateKeyWithHttpInfo​(GenerateKeyRequest generateKeyRequest)
                                                                  throws ApiException
        Generate a key Generates the next key in the deterministic key sequence (as determined by the master derivation key) and adds it to the wallet, returning the public key.
        Parameters:
        generateKeyRequest - (required)
        Returns:
        ApiResponse<APIV1POSTKeyResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • generateKeyAsync

        public com.squareup.okhttp.Call generateKeyAsync​(GenerateKeyRequest generateKeyRequest,
                                                         ApiCallback<APIV1POSTKeyResponse> callback)
                                                  throws ApiException
        Generate a key (asynchronously) Generates the next key in the deterministic key sequence (as determined by the master derivation key) and adds it to the wallet, returning the public key.
        Parameters:
        generateKeyRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getVersion

        public VersionsResponse getVersion()
                                    throws ApiException
        Retrieves the current version
        Returns:
        VersionsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getVersionWithHttpInfo

        public ApiResponse<VersionsResponse> getVersionWithHttpInfo()
                                                             throws ApiException
        Retrieves the current version
        Returns:
        ApiResponse<VersionsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getVersionAsync

        public com.squareup.okhttp.Call getVersionAsync​(ApiCallback<VersionsResponse> callback)
                                                 throws ApiException
        (asynchronously) Retrieves the current version
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getWalletInfo

        public APIV1POSTWalletInfoResponse getWalletInfo​(WalletInfoRequest getWalletInfoRequest)
                                                  throws ApiException
        Get wallet info Returns information about the wallet associated with the passed wallet handle token. Additionally returns expiration information about the token itself.
        Parameters:
        getWalletInfoRequest - (required)
        Returns:
        APIV1POSTWalletInfoResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWalletInfoWithHttpInfo

        public ApiResponse<APIV1POSTWalletInfoResponse> getWalletInfoWithHttpInfo​(WalletInfoRequest getWalletInfoRequest)
                                                                           throws ApiException
        Get wallet info Returns information about the wallet associated with the passed wallet handle token. Additionally returns expiration information about the token itself.
        Parameters:
        getWalletInfoRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletInfoResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWalletInfoAsync

        public com.squareup.okhttp.Call getWalletInfoAsync​(WalletInfoRequest getWalletInfoRequest,
                                                           ApiCallback<APIV1POSTWalletInfoResponse> callback)
                                                    throws ApiException
        Get wallet info (asynchronously) Returns information about the wallet associated with the passed wallet handle token. Additionally returns expiration information about the token itself.
        Parameters:
        getWalletInfoRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • importKey

        public APIV1POSTKeyImportResponse importKey​(ImportKeyRequest importKeyRequest)
                                             throws ApiException
        Import a key Import an externally generated key into the wallet. Note that if you wish to back up the imported key, you must do so by backing up the entire wallet database, because imported keys were not derived from the wallet's master derivation key.
        Parameters:
        importKeyRequest - (required)
        Returns:
        APIV1POSTKeyImportResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • importKeyWithHttpInfo

        public ApiResponse<APIV1POSTKeyImportResponse> importKeyWithHttpInfo​(ImportKeyRequest importKeyRequest)
                                                                      throws ApiException
        Import a key Import an externally generated key into the wallet. Note that if you wish to back up the imported key, you must do so by backing up the entire wallet database, because imported keys were not derived from the wallet's master derivation key.
        Parameters:
        importKeyRequest - (required)
        Returns:
        ApiResponse<APIV1POSTKeyImportResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • importKeyAsync

        public com.squareup.okhttp.Call importKeyAsync​(ImportKeyRequest importKeyRequest,
                                                       ApiCallback<APIV1POSTKeyImportResponse> callback)
                                                throws ApiException
        Import a key (asynchronously) Import an externally generated key into the wallet. Note that if you wish to back up the imported key, you must do so by backing up the entire wallet database, because imported keys were not derived from the wallet's master derivation key.
        Parameters:
        importKeyRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • importMultisig

        public APIV1POSTMultisigImportResponse importMultisig​(ImportMultisigRequest importMultisigRequest)
                                                       throws ApiException
        Import a multisig account Generates a multisig account from the passed public keys array and multisig metadata, and stores all of this in the wallet.
        Parameters:
        importMultisigRequest - (required)
        Returns:
        APIV1POSTMultisigImportResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • importMultisigWithHttpInfo

        public ApiResponse<APIV1POSTMultisigImportResponse> importMultisigWithHttpInfo​(ImportMultisigRequest importMultisigRequest)
                                                                                throws ApiException
        Import a multisig account Generates a multisig account from the passed public keys array and multisig metadata, and stores all of this in the wallet.
        Parameters:
        importMultisigRequest - (required)
        Returns:
        ApiResponse<APIV1POSTMultisigImportResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • importMultisigAsync

        public com.squareup.okhttp.Call importMultisigAsync​(ImportMultisigRequest importMultisigRequest,
                                                            ApiCallback<APIV1POSTMultisigImportResponse> callback)
                                                     throws ApiException
        Import a multisig account (asynchronously) Generates a multisig account from the passed public keys array and multisig metadata, and stores all of this in the wallet.
        Parameters:
        importMultisigRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • initWalletHandleToken

        public APIV1POSTWalletInitResponse initWalletHandleToken​(InitWalletHandleTokenRequest initializeWalletHandleTokenRequest)
                                                          throws ApiException
        Initialize a wallet handle token Unlock the wallet and return a wallet handle token that can be used for subsequent operations. These tokens expire periodically and must be renewed. You can `POST` the token to `/v1/wallet/info` to see how much time remains until expiration, and renew it with `/v1/wallet/renew`. When you're done, you can invalidate the token with `/v1/wallet/release`.
        Parameters:
        initializeWalletHandleTokenRequest - (required)
        Returns:
        APIV1POSTWalletInitResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • initWalletHandleTokenWithHttpInfo

        public ApiResponse<APIV1POSTWalletInitResponse> initWalletHandleTokenWithHttpInfo​(InitWalletHandleTokenRequest initializeWalletHandleTokenRequest)
                                                                                   throws ApiException
        Initialize a wallet handle token Unlock the wallet and return a wallet handle token that can be used for subsequent operations. These tokens expire periodically and must be renewed. You can `POST` the token to `/v1/wallet/info` to see how much time remains until expiration, and renew it with `/v1/wallet/renew`. When you're done, you can invalidate the token with `/v1/wallet/release`.
        Parameters:
        initializeWalletHandleTokenRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletInitResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • initWalletHandleTokenAsync

        public com.squareup.okhttp.Call initWalletHandleTokenAsync​(InitWalletHandleTokenRequest initializeWalletHandleTokenRequest,
                                                                   ApiCallback<APIV1POSTWalletInitResponse> callback)
                                                            throws ApiException
        Initialize a wallet handle token (asynchronously) Unlock the wallet and return a wallet handle token that can be used for subsequent operations. These tokens expire periodically and must be renewed. You can `POST` the token to `/v1/wallet/info` to see how much time remains until expiration, and renew it with `/v1/wallet/renew`. When you're done, you can invalidate the token with `/v1/wallet/release`.
        Parameters:
        initializeWalletHandleTokenRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • listKeysInWallet

        public APIV1POSTKeyListResponse listKeysInWallet​(ListKeysRequest listKeysRequest)
                                                  throws ApiException
        List keys in wallet Lists all of the public keys in this wallet. All of them have a stored private key.
        Parameters:
        listKeysRequest - (required)
        Returns:
        APIV1POSTKeyListResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listKeysInWalletWithHttpInfo

        public ApiResponse<APIV1POSTKeyListResponse> listKeysInWalletWithHttpInfo​(ListKeysRequest listKeysRequest)
                                                                           throws ApiException
        List keys in wallet Lists all of the public keys in this wallet. All of them have a stored private key.
        Parameters:
        listKeysRequest - (required)
        Returns:
        ApiResponse<APIV1POSTKeyListResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listKeysInWalletAsync

        public com.squareup.okhttp.Call listKeysInWalletAsync​(ListKeysRequest listKeysRequest,
                                                              ApiCallback<APIV1POSTKeyListResponse> callback)
                                                       throws ApiException
        List keys in wallet (asynchronously) Lists all of the public keys in this wallet. All of them have a stored private key.
        Parameters:
        listKeysRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • listMultisig

        public APIV1POSTMultisigListResponse listMultisig​(ListMultisigRequest listMultisigRequest)
                                                   throws ApiException
        List multisig accounts Lists all of the multisig accounts whose preimages this wallet stores
        Parameters:
        listMultisigRequest - (required)
        Returns:
        APIV1POSTMultisigListResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listMultisigWithHttpInfo

        public ApiResponse<APIV1POSTMultisigListResponse> listMultisigWithHttpInfo​(ListMultisigRequest listMultisigRequest)
                                                                            throws ApiException
        List multisig accounts Lists all of the multisig accounts whose preimages this wallet stores
        Parameters:
        listMultisigRequest - (required)
        Returns:
        ApiResponse<APIV1POSTMultisigListResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listMultisigAsync

        public com.squareup.okhttp.Call listMultisigAsync​(ListMultisigRequest listMultisigRequest,
                                                          ApiCallback<APIV1POSTMultisigListResponse> callback)
                                                   throws ApiException
        List multisig accounts (asynchronously) Lists all of the multisig accounts whose preimages this wallet stores
        Parameters:
        listMultisigRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • listWallets

        public APIV1GETWalletsResponse listWallets()
                                            throws ApiException
        List wallets Lists all of the wallets that kmd is aware of.
        Returns:
        APIV1GETWalletsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listWalletsWithHttpInfo

        public ApiResponse<APIV1GETWalletsResponse> listWalletsWithHttpInfo()
                                                                     throws ApiException
        List wallets Lists all of the wallets that kmd is aware of.
        Returns:
        ApiResponse<APIV1GETWalletsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • listWalletsAsync

        public com.squareup.okhttp.Call listWalletsAsync​(ApiCallback<APIV1GETWalletsResponse> callback)
                                                  throws ApiException
        List wallets (asynchronously) Lists all of the wallets that kmd is aware of.
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • releaseWalletHandleToken

        public APIV1POSTWalletReleaseResponse releaseWalletHandleToken​(ReleaseWalletHandleTokenRequest releaseWalletHandleTokenRequest)
                                                                throws ApiException
        Release a wallet handle token Invalidate the passed wallet handle token, making it invalid for use in subsequent requests.
        Parameters:
        releaseWalletHandleTokenRequest - (required)
        Returns:
        APIV1POSTWalletReleaseResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • releaseWalletHandleTokenWithHttpInfo

        public ApiResponse<APIV1POSTWalletReleaseResponse> releaseWalletHandleTokenWithHttpInfo​(ReleaseWalletHandleTokenRequest releaseWalletHandleTokenRequest)
                                                                                         throws ApiException
        Release a wallet handle token Invalidate the passed wallet handle token, making it invalid for use in subsequent requests.
        Parameters:
        releaseWalletHandleTokenRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletReleaseResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • releaseWalletHandleTokenAsync

        public com.squareup.okhttp.Call releaseWalletHandleTokenAsync​(ReleaseWalletHandleTokenRequest releaseWalletHandleTokenRequest,
                                                                      ApiCallback<APIV1POSTWalletReleaseResponse> callback)
                                                               throws ApiException
        Release a wallet handle token (asynchronously) Invalidate the passed wallet handle token, making it invalid for use in subsequent requests.
        Parameters:
        releaseWalletHandleTokenRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • renameWallet

        public APIV1POSTWalletRenameResponse renameWallet​(RenameWalletRequest renameWalletRequest)
                                                   throws ApiException
        Rename a wallet Rename the underlying wallet to something else
        Parameters:
        renameWalletRequest - (required)
        Returns:
        APIV1POSTWalletRenameResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • renameWalletWithHttpInfo

        public ApiResponse<APIV1POSTWalletRenameResponse> renameWalletWithHttpInfo​(RenameWalletRequest renameWalletRequest)
                                                                            throws ApiException
        Rename a wallet Rename the underlying wallet to something else
        Parameters:
        renameWalletRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletRenameResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • renameWalletAsync

        public com.squareup.okhttp.Call renameWalletAsync​(RenameWalletRequest renameWalletRequest,
                                                          ApiCallback<APIV1POSTWalletRenameResponse> callback)
                                                   throws ApiException
        Rename a wallet (asynchronously) Rename the underlying wallet to something else
        Parameters:
        renameWalletRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • renewWalletHandleToken

        public APIV1POSTWalletRenewResponse renewWalletHandleToken​(RenewWalletHandleTokenRequest renewWalletHandleTokenRequest)
                                                            throws ApiException
        Renew a wallet handle token Renew a wallet handle token, increasing its expiration duration to its initial value
        Parameters:
        renewWalletHandleTokenRequest - (required)
        Returns:
        APIV1POSTWalletRenewResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • renewWalletHandleTokenWithHttpInfo

        public ApiResponse<APIV1POSTWalletRenewResponse> renewWalletHandleTokenWithHttpInfo​(RenewWalletHandleTokenRequest renewWalletHandleTokenRequest)
                                                                                     throws ApiException
        Renew a wallet handle token Renew a wallet handle token, increasing its expiration duration to its initial value
        Parameters:
        renewWalletHandleTokenRequest - (required)
        Returns:
        ApiResponse<APIV1POSTWalletRenewResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • renewWalletHandleTokenAsync

        public com.squareup.okhttp.Call renewWalletHandleTokenAsync​(RenewWalletHandleTokenRequest renewWalletHandleTokenRequest,
                                                                    ApiCallback<APIV1POSTWalletRenewResponse> callback)
                                                             throws ApiException
        Renew a wallet handle token (asynchronously) Renew a wallet handle token, increasing its expiration duration to its initial value
        Parameters:
        renewWalletHandleTokenRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • signMultisigTransaction

        public APIV1POSTMultisigTransactionSignResponse signMultisigTransaction​(SignMultisigRequest signMultisigTransactionRequest)
                                                                         throws ApiException
        Sign a multisig transaction Start a multisig signature, or add a signature to a partially completed multisig signature object.
        Parameters:
        signMultisigTransactionRequest - (required)
        Returns:
        APIV1POSTMultisigTransactionSignResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signMultisigTransactionWithHttpInfo

        public ApiResponse<APIV1POSTMultisigTransactionSignResponse> signMultisigTransactionWithHttpInfo​(SignMultisigRequest signMultisigTransactionRequest)
                                                                                                  throws ApiException
        Sign a multisig transaction Start a multisig signature, or add a signature to a partially completed multisig signature object.
        Parameters:
        signMultisigTransactionRequest - (required)
        Returns:
        ApiResponse<APIV1POSTMultisigTransactionSignResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signMultisigTransactionAsync

        public com.squareup.okhttp.Call signMultisigTransactionAsync​(SignMultisigRequest signMultisigTransactionRequest,
                                                                     ApiCallback<APIV1POSTMultisigTransactionSignResponse> callback)
                                                              throws ApiException
        Sign a multisig transaction (asynchronously) Start a multisig signature, or add a signature to a partially completed multisig signature object.
        Parameters:
        signMultisigTransactionRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • signTransaction

        public APIV1POSTTransactionSignResponse signTransaction​(SignTransactionRequest signTransactionRequest)
                                                         throws ApiException
        Sign a transaction Signs the passed transaction with a key from the wallet, determined by the sender encoded in the transaction.
        Parameters:
        signTransactionRequest - (required)
        Returns:
        APIV1POSTTransactionSignResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signTransactionWithHttpInfo

        public ApiResponse<APIV1POSTTransactionSignResponse> signTransactionWithHttpInfo​(SignTransactionRequest signTransactionRequest)
                                                                                  throws ApiException
        Sign a transaction Signs the passed transaction with a key from the wallet, determined by the sender encoded in the transaction.
        Parameters:
        signTransactionRequest - (required)
        Returns:
        ApiResponse<APIV1POSTTransactionSignResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signTransactionAsync

        public com.squareup.okhttp.Call signTransactionAsync​(SignTransactionRequest signTransactionRequest,
                                                             ApiCallback<APIV1POSTTransactionSignResponse> callback)
                                                      throws ApiException
        Sign a transaction (asynchronously) Signs the passed transaction with a key from the wallet, determined by the sender encoded in the transaction.
        Parameters:
        signTransactionRequest - (required)
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • swaggerHandler

        public String swaggerHandler()
                              throws ApiException
        Gets the current swagger spec. Returns the entire swagger spec in json.
        Returns:
        String
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • swaggerHandlerWithHttpInfo

        public ApiResponse<String> swaggerHandlerWithHttpInfo()
                                                       throws ApiException
        Gets the current swagger spec. Returns the entire swagger spec in json.
        Returns:
        ApiResponse<String>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • swaggerHandlerAsync

        public com.squareup.okhttp.Call swaggerHandlerAsync​(ApiCallback<String> callback)
                                                     throws ApiException
        Gets the current swagger spec. (asynchronously) Returns the entire swagger spec in json.
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object