Package com.klaytn.caver.kct.kip13
Class KIP13
- java.lang.Object
-
- com.klaytn.caver.contract.Contract
-
- com.klaytn.caver.kct.kip13.KIP13
-
public class KIP13 extends Contract
The KIP13 class allows you to easily check whether a Smart contract implements the KIP-13 standard. It provides the ability to query whether an interface id is implemented.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isImplementedKIP13Interface()
Checks if the contract implements KIP-13.boolean
sendQuery(java.lang.String interfaceId)
Sends query to check whether interface is supported or not.-
Methods inherited from class com.klaytn.caver.contract.Contract
call, call, callWithSolidityType, callWithSolidityType, create, create, decodeFunctionCall, deploy, deploy, deploy, deploy, encodeABI, encodeABIWithSolidityType, estimateGas, estimateGasWithSolidityType, findContractMethodBySignature, getAbi, getCaver, getConstructor, getContractAddress, getDefaultSendOptions, getEvent, getEvents, getMethod, getMethods, getPastEvent, getWallet, once, send, send, send, sendWithSolidityType, sendWithSolidityType, sendWithSolidityType, setDefaultSendOptions, setWallet, sign, sign, signAsFeePayer, signAsFeePayer, signAsFeePayerWithSolidityType, signAsFeePayerWithSolidityType, signWithSolidityType, signWithSolidityType, subscribe
-
-
-
-
Constructor Detail
-
KIP13
public KIP13(Caver caver, java.lang.String contractAddress) throws java.io.IOException
Creates a KIP13 instance.- Parameters:
caver
- A Caver instance.contractAddress
- A contract address.- Throws:
java.io.IOException
-
-
Method Detail
-
sendQuery
public boolean sendQuery(java.lang.String interfaceId)
Sends query to check whether interface is supported or not.If you want to execute this method alone, it recommended to execute
isImplementedKIP13Interface()
before.Example :
String interfaceId = "0x{interface id}"; boolean isImplemented = kip13.sendQuery(interfaceId);
- Parameters:
interfaceId
- The interface id to check.- Returns:
- boolean
-
isImplementedKIP13Interface
public boolean isImplementedKIP13Interface()
Checks if the contract implements KIP-13.Example :
boolean isImplemented = kip13.isImplementedKIP13Interface();
- Returns:
- boolean
-
-