Class ApproveControllerV1Api


  • public class ApproveControllerV1Api
    extends Object
    • Constructor Detail

      • ApproveControllerV1Api

        public ApproveControllerV1Api()
      • ApproveControllerV1Api

        public ApproveControllerV1Api​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • addressContractUsingGET1Call

        public com.squareup.okhttp.Call addressContractUsingGET1Call​(String address,
                                                                     String authorization,
                                                                     String chainId,
                                                                     ProgressResponseBody.ProgressListener progressListener,
                                                                     ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                              throws ApiException
        Build call for addressContractUsingGET1
        Parameters:
        address - address (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        chainId - The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; \"solana\" means Solana; Solana and Tron address are case-sensitive; (optional)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • addressContractUsingGET1

        public ResponseWrapperAddressContract addressContractUsingGET1​(String address,
                                                                       String authorization,
                                                                       String chainId)
                                                                throws ApiException
        Check if the address is malicious
        Parameters:
        address - address (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        chainId - The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; \"solana\" means Solana; Solana and Tron address are case-sensitive; (optional)
        Returns:
        ResponseWrapperAddressContract
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addressContractUsingGET1WithHttpInfo

        public ApiResponse<ResponseWrapperAddressContract> addressContractUsingGET1WithHttpInfo​(String address,
                                                                                                String authorization,
                                                                                                String chainId)
                                                                                         throws ApiException
        Check if the address is malicious
        Parameters:
        address - address (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        chainId - The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; \"solana\" means Solana; Solana and Tron address are case-sensitive; (optional)
        Returns:
        ApiResponse<ResponseWrapperAddressContract>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addressContractUsingGET1Async

        public com.squareup.okhttp.Call addressContractUsingGET1Async​(String address,
                                                                      String authorization,
                                                                      String chainId,
                                                                      ApiCallback<ResponseWrapperAddressContract> callback)
                                                               throws ApiException
        Check if the address is malicious (asynchronously)
        Parameters:
        address - address (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        chainId - The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; \"solana\" means Solana; Solana and Tron address are case-sensitive; (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
      • approvalContractUsingGETCall

        public com.squareup.okhttp.Call approvalContractUsingGETCall​(String chainId,
                                                                     String contractAddresses,
                                                                     String authorization,
                                                                     ProgressResponseBody.ProgressListener progressListener,
                                                                     ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                              throws ApiException
        Build call for approvalContractUsingGET
        Parameters:
        chainId - Chain id, (ETH: 1, BSC: 56, OKC: 66, Heco: 128, Polygon: 137, Fantom:250, Arbitrum: 42161, Avalanche: 43114) (required)
        contractAddresses - Contract needs to be detected (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
      • approvalContractUsingGET

        public ResponseWrapperContractApproveResponse approvalContractUsingGET​(String chainId,
                                                                               String contractAddresses,
                                                                               String authorization)
                                                                        throws ApiException
        Check if the approval is secure
        Parameters:
        chainId - Chain id, (ETH: 1, BSC: 56, OKC: 66, Heco: 128, Polygon: 137, Fantom:250, Arbitrum: 42161, Avalanche: 43114) (required)
        contractAddresses - Contract needs to be detected (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        ResponseWrapperContractApproveResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • approvalContractUsingGETWithHttpInfo

        public ApiResponse<ResponseWrapperContractApproveResponse> approvalContractUsingGETWithHttpInfo​(String chainId,
                                                                                                        String contractAddresses,
                                                                                                        String authorization)
                                                                                                 throws ApiException
        Check if the approval is secure
        Parameters:
        chainId - Chain id, (ETH: 1, BSC: 56, OKC: 66, Heco: 128, Polygon: 137, Fantom:250, Arbitrum: 42161, Avalanche: 43114) (required)
        contractAddresses - Contract needs to be detected (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        ApiResponse<ResponseWrapperContractApproveResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • approvalContractUsingGETAsync

        public com.squareup.okhttp.Call approvalContractUsingGETAsync​(String chainId,
                                                                      String contractAddresses,
                                                                      String authorization,
                                                                      ApiCallback<ResponseWrapperContractApproveResponse> callback)
                                                               throws ApiException
        Check if the approval is secure (asynchronously)
        Parameters:
        chainId - Chain id, (ETH: 1, BSC: 56, OKC: 66, Heco: 128, Polygon: 137, Fantom:250, Arbitrum: 42161, Avalanche: 43114) (required)
        contractAddresses - Contract needs to be detected (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