Package io.gopluslabs.client
Class GoPlusClient
- java.lang.Object
-
- io.gopluslabs.client.GoPlusClient
-
public class GoPlusClient extends Object
-
-
Constructor Summary
Constructors Constructor Description GoPlusClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AddressContractaddressSecurity(AddressSecurityRequest request)Check if the address is maliciousstatic ContractApproveapprovalSecurity(ApprovalSecurityRequest request)Check if the approval is secureprivate static ApiClientcreateApiClient(Integer timeOut)static DappContractSecuritydappSecurity(DappSecurityRequest request)Check risk of dapp through URLstatic ApproveNFT1155Listerc1155ApprovalSecurity(Erc1155ApprovalSecurityRequest request)Check risk of all erc1155 approvals under one EOA.static ApproveTokenOutListerc20ApprovalSecurity(Erc20ApprovalSecurityRequest request)Check risk of all erc20 approvals under one EOA.static ApproveNFTListerc721ApprovalSecurity(Erc721ApprovalSecurityRequest request)Check risk of all erc721 approvals under one EOA.static AccessTokengetAccessToken(AccessTokenRequest request)get tokenstatic ParseAbiDatainputDecode(InputDecodeRequest request)Get abi decode infostatic NftInfonftSecurity(NftSecurityRequest request)Get NFT security and risk data.static PhishingSitephishingSite(PhishingSiteRequest request)Check if the url is a phishing sitestatic DefiInforugpullDetecting(DefiInfoRequest request)Rug-pull Detection API Betastatic ChainsListsupportedChains(SupportedChainsRequest request)Get the list of chains supported by different functions.static TokenSecuritytokenSecurity(TokenSecurityRequest request)Get token security and risk data.
-
-
-
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
-
-