Class TokenControllerV1Api


  • public class TokenControllerV1Api
    extends Object
    • Constructor Detail

      • TokenControllerV1Api

        public TokenControllerV1Api()
      • TokenControllerV1Api

        public TokenControllerV1Api​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getChainsListUsingGETCall

        public com.squareup.okhttp.Call getChainsListUsingGETCall​(String authorization,
                                                                  String name,
                                                                  ProgressResponseBody.ProgressListener progressListener,
                                                                  ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                           throws ApiException
        Build call for getChainsListUsingGET
        Parameters:
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        name - API name. (optional)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getChainsListUsingGET

        public ResponseWrapperListGetChainsList getChainsListUsingGET​(String authorization,
                                                                      String name)
                                                               throws ApiException
        Get the list of chains supported by different functions.
        Parameters:
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        name - API name. (optional)
        Returns:
        ResponseWrapperListGetChainsList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getChainsListUsingGETWithHttpInfo

        public ApiResponse<ResponseWrapperListGetChainsList> getChainsListUsingGETWithHttpInfo​(String authorization,
                                                                                               String name)
                                                                                        throws ApiException
        Get the list of chains supported by different functions.
        Parameters:
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        name - API name. (optional)
        Returns:
        ApiResponse<ResponseWrapperListGetChainsList>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getChainsListUsingGETAsync

        public com.squareup.okhttp.Call getChainsListUsingGETAsync​(String authorization,
                                                                   String name,
                                                                   ApiCallback<ResponseWrapperListGetChainsList> callback)
                                                            throws ApiException
        Get the list of chains supported by different functions. (asynchronously)
        Parameters:
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        name - API name. (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
      • tokenSecurityUsingGET1Call

        public com.squareup.okhttp.Call tokenSecurityUsingGET1Call​(String chainId,
                                                                   String contractAddresses,
                                                                   String authorization,
                                                                   ProgressResponseBody.ProgressListener progressListener,
                                                                   ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                            throws ApiException
        Build call for tokenSecurityUsingGET1
        Parameters:
        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; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required)
        contractAddresses - The contract address of tokens. (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
      • tokenSecurityUsingGET1

        public ResponseWrapperTokenSecurity tokenSecurityUsingGET1​(String chainId,
                                                                   String contractAddresses,
                                                                   String authorization)
                                                            throws ApiException
        Get token's security and risk data.
        Parameters:
        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; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required)
        contractAddresses - The contract address of tokens. (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        ResponseWrapperTokenSecurity
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • tokenSecurityUsingGET1WithHttpInfo

        public ApiResponse<ResponseWrapperTokenSecurity> tokenSecurityUsingGET1WithHttpInfo​(String chainId,
                                                                                            String contractAddresses,
                                                                                            String authorization)
                                                                                     throws ApiException
        Get token's security and risk data.
        Parameters:
        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; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required)
        contractAddresses - The contract address of tokens. (required)
        authorization - Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)
        Returns:
        ApiResponse<ResponseWrapperTokenSecurity>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • tokenSecurityUsingGET1Async

        public com.squareup.okhttp.Call tokenSecurityUsingGET1Async​(String chainId,
                                                                    String contractAddresses,
                                                                    String authorization,
                                                                    ApiCallback<ResponseWrapperTokenSecurity> callback)
                                                             throws ApiException
        Get token's security and risk data. (asynchronously)
        Parameters:
        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; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required)
        contractAddresses - The contract address of tokens. (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