Class DefiControllerApi


  • public class DefiControllerApi
    extends Object
    • Constructor Detail

      • DefiControllerApi

        public DefiControllerApi()
      • DefiControllerApi

        public DefiControllerApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getDefiInfoUsingGETCall

        public com.squareup.okhttp.Call getDefiInfoUsingGETCall​(String contractAddresses,
                                                                String chainId,
                                                                String authorization,
                                                                ProgressResponseBody.ProgressListener progressListener,
                                                                ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                         throws ApiException
        Build call for getDefiInfoUsingGET
        Parameters:
        contractAddresses - Defi protocol address (required)
        chainId - Chain id, (eth: 1, bsc: 56) (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getDefiInfoUsingGET

        public GetDefiInfoResponse getDefiInfoUsingGET​(String contractAddresses,
                                                       String chainId,
                                                       String authorization)
                                                throws ApiException
        Rug-pull Detection API Beta
        Parameters:
        contractAddresses - Defi protocol address (required)
        chainId - Chain id, (eth: 1, bsc: 56) (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        GetDefiInfoResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getDefiInfoUsingGETWithHttpInfo

        public ApiResponse<GetDefiInfoResponse> getDefiInfoUsingGETWithHttpInfo​(String contractAddresses,
                                                                                String chainId,
                                                                                String authorization)
                                                                         throws ApiException
        Rug-pull Detection API Beta
        Parameters:
        contractAddresses - Defi protocol address (required)
        chainId - Chain id, (eth: 1, bsc: 56) (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        ApiResponse<GetDefiInfoResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getDefiInfoUsingGETAsync

        public com.squareup.okhttp.Call getDefiInfoUsingGETAsync​(String contractAddresses,
                                                                 String chainId,
                                                                 String authorization,
                                                                 ApiCallback<GetDefiInfoResponse> callback)
                                                          throws ApiException
        Rug-pull Detection API Beta (asynchronously)
        Parameters:
        contractAddresses - Defi protocol address (required)
        chainId - Chain id, (eth: 1, bsc: 56) (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (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