Class GoPlusClient


  • public class GoPlusClient
    extends Object
    • Constructor Detail

      • GoPlusClient

        public GoPlusClient()
    • Method Detail

      • getAccessToken

        public static AccessToken getAccessToken​(AccessTokenRequest request)
                                          throws ApiException
        get token
        Parameters:
        request - request
        Returns:
        AccessToken
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • supportedChains

        public static ChainsList supportedChains​(SupportedChainsRequest request)
                                          throws ApiException
        Get the list of chains supported by different functions.
        Parameters:
        request - SupportedChainsRequest
        Returns:
        ChainsList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • tokenSecurity

        public static TokenSecurity tokenSecurity​(TokenSecurityRequest request)
                                           throws ApiException
        Get token security and risk data.
        Parameters:
        request - TokenSecurityRequest
        Returns:
        TokenSecurity
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addressSecurity

        public static AddressContract addressSecurity​(AddressSecurityRequest request)
                                               throws ApiException
        Check if the address is malicious
        Parameters:
        request - AddressSecurityRequest
        Returns:
        AddressContract
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • approvalSecurity

        public static ContractApprove approvalSecurity​(ApprovalSecurityRequest request)
                                                throws ApiException
        Check if the approval is secure
        Parameters:
        request - ApprovalSecurityRequest
        Returns:
        ContractApprove
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • erc20ApprovalSecurity

        public static ApproveTokenOutList erc20ApprovalSecurity​(Erc20ApprovalSecurityRequest request)
                                                         throws ApiException
        Check risk of all erc20 approvals under one EOA.
        Parameters:
        request - Erc20ApprovalSecurityRequest
        Returns:
        ApproveTokenOutList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • erc721ApprovalSecurity

        public static ApproveNFTList erc721ApprovalSecurity​(Erc721ApprovalSecurityRequest request)
                                                     throws ApiException
        Check risk of all erc721 approvals under one EOA.
        Parameters:
        request - Erc721ApprovalSecurityRequest
        Returns:
        ApproveNFTList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • erc1155ApprovalSecurity

        public static ApproveNFT1155List erc1155ApprovalSecurity​(Erc1155ApprovalSecurityRequest request)
                                                          throws ApiException
        Check risk of all erc1155 approvals under one EOA.
        Parameters:
        request - Erc1155ApprovalSecurityRequest
        Returns:
        ApproveNFT1155List
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • inputDecode

        public static ParseAbiData inputDecode​(InputDecodeRequest request)
                                        throws ApiException
        Get abi decode info
        Parameters:
        request - InputDecodeRequest
        Returns:
        ParseAbiData
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • nftSecurity

        public static NftInfo nftSecurity​(NftSecurityRequest request)
                                   throws ApiException
        Get NFT security and risk data.
        Parameters:
        request - NftSecurityRequest
        Returns:
        NftInfo
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • dappSecurity

        public static DappContractSecurity dappSecurity​(DappSecurityRequest request)
                                                 throws ApiException
        Check risk of dapp through URL
        Parameters:
        request - DappSecurityRequest
        Returns:
        DappContractSecurity
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • phishingSite

        public static PhishingSite phishingSite​(PhishingSiteRequest request)
                                         throws ApiException
        Check if the url is a phishing site
        Parameters:
        request - PhishingSiteRequest
        Returns:
        PhishingSite
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • rugpullDetecting

        public static DefiInfo rugpullDetecting​(DefiInfoRequest request)
                                         throws ApiException
        Rug-pull Detection API Beta
        Parameters:
        request - DefiInfoRequest
        Returns:
        DefiInfo
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createApiClient

        private static ApiClient createApiClient​(Integer timeOut)