Package io.gopluslabs.client.api
Class ApproveControllerV1Api
- java.lang.Object
-
- io.gopluslabs.client.api.ApproveControllerV1Api
-
public class ApproveControllerV1Api extends Object
-
-
Constructor Summary
Constructors Constructor Description ApproveControllerV1Api()ApproveControllerV1Api(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWrapperAddressContractaddressContractUsingGET1(String address, String authorization, String chainId)Check if the address is maliciouscom.squareup.okhttp.CalladdressContractUsingGET1Async(String address, String authorization, String chainId, ApiCallback<ResponseWrapperAddressContract> callback)Check if the address is malicious (asynchronously)com.squareup.okhttp.CalladdressContractUsingGET1Call(String address, String authorization, String chainId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for addressContractUsingGET1private com.squareup.okhttp.CalladdressContractUsingGET1ValidateBeforeCall(String address, String authorization, String chainId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)ApiResponse<ResponseWrapperAddressContract>addressContractUsingGET1WithHttpInfo(String address, String authorization, String chainId)Check if the address is maliciousResponseWrapperContractApproveResponseapprovalContractUsingGET(String chainId, String contractAddresses, String authorization)Check if the approval is securecom.squareup.okhttp.CallapprovalContractUsingGETAsync(String chainId, String contractAddresses, String authorization, ApiCallback<ResponseWrapperContractApproveResponse> callback)Check if the approval is secure (asynchronously)com.squareup.okhttp.CallapprovalContractUsingGETCall(String chainId, String contractAddresses, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for approvalContractUsingGETprivate com.squareup.okhttp.CallapprovalContractUsingGETValidateBeforeCall(String chainId, String contractAddresses, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)ApiResponse<ResponseWrapperContractApproveResponse>approvalContractUsingGETWithHttpInfo(String chainId, String contractAddresses, String authorization)Check if the approval is secureApiClientgetApiClient()voidsetApiClient(ApiClient apiClient)
-
-
-
Field Detail
-
apiClient
private ApiClient apiClient
-
-
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 listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
addressContractUsingGET1ValidateBeforeCall
private com.squareup.okhttp.Call addressContractUsingGET1ValidateBeforeCall(String address, String authorization, String chainId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
- Throws:
ApiException
-
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 listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
approvalContractUsingGETValidateBeforeCall
private com.squareup.okhttp.Call approvalContractUsingGETValidateBeforeCall(String chainId, String contractAddresses, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
- Throws:
ApiException
-
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
-
-