Class CryptoFundingApi

java.lang.Object
markets.alpaca.client.openapi.broker.api.CryptoFundingApi

public class CryptoFundingApi extends Object
Generated client for CryptoFundingApi operations.

This class is generated from the configured OpenAPI spec. Operation method Javadocs include OAS summaries, descriptions, parameters, return types, response details, and external documentation links when present in the spec.

Operations

  • createCryptoTransferForAccount: Request a New Withdrawal
  • createWhitelistedAddress: Request a new whitelisted address
  • deleteWhitelistedAddress: Delete a whitelisted address
  • getCryptoFundingTransfer: Retrieve a Crypto Funding Transfer
  • getCryptoTransferEstimate: Returns the estimated gas fee for a proposed transaction.
  • listCryptoFundingTransfers: Retrieve Crypto Funding Transfers
  • listCryptoFundingWallets: Retrieve Crypto Funding Wallets
  • listWhitelistedAddress: An array of whitelisted addresses
  • searchVASPs: Search for VASPs
  • updateWhitelistedAddressTravelRuleInfo: Update travel rule information for a whitelisted wallet
  • Constructor Details

    • CryptoFundingApi

      public CryptoFundingApi()
    • CryptoFundingApi

      public CryptoFundingApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • createCryptoTransferForAccountCall

      public okhttp3.Call createCryptoTransferForAccountCall(@Nonnull UUID accountId, @Nonnull CreateCryptoTransferRequest createCryptoTransferRequest, ApiCallback _callback) throws ApiException
      Build call for createCryptoTransferForAccount
      Parameters:
      accountId - Account identifier. (required)
      createCryptoTransferRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a transfer. -
      400 The request or travel rule information is invalid. -
    • createCryptoTransferForAccount

      public CryptoTransfer createCryptoTransferForAccount(@Nonnull UUID accountId, @Nonnull CreateCryptoTransferRequest createCryptoTransferRequest) throws ApiException
      Request a New Withdrawal Creates a withdrawal request. Note that outgoing withdrawals must be sent to a whitelisted address and you must whitelist addresses at least 24 hours in advance. If you attempt to withdraw funds to a non-whitelisted address then the transfer will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      createCryptoTransferRequest - (required)
      Returns:
      CryptoTransfer
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a transfer. -
      400 The request or travel rule information is invalid. -
    • createCryptoTransferForAccountWithHttpInfo

      public ApiResponse<CryptoTransfer> createCryptoTransferForAccountWithHttpInfo(@Nonnull UUID accountId, @Nonnull CreateCryptoTransferRequest createCryptoTransferRequest) throws ApiException
      Request a New Withdrawal Creates a withdrawal request. Note that outgoing withdrawals must be sent to a whitelisted address and you must whitelist addresses at least 24 hours in advance. If you attempt to withdraw funds to a non-whitelisted address then the transfer will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      createCryptoTransferRequest - (required)
      Returns:
      ApiResponse<CryptoTransfer>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a transfer. -
      400 The request or travel rule information is invalid. -
    • createCryptoTransferForAccountAsync

      public okhttp3.Call createCryptoTransferForAccountAsync(@Nonnull UUID accountId, @Nonnull CreateCryptoTransferRequest createCryptoTransferRequest, ApiCallback<CryptoTransfer> _callback) throws ApiException
      Request a New Withdrawal (asynchronously) Creates a withdrawal request. Note that outgoing withdrawals must be sent to a whitelisted address and you must whitelist addresses at least 24 hours in advance. If you attempt to withdraw funds to a non-whitelisted address then the transfer will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      createCryptoTransferRequest - (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a transfer. -
      400 The request or travel rule information is invalid. -
    • createWhitelistedAddressCall

      public okhttp3.Call createWhitelistedAddressCall(@Nonnull UUID accountId, @Nonnull CreateWhitelistedAddressRequest createWhitelistedAddressRequest, ApiCallback _callback) throws ApiException
      Build call for createWhitelistedAddress
      Parameters:
      accountId - Account identifier. (required)
      createWhitelistedAddressRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a whitelisted address -
      400 The request or travel rule information is invalid. -
    • createWhitelistedAddress

      public WhitelistedAddress createWhitelistedAddress(@Nonnull UUID accountId, @Nonnull CreateWhitelistedAddressRequest createWhitelistedAddressRequest) throws ApiException
      Request a new whitelisted address Submits a new whitelisted withdrawal address for the specified account. The chain is derived from the supplied asset symbol and address, and the same address cannot be whitelisted twice on the same chain. Where travel rule reporting applies to the account, supply travel rule information for the destination wallet. Use the `Search VASPs` endpoint to find the VASP DID for the destination exchange. For a self-hosted wallet, set `beneficiary_is_self_hosted` to true. If the exchange is not in the directory, provide its information in `beneficiary_manual_entry`. Note that whitelisted addresses must wait at least 24 hours before they can be used as a withdrawal destination.
      Parameters:
      accountId - Account identifier. (required)
      createWhitelistedAddressRequest - (required)
      Returns:
      WhitelistedAddress
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a whitelisted address -
      400 The request or travel rule information is invalid. -
    • createWhitelistedAddressWithHttpInfo

      public ApiResponse<WhitelistedAddress> createWhitelistedAddressWithHttpInfo(@Nonnull UUID accountId, @Nonnull CreateWhitelistedAddressRequest createWhitelistedAddressRequest) throws ApiException
      Request a new whitelisted address Submits a new whitelisted withdrawal address for the specified account. The chain is derived from the supplied asset symbol and address, and the same address cannot be whitelisted twice on the same chain. Where travel rule reporting applies to the account, supply travel rule information for the destination wallet. Use the `Search VASPs` endpoint to find the VASP DID for the destination exchange. For a self-hosted wallet, set `beneficiary_is_self_hosted` to true. If the exchange is not in the directory, provide its information in `beneficiary_manual_entry`. Note that whitelisted addresses must wait at least 24 hours before they can be used as a withdrawal destination.
      Parameters:
      accountId - Account identifier. (required)
      createWhitelistedAddressRequest - (required)
      Returns:
      ApiResponse<WhitelistedAddress>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a whitelisted address -
      400 The request or travel rule information is invalid. -
    • createWhitelistedAddressAsync

      public okhttp3.Call createWhitelistedAddressAsync(@Nonnull UUID accountId, @Nonnull CreateWhitelistedAddressRequest createWhitelistedAddressRequest, ApiCallback<WhitelistedAddress> _callback) throws ApiException
      Request a new whitelisted address (asynchronously) Submits a new whitelisted withdrawal address for the specified account. The chain is derived from the supplied asset symbol and address, and the same address cannot be whitelisted twice on the same chain. Where travel rule reporting applies to the account, supply travel rule information for the destination wallet. Use the `Search VASPs` endpoint to find the VASP DID for the destination exchange. For a self-hosted wallet, set `beneficiary_is_self_hosted` to true. If the exchange is not in the directory, provide its information in `beneficiary_manual_entry`. Note that whitelisted addresses must wait at least 24 hours before they can be used as a withdrawal destination.
      Parameters:
      accountId - Account identifier. (required)
      createWhitelistedAddressRequest - (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully requested a whitelisted address -
      400 The request or travel rule information is invalid. -
    • deleteWhitelistedAddressCall

      public okhttp3.Call deleteWhitelistedAddressCall(@Nonnull UUID accountId, @Nonnull String whitelistedAddressId, ApiCallback _callback) throws ApiException
      Build call for deleteWhitelistedAddress
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address to delete (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully deleted a whitelisted address -
    • deleteWhitelistedAddress

      public void deleteWhitelistedAddress(@Nonnull UUID accountId, @Nonnull String whitelistedAddressId) throws ApiException
      Delete a whitelisted address Deletes a whitelisted withdrawal address from the specified account by ID. Subsequent withdrawals targeting the deleted address will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully deleted a whitelisted address -
    • deleteWhitelistedAddressWithHttpInfo

      public ApiResponse<Void> deleteWhitelistedAddressWithHttpInfo(@Nonnull UUID accountId, @Nonnull String whitelistedAddressId) throws ApiException
      Delete a whitelisted address Deletes a whitelisted withdrawal address from the specified account by ID. Subsequent withdrawals targeting the deleted address will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully deleted a whitelisted address -
    • deleteWhitelistedAddressAsync

      public okhttp3.Call deleteWhitelistedAddressAsync(@Nonnull UUID accountId, @Nonnull String whitelistedAddressId, ApiCallback<Void> _callback) throws ApiException
      Delete a whitelisted address (asynchronously) Deletes a whitelisted withdrawal address from the specified account by ID. Subsequent withdrawals targeting the deleted address will be rejected.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address to delete (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully deleted a whitelisted address -
    • getCryptoFundingTransferCall

      public okhttp3.Call getCryptoFundingTransferCall(@Nonnull UUID accountId, @Nonnull String transferId, ApiCallback _callback) throws ApiException
      Build call for getCryptoFundingTransfer
      Parameters:
      accountId - Account identifier. (required)
      transferId - The crypto transfer to retrieve (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single crypto transfer object -
    • getCryptoFundingTransfer

      public CryptoTransfer getCryptoFundingTransfer(@Nonnull UUID accountId, @Nonnull String transferId) throws ApiException
      Retrieve a Crypto Funding Transfer Returns a specific wallet transfer by passing into the query the transfer_id.
      Parameters:
      accountId - Account identifier. (required)
      transferId - The crypto transfer to retrieve (required)
      Returns:
      CryptoTransfer
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single crypto transfer object -
    • getCryptoFundingTransferWithHttpInfo

      public ApiResponse<CryptoTransfer> getCryptoFundingTransferWithHttpInfo(@Nonnull UUID accountId, @Nonnull String transferId) throws ApiException
      Retrieve a Crypto Funding Transfer Returns a specific wallet transfer by passing into the query the transfer_id.
      Parameters:
      accountId - Account identifier. (required)
      transferId - The crypto transfer to retrieve (required)
      Returns:
      ApiResponse<CryptoTransfer>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single crypto transfer object -
    • getCryptoFundingTransferAsync

      public okhttp3.Call getCryptoFundingTransferAsync(@Nonnull UUID accountId, @Nonnull String transferId, ApiCallback<CryptoTransfer> _callback) throws ApiException
      Retrieve a Crypto Funding Transfer (asynchronously) Returns a specific wallet transfer by passing into the query the transfer_id.
      Parameters:
      accountId - Account identifier. (required)
      transferId - The crypto transfer to retrieve (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single crypto transfer object -
    • getCryptoTransferEstimateCall

      public okhttp3.Call getCryptoTransferEstimateCall(@Nullable String asset, @Nullable String fromAddress, @Nullable String toAddress, @Nullable String amount, ApiCallback _callback) throws ApiException
      Build call for getCryptoTransferEstimate
      Parameters:
      asset - The asset for the proposed transaction (optional)
      fromAddress - The originating address of the proposed transaction (optional)
      toAddress - The destination address of the proposed transaction (optional)
      amount - The amount, denoted in the specified asset, of the proposed transaction (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 OK -
      0 error -
    • getCryptoTransferEstimate

      public GetCryptoTransferEstimate200Response getCryptoTransferEstimate(@Nullable String asset, @Nullable String fromAddress, @Nullable String toAddress, @Nullable String amount) throws ApiException
      Returns the estimated gas fee for a proposed transaction. Returns the estimated on-chain network (gas) fee for a proposed crypto withdrawal at current chain conditions. Pass the `asset`, `from_address`, `to_address`, and `amount` you intend to send; the response reports the network fee that would be charged for the corresponding transaction.
      Parameters:
      asset - The asset for the proposed transaction (optional)
      fromAddress - The originating address of the proposed transaction (optional)
      toAddress - The destination address of the proposed transaction (optional)
      amount - The amount, denoted in the specified asset, of the proposed transaction (optional)
      Returns:
      GetCryptoTransferEstimate200Response
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 OK -
      0 error -
    • getCryptoTransferEstimateWithHttpInfo

      public ApiResponse<GetCryptoTransferEstimate200Response> getCryptoTransferEstimateWithHttpInfo(@Nullable String asset, @Nullable String fromAddress, @Nullable String toAddress, @Nullable String amount) throws ApiException
      Returns the estimated gas fee for a proposed transaction. Returns the estimated on-chain network (gas) fee for a proposed crypto withdrawal at current chain conditions. Pass the `asset`, `from_address`, `to_address`, and `amount` you intend to send; the response reports the network fee that would be charged for the corresponding transaction.
      Parameters:
      asset - The asset for the proposed transaction (optional)
      fromAddress - The originating address of the proposed transaction (optional)
      toAddress - The destination address of the proposed transaction (optional)
      amount - The amount, denoted in the specified asset, of the proposed transaction (optional)
      Returns:
      ApiResponse<GetCryptoTransferEstimate200Response>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 OK -
      0 error -
    • getCryptoTransferEstimateAsync

      public okhttp3.Call getCryptoTransferEstimateAsync(@Nullable String asset, @Nullable String fromAddress, @Nullable String toAddress, @Nullable String amount, ApiCallback<GetCryptoTransferEstimate200Response> _callback) throws ApiException
      Returns the estimated gas fee for a proposed transaction. (asynchronously) Returns the estimated on-chain network (gas) fee for a proposed crypto withdrawal at current chain conditions. Pass the `asset`, `from_address`, `to_address`, and `amount` you intend to send; the response reports the network fee that would be charged for the corresponding transaction.
      Parameters:
      asset - The asset for the proposed transaction (optional)
      fromAddress - The originating address of the proposed transaction (optional)
      toAddress - The destination address of the proposed transaction (optional)
      amount - The amount, denoted in the specified asset, of the proposed transaction (optional)
      _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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 OK -
      0 error -
    • listCryptoFundingTransfersCall

      public okhttp3.Call listCryptoFundingTransfersCall(@Nonnull UUID accountId, ApiCallback _callback) throws ApiException
      Build call for listCryptoFundingTransfers
      Parameters:
      accountId - Account identifier. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of transfer objects -
      0 error -
    • listCryptoFundingTransfers

      public CryptoTransfer listCryptoFundingTransfers(@Nonnull UUID accountId) throws ApiException
      Retrieve Crypto Funding Transfers Returns an array of all transfers associated with the given account across all wallets.
      Parameters:
      accountId - Account identifier. (required)
      Returns:
      CryptoTransfer
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of transfer objects -
      0 error -
    • listCryptoFundingTransfersWithHttpInfo

      public ApiResponse<CryptoTransfer> listCryptoFundingTransfersWithHttpInfo(@Nonnull UUID accountId) throws ApiException
      Retrieve Crypto Funding Transfers Returns an array of all transfers associated with the given account across all wallets.
      Parameters:
      accountId - Account identifier. (required)
      Returns:
      ApiResponse<CryptoTransfer>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of transfer objects -
      0 error -
    • listCryptoFundingTransfersAsync

      public okhttp3.Call listCryptoFundingTransfersAsync(@Nonnull UUID accountId, ApiCallback<CryptoTransfer> _callback) throws ApiException
      Retrieve Crypto Funding Transfers (asynchronously) Returns an array of all transfers associated with the given account across all wallets.
      Parameters:
      accountId - Account identifier. (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of transfer objects -
      0 error -
    • listCryptoFundingWalletsCall

      public okhttp3.Call listCryptoFundingWalletsCall(@Nonnull UUID accountId, @Nullable String asset, @Nullable String chain, @Nullable String network, ApiCallback _callback) throws ApiException
      Build call for listCryptoFundingWallets
      Parameters:
      accountId - Account identifier. (required)
      asset - (optional)
      chain - Optional chain identifier. Use to request wallets for a specific chain when asset is a multi-chain crypto asset. If not specified, network is considered. (optional)
      network - Deprecated. Use chain instead. Optional network identifier which is used to request wallets for a specific network when asset is a multi-chain crypto asset. When both 'chain' and 'network' are specified, 'chain' will take precedence and 'network' will be ignored. If 'chain' and 'network' are not specified, the default 'network' (ethereum) will be used. (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single wallet object if an asset is specified or an array of wallet objects if no asset is specified -
      0 error -
    • listCryptoFundingWallets

      public CryptoWallet listCryptoFundingWallets(@Nonnull UUID accountId, @Nullable String asset, @Nullable String chain, @Nullable String network) throws ApiException
      Retrieve Crypto Funding Wallets Lists wallets for the account given in the path parameter. If an asset is specified and no wallet for the account and asset pair exists one will be created. If no asset is specified only existing wallets will be listed for the account. An account may have at most one wallet per asset.
      Parameters:
      accountId - Account identifier. (required)
      asset - (optional)
      chain - Optional chain identifier. Use to request wallets for a specific chain when asset is a multi-chain crypto asset. If not specified, network is considered. (optional)
      network - Deprecated. Use chain instead. Optional network identifier which is used to request wallets for a specific network when asset is a multi-chain crypto asset. When both 'chain' and 'network' are specified, 'chain' will take precedence and 'network' will be ignored. If 'chain' and 'network' are not specified, the default 'network' (ethereum) will be used. (optional)
      Returns:
      CryptoWallet
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single wallet object if an asset is specified or an array of wallet objects if no asset is specified -
      0 error -
    • listCryptoFundingWalletsWithHttpInfo

      public ApiResponse<CryptoWallet> listCryptoFundingWalletsWithHttpInfo(@Nonnull UUID accountId, @Nullable String asset, @Nullable String chain, @Nullable String network) throws ApiException
      Retrieve Crypto Funding Wallets Lists wallets for the account given in the path parameter. If an asset is specified and no wallet for the account and asset pair exists one will be created. If no asset is specified only existing wallets will be listed for the account. An account may have at most one wallet per asset.
      Parameters:
      accountId - Account identifier. (required)
      asset - (optional)
      chain - Optional chain identifier. Use to request wallets for a specific chain when asset is a multi-chain crypto asset. If not specified, network is considered. (optional)
      network - Deprecated. Use chain instead. Optional network identifier which is used to request wallets for a specific network when asset is a multi-chain crypto asset. When both 'chain' and 'network' are specified, 'chain' will take precedence and 'network' will be ignored. If 'chain' and 'network' are not specified, the default 'network' (ethereum) will be used. (optional)
      Returns:
      ApiResponse<CryptoWallet>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single wallet object if an asset is specified or an array of wallet objects if no asset is specified -
      0 error -
    • listCryptoFundingWalletsAsync

      public okhttp3.Call listCryptoFundingWalletsAsync(@Nonnull UUID accountId, @Nullable String asset, @Nullable String chain, @Nullable String network, ApiCallback<CryptoWallet> _callback) throws ApiException
      Retrieve Crypto Funding Wallets (asynchronously) Lists wallets for the account given in the path parameter. If an asset is specified and no wallet for the account and asset pair exists one will be created. If no asset is specified only existing wallets will be listed for the account. An account may have at most one wallet per asset.
      Parameters:
      accountId - Account identifier. (required)
      asset - (optional)
      chain - Optional chain identifier. Use to request wallets for a specific chain when asset is a multi-chain crypto asset. If not specified, network is considered. (optional)
      network - Deprecated. Use chain instead. Optional network identifier which is used to request wallets for a specific network when asset is a multi-chain crypto asset. When both 'chain' and 'network' are specified, 'chain' will take precedence and 'network' will be ignored. If 'chain' and 'network' are not specified, the default 'network' (ethereum) will be used. (optional)
      _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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 A single wallet object if an asset is specified or an array of wallet objects if no asset is specified -
      0 error -
    • listWhitelistedAddressCall

      public okhttp3.Call listWhitelistedAddressCall(@Nonnull UUID accountId, ApiCallback _callback) throws ApiException
      Build call for listWhitelistedAddress
      Parameters:
      accountId - Account identifier. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of whitelisted objects -
      0 error -
    • listWhitelistedAddress

      public WhitelistedAddress listWhitelistedAddress(@Nonnull UUID accountId) throws ApiException
      An array of whitelisted addresses Returns the list of whitelisted withdrawal addresses for the specified account.
      Parameters:
      accountId - Account identifier. (required)
      Returns:
      WhitelistedAddress
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of whitelisted objects -
      0 error -
    • listWhitelistedAddressWithHttpInfo

      public ApiResponse<WhitelistedAddress> listWhitelistedAddressWithHttpInfo(@Nonnull UUID accountId) throws ApiException
      An array of whitelisted addresses Returns the list of whitelisted withdrawal addresses for the specified account.
      Parameters:
      accountId - Account identifier. (required)
      Returns:
      ApiResponse<WhitelistedAddress>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of whitelisted objects -
      0 error -
    • listWhitelistedAddressAsync

      public okhttp3.Call listWhitelistedAddressAsync(@Nonnull UUID accountId, ApiCallback<WhitelistedAddress> _callback) throws ApiException
      An array of whitelisted addresses (asynchronously) Returns the list of whitelisted withdrawal addresses for the specified account.
      Parameters:
      accountId - Account identifier. (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 An array of whitelisted objects -
      0 error -
    • searchVASPsCall

      public okhttp3.Call searchVASPsCall(@Nullable String q, @Nullable String emailDomain, @Nullable String chainalysisName, @Nullable String fields, @Nullable Integer page, @Nullable Integer perPage, @Nullable String order, @Nullable Boolean includeSubsidiaryVASPs, ApiCallback _callback) throws ApiException
      Build call for searchVASPs
      Parameters:
      q - General search query string. (optional)
      emailDomain - Filter by VASP email domain. (optional)
      chainalysisName - Filter by Chainalysis-specific VASP name. (optional)
      fields - Specify which fields to return (comma-separated). (optional)
      page - The zero-based page number to retrieve. (optional, default to 0)
      perPage - Number of items per page. (optional, default to 10)
      order - Field-based sort expression, such as name:ASC. Multiple expressions may be comma-separated. Defaults to name:ASC. (optional, default to name:ASC)
      includeSubsidiaryVASPs - Whether to include child/subsidiary entities. (optional, default to false)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successful request. Returns an array of VASPs or an empty list if no matches found. -
    • searchVASPs

      public SearchVASPsResponse searchVASPs(@Nullable String q, @Nullable String emailDomain, @Nullable String chainalysisName, @Nullable String fields, @Nullable Integer page, @Nullable Integer perPage, @Nullable String order, @Nullable Boolean includeSubsidiaryVASPs) throws ApiException
      Search for VASPs Search for Virtual Asset Service Providers, or crypto exchanges, on Notabene's network. This endpoint can be used to find the VASP DID for your beneficiary's exchange when submitting travel rule information for your whitelisted wallets. Use the `q` parameter to search for exchanges.
      Parameters:
      q - General search query string. (optional)
      emailDomain - Filter by VASP email domain. (optional)
      chainalysisName - Filter by Chainalysis-specific VASP name. (optional)
      fields - Specify which fields to return (comma-separated). (optional)
      page - The zero-based page number to retrieve. (optional, default to 0)
      perPage - Number of items per page. (optional, default to 10)
      order - Field-based sort expression, such as name:ASC. Multiple expressions may be comma-separated. Defaults to name:ASC. (optional, default to name:ASC)
      includeSubsidiaryVASPs - Whether to include child/subsidiary entities. (optional, default to false)
      Returns:
      SearchVASPsResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successful request. Returns an array of VASPs or an empty list if no matches found. -
    • searchVASPsWithHttpInfo

      public ApiResponse<SearchVASPsResponse> searchVASPsWithHttpInfo(@Nullable String q, @Nullable String emailDomain, @Nullable String chainalysisName, @Nullable String fields, @Nullable Integer page, @Nullable Integer perPage, @Nullable String order, @Nullable Boolean includeSubsidiaryVASPs) throws ApiException
      Search for VASPs Search for Virtual Asset Service Providers, or crypto exchanges, on Notabene's network. This endpoint can be used to find the VASP DID for your beneficiary's exchange when submitting travel rule information for your whitelisted wallets. Use the `q` parameter to search for exchanges.
      Parameters:
      q - General search query string. (optional)
      emailDomain - Filter by VASP email domain. (optional)
      chainalysisName - Filter by Chainalysis-specific VASP name. (optional)
      fields - Specify which fields to return (comma-separated). (optional)
      page - The zero-based page number to retrieve. (optional, default to 0)
      perPage - Number of items per page. (optional, default to 10)
      order - Field-based sort expression, such as name:ASC. Multiple expressions may be comma-separated. Defaults to name:ASC. (optional, default to name:ASC)
      includeSubsidiaryVASPs - Whether to include child/subsidiary entities. (optional, default to false)
      Returns:
      ApiResponse<SearchVASPsResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successful request. Returns an array of VASPs or an empty list if no matches found. -
    • searchVASPsAsync

      public okhttp3.Call searchVASPsAsync(@Nullable String q, @Nullable String emailDomain, @Nullable String chainalysisName, @Nullable String fields, @Nullable Integer page, @Nullable Integer perPage, @Nullable String order, @Nullable Boolean includeSubsidiaryVASPs, ApiCallback<SearchVASPsResponse> _callback) throws ApiException
      Search for VASPs (asynchronously) Search for Virtual Asset Service Providers, or crypto exchanges, on Notabene's network. This endpoint can be used to find the VASP DID for your beneficiary's exchange when submitting travel rule information for your whitelisted wallets. Use the `q` parameter to search for exchanges.
      Parameters:
      q - General search query string. (optional)
      emailDomain - Filter by VASP email domain. (optional)
      chainalysisName - Filter by Chainalysis-specific VASP name. (optional)
      fields - Specify which fields to return (comma-separated). (optional)
      page - The zero-based page number to retrieve. (optional, default to 0)
      perPage - Number of items per page. (optional, default to 10)
      order - Field-based sort expression, such as name:ASC. Multiple expressions may be comma-separated. Defaults to name:ASC. (optional, default to name:ASC)
      includeSubsidiaryVASPs - Whether to include child/subsidiary entities. (optional, default to false)
      _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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successful request. Returns an array of VASPs or an empty list if no matches found. -
    • updateWhitelistedAddressTravelRuleInfoCall

      public okhttp3.Call updateWhitelistedAddressTravelRuleInfoCall(@Nonnull UUID accountId, @Nonnull UUID whitelistedAddressId, @Nonnull UpdateWhitelistedAddressTravelRuleInfoRequest updateWhitelistedAddressTravelRuleInfoRequest, ApiCallback _callback) throws ApiException
      Build call for updateWhitelistedAddressTravelRuleInfo
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address update travel rule information for (required)
      updateWhitelistedAddressTravelRuleInfoRequest - Travel rule information to associate with the whitelisted address. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully updated travel rule information -
      400 The request or travel rule information is invalid. -
    • updateWhitelistedAddressTravelRuleInfo

      public void updateWhitelistedAddressTravelRuleInfo(@Nonnull UUID accountId, @Nonnull UUID whitelistedAddressId, @Nonnull UpdateWhitelistedAddressTravelRuleInfoRequest updateWhitelistedAddressTravelRuleInfoRequest) throws ApiException
      Update travel rule information for a whitelisted wallet You are required to supply travel rule information for the crypto wallets you're withdrawing to. It is preferred that you use the `Search VASPs` endpoint to find the VASP DID for the exchange you are withdrawing to, otherwise, if it's a self-hosted wallet, please set `beneficiary_is_self_hosted` to true. If the exchange cannot be found in our directory, please supply the information manually using the `beneficiary_manual_entry` object.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address update travel rule information for (required)
      updateWhitelistedAddressTravelRuleInfoRequest - Travel rule information to associate with the whitelisted address. (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully updated travel rule information -
      400 The request or travel rule information is invalid. -
    • updateWhitelistedAddressTravelRuleInfoWithHttpInfo

      public ApiResponse<Void> updateWhitelistedAddressTravelRuleInfoWithHttpInfo(@Nonnull UUID accountId, @Nonnull UUID whitelistedAddressId, @Nonnull UpdateWhitelistedAddressTravelRuleInfoRequest updateWhitelistedAddressTravelRuleInfoRequest) throws ApiException
      Update travel rule information for a whitelisted wallet You are required to supply travel rule information for the crypto wallets you're withdrawing to. It is preferred that you use the `Search VASPs` endpoint to find the VASP DID for the exchange you are withdrawing to, otherwise, if it's a self-hosted wallet, please set `beneficiary_is_self_hosted` to true. If the exchange cannot be found in our directory, please supply the information manually using the `beneficiary_manual_entry` object.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address update travel rule information for (required)
      updateWhitelistedAddressTravelRuleInfoRequest - Travel rule information to associate with the whitelisted address. (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully updated travel rule information -
      400 The request or travel rule information is invalid. -
    • updateWhitelistedAddressTravelRuleInfoAsync

      public okhttp3.Call updateWhitelistedAddressTravelRuleInfoAsync(@Nonnull UUID accountId, @Nonnull UUID whitelistedAddressId, @Nonnull UpdateWhitelistedAddressTravelRuleInfoRequest updateWhitelistedAddressTravelRuleInfoRequest, ApiCallback<Void> _callback) throws ApiException
      Update travel rule information for a whitelisted wallet (asynchronously) You are required to supply travel rule information for the crypto wallets you're withdrawing to. It is preferred that you use the `Search VASPs` endpoint to find the VASP DID for the exchange you are withdrawing to, otherwise, if it's a self-hosted wallet, please set `beneficiary_is_self_hosted` to true. If the exchange cannot be found in our directory, please supply the information manually using the `beneficiary_manual_entry` object.
      Parameters:
      accountId - Account identifier. (required)
      whitelistedAddressId - The whitelisted address update travel rule information for (required)
      updateWhitelistedAddressTravelRuleInfoRequest - Travel rule information to associate with the whitelisted address. (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Successfully updated travel rule information -
      400 The request or travel rule information is invalid. -