Class KIP7
- java.lang.Object
-
- com.klaytn.caver.contract.Contract
-
- com.klaytn.caver.kct.kip7.KIP7
-
public class KIP7 extends Contract
The KIP7 class that helps you easily handle a smart contract that implements KIP-7 as a Java instance on the Klaytn blockchain platform.This KIP-7 contract source code based on Klaytn-contracts. Static methods and constructor is accessed via `caver.kct.kip7`.
- See Also:
KIP7Wrapper
,KCTWrapper
,Contract
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KIP7.INTERFACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionReceipt.TransactionReceiptData
addMinter(java.lang.String account)
Execute a method "addMinter" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
addMinter(java.lang.String account, SendOptions sendParam)
Execute a method "addMinter" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
addPauser(java.lang.String account)
Execute a method "addPauser" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
addPauser(java.lang.String account, SendOptions sendParam)
Execute a method "addPauser" in KIP-7 standard contract.java.math.BigInteger
allowance(java.lang.String owner, java.lang.String spender)
Call method "allowance" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
approve(java.lang.String spender, java.math.BigInteger amount)
Execute a method "approve" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
approve(java.lang.String spender, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "approve" in KIP-7 standard contract.java.math.BigInteger
balanceOf(java.lang.String account)
Call method "balanceOf" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
burn(java.math.BigInteger amount)
Execute a method "burn" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
burn(java.math.BigInteger amount, SendOptions sendParam)
Execute a method "burn" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
burnFrom(java.lang.String account, java.math.BigInteger amount)
Execute a method "burnFrom" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
burnFrom(java.lang.String account, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "burnFrom" in KIP-7 standard contract.KIP7
clone()
Copy instance.KIP7
clone(java.lang.String tokenAddress)
Copy instance with token address.static KIP7
create(Caver caver)
Creates a KIP7 instance.static KIP7
create(Caver caver, java.lang.String contractAddress)
Creates a KIP7 instance.int
decimals()
Call method "decimals" in KIP-7 standard contract.static KIP7
deploy(Caver caver, SendOptions sendOptions, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, SendOptions sendOptions, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply, IWallet wallet)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, KIP7DeployParams tokenInfo, SendOptions sendOptions)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, KIP7DeployParams tokenInfo, SendOptions sendOptions, IWallet wallet)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, KIP7DeployParams tokenInfo, java.lang.String deployer)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, KIP7DeployParams tokenInfo, java.lang.String deployer, IWallet wallet)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, java.lang.String deployer, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply)
Deploy KIP-7 contract.static KIP7
deploy(Caver caver, java.lang.String deployer, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply, IWallet wallet)
Deploy KIP-7 contract.java.util.Map<java.lang.String,java.lang.Boolean>
detectInterface()
Detects which interface the KIP-7 token contract supports.static java.util.Map<java.lang.String,java.lang.Boolean>
detectInterface(Caver caver, java.lang.String contractAddress)
Detects which interface the KIP-7 token contract supports.boolean
isMinter(java.lang.String account)
Call method "isMinter" in KIP-7 standard contract.boolean
isPauser(java.lang.String account)
Call method "isPauser" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
mint(java.lang.String account, java.math.BigInteger amount)
Execute a method "mint" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
mint(java.lang.String account, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "mint" in KIP-7 standard contract.java.lang.String
name()
Call method "name" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
pause()
Execute a method "pause" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
pause(SendOptions sendParam)
Execute a method "pause" in KIP-7 standard contract.boolean
paused()
Call method "paused" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
renounceMinter()
Execute a method "renounceMinter" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
renounceMinter(SendOptions sendParam)
Execute a method "renounceMinter" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
renouncePauser()
Execute a method "unpause" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
renouncePauser(SendOptions sendParam)
Execute a method "unpause" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransfer(java.lang.String recipient, java.math.BigInteger amount)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransfer(java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransfer(java.lang.String recipient, java.math.BigInteger amount, java.lang.String data)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransfer(java.lang.String recipient, java.math.BigInteger amount, java.lang.String data, SendOptions sendParam)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "safeTransfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, java.lang.String data)
Execute a method "safeTransferFrom" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, java.lang.String data, SendOptions sendParam)
Execute a method "safeTransferFrom" in KIP-7 standard contract.boolean
supportInterface(java.lang.String interfaceId)
Call method "supportsInterface" in KIP-13 standard contract.java.lang.String
symbol()
Call method "symbol" in KIP-7 standard contract.java.math.BigInteger
totalSupply()
Call method "totalSupply" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
transfer(java.lang.String recipient, java.math.BigInteger amount)
Execute a method "transfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
transfer(java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "transfer" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
transferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount)
Execute a method "transferFrom" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
transferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam)
Execute a method "transferFrom" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
unpause()
Execute a method "unpause" in KIP-7 standard contract.TransactionReceipt.TransactionReceiptData
unpause(SendOptions sendParam)
Execute a method "unpause" in KIP-7 standard contract.-
Methods inherited from class com.klaytn.caver.contract.Contract
call, call, callWithSolidityType, callWithSolidityType, 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
-
KIP7
public KIP7(Caver caver) throws java.io.IOException
Creates a KIP7 instance.- Parameters:
caver
- A Caver instance.- Throws:
java.io.IOException
-
KIP7
public KIP7(Caver caver, java.lang.String contractAddress) throws java.io.IOException
Creates a KIP7 instance- Parameters:
caver
- A Caver instancecontractAddress
- A contract address- Throws:
java.io.IOException
-
-
Method Detail
-
create
public static KIP7 create(Caver caver) throws java.io.IOException
Creates a KIP7 instance.Example :
KIP7 kip7 = caver.kct.kip7.create();
- Parameters:
caver
- A Caver instance.- Returns:
- KIP7
- Throws:
java.io.IOException
-
create
public static KIP7 create(Caver caver, java.lang.String contractAddress) throws java.io.IOException
Creates a KIP7 instance.Example
String contractAddress = "0x{contractAddress}"; KIP7 kip7 = caver.kct.kip7.create(contractAddress);
- Parameters:
caver
- A Caver instance.contractAddress
- A contract address- Returns:
- KIP7
- Throws:
java.io.IOException
-
deploy
public static KIP7 deploy(Caver caver, java.lang.String deployer, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Deploy KIP-7 contract.It must add deployer's keyring in caver.wallet. See
KeyringContainer
andIWallet
.Example :
String deployerAddress = "0x{deployerAddress}"; String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 KIP7 kip7 = caver.kct.kip7.deploy(deployerAddress, name, symbol, decimals, initialSupply);
- Parameters:
caver
- A Caver instance.deployer
- A deployer's address.name
- A KIP-7 contract name.symbol
- A KIP-7 contract symbol.decimals
- A KIP-7 contract decimals.initialSupply
- A KIP-7 contract initial supply.- Returns:
- KIP7
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
deploy
public static KIP7 deploy(Caver caver, SendOptions sendOptions, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply) throws org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException
Deploy KIP-7 contract.It must add deployer's keyring in caver.wallet. See
KeyringContainer
andIWallet
.If you want to deploy a contract using fee delegation transaction, you can create and send a fee delegated transaction through setting a fee delegation field in `SendOptions` like below code example.
Example :
String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("0x{deployerAddress}"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("0x{feePayerAddress}"); KIP7 kip7 = caver.kct.kip7.deploy(sendOptions, name, symbol, decimals, initialSupply);
- Parameters:
caver
- A Caver instance.sendOptions
- The send options to deploy a contract.name
- A KIP-7 contract name.symbol
- A KIP-7 contract symbol.decimals
- A KIP-7 contract decimals.initialSupply
- A KIP-7 contract initial supply.- Returns:
- KIP7
- Throws:
org.web3j.protocol.exceptions.TransactionException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
-
deploy
public static KIP7 deploy(Caver caver, java.lang.String deployer, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply, IWallet wallet) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Deploy KIP-7 contract.The wallet used in the contract is set with the wallet that implements the IWallet interface passed as a parameter of the method.
Example :
String deployerAddress = "0x{deployerAddress}"; String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 KIP7 kip7 = caver.kct.kip7.deploy(deployerAddress, name, symbol, decimals, initialSupply, caver.getWallet());
- Parameters:
caver
- A Caver instance.deployer
- A deployer's address.name
- A KIP-7 contract name.symbol
- A KIP-7 contract symbol.decimals
- A KIP-7 contract decimals.initialSupply
- A KIP-7 contract initial supply.wallet
- The class instance implemented IWallet to sign transaction.- Returns:
- KIP7
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
deploy
public static KIP7 deploy(Caver caver, SendOptions sendOptions, java.lang.String name, java.lang.String symbol, int decimals, java.math.BigInteger initialSupply, IWallet wallet) throws org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException
Deploy KIP-7 contract.The wallet used in the contract is set with the wallet that implements the IWallet interface passed as a parameter of the method.
If you want to deploy a contract using fee delegation transaction, you can create and send a fee delegated transaction through setting a fee delegation field in `SendOptions` like below code example.
Example :
String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("0x{deployerAddress}"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("0x{feePayerAddress}"); KIP7 kip7 = caver.kct.kip7.deploy(sendOptions, name, symbol, decimals, initialSupply, caver.getWallet());
- Parameters:
caver
- A Caver instance.sendOptions
- The send options to deploy a contract.name
- A KIP-7 contract name.symbol
- A KIP-7 contract symbol.decimals
- A KIP-7 contract decimals.initialSupply
- A KIP-7 contract initial supply.wallet
- The class instance implemented IWallet to sign transaction.- Returns:
- KIP7
- Throws:
org.web3j.protocol.exceptions.TransactionException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
-
deploy
public static KIP7 deploy(Caver caver, KIP7DeployParams tokenInfo, java.lang.String deployer) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Deploy KIP-7 contract.The deployer's keyring should be added in `caver.wallet`.
Example :
String deployerAddress = "0x{deployerAddress}"; String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 KIP7DeployParams tokenInfo = new KIP7DeployParams(name, symbol, decimals, initialSupply); KIP7 kip7 = caver.kct.kip7.deploy(tokenInfo, deployerAddress);
- Parameters:
caver
- A Caver instancetokenInfo
- The KIP-7 contract's deploy parameter valuesdeployer
- A deployer's address- Returns:
- KIP7
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
deploy
public static KIP7 deploy(Caver caver, KIP7DeployParams tokenInfo, SendOptions sendOptions) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Deploy KIP-7 contract.The deployer's keyring should be added in `caver.wallet`.
If you want to deploy a contract using fee delegation transaction, you can create and send a fee delegated transaction through setting a fee delegation field in `SendOptions` like below code example.
String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("0x{deployerAddress}"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("0x{feePayerAddress}"); KIP7DeployParams tokenInfo = new KIP7DeployParams(name, symbol, decimals, initialSupply); KIP7 kip7 = caver.kct.kip7.deploy(tokenInfo, sendOptions);
- Parameters:
caver
- A Caver instancetokenInfo
- The KIP-7 contract's deploy parameter valuessendOptions
- The send options to deploy a contract.- Returns:
- KIP7
- Throws:
java.lang.NoSuchMethodException
org.web3j.protocol.exceptions.TransactionException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
deploy
public static KIP7 deploy(Caver caver, KIP7DeployParams tokenInfo, java.lang.String deployer, IWallet wallet) throws java.io.IOException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Deploy KIP-7 contract.The wallet used in the contract is set with the wallet that implements the IWallet interface passed as a parameter of the method.
Example :
String deployerAddress = "0x{deployerAddress}"; String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 KIP7DeployParams tokenInfo = new KIP7DeployParams(name, symbol, decimals, initialSupply); KIP7 kip7 = caver.kct.kip7.deploy(tokenInfo, deployerAddress, caver.getWallet());
- Parameters:
caver
- A Caver instancetokenInfo
- The KIP-7 contract's deploy parameter valuesdeployer
- A deployer's addresswallet
- The class instance implemented IWallet to sign transaction.- Returns:
- KIP7
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
deploy
public static KIP7 deploy(Caver caver, KIP7DeployParams tokenInfo, SendOptions sendOptions, IWallet wallet) throws java.io.IOException, org.web3j.protocol.exceptions.TransactionException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException
Deploy KIP-7 contract.The wallet used in the contract is set with the wallet that implements the IWallet interface passed as a parameter of the method.
If you want to deploy a contract using fee delegation transaction, you can create and send a fee delegated transaction through setting a fee delegation field in `SendOptions` like below code example.
Example :
String name = "KIP7"; String symbol = "KIP7Symbol"; int decimals = 18; BigInteger initialSupply = BigInteger.valueOf(100_000).multiply(BigInteger.TEN.pow(CONTRACT_DECIMALS)); // 100000 * 10^18 SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("0x{deployerAddress}"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("0x{feePayerAddress}"); KIP7DeployParams tokenInfo = new KIP7DeployParams(name, symbol, decimals, initialSupply); KIP7 kip7 = caver.kct.kip7.deploy(tokenInfo, sendOptions, caver.getWallet());
- Parameters:
caver
- A Caver instancetokenInfo
- The KIP-7 contract's deploy parameter valuessendOptions
- The send options to deploy a contract.wallet
- The class instance implemented IWallet to sign transaction.- Returns:
- KIP7
- Throws:
java.io.IOException
org.web3j.protocol.exceptions.TransactionException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
-
detectInterface
public static java.util.Map<java.lang.String,java.lang.Boolean> detectInterface(Caver caver, java.lang.String contractAddress)
Detects which interface the KIP-7 token contract supports.Example :
Map<String, Boolean> result = KIP7.detectInterface(); result.get(KIP7.INTERFACE_ID_IKIP7); result.get(KIP7.INTERFACE_ID_IKIP7_BURNABLE); result.get(KIP7.INTERFACE_ID_IKIP7_METADATA); result.get(KIP7.INTERFACE_ID_IKIP7_MINTABLE); result.get(KIP7.INTERFACE_ID_IKIP7_PAUSABLE);
- Parameters:
caver
- A Caver instance.contractAddress
- A contract address.- Returns:
- Map<String, Boolean>
-
clone
public KIP7 clone()
Copy instance.Example :
KIP7 cloned = kip7.clone();
- Overrides:
clone
in classjava.lang.Object
- Returns:
- KIP7
-
clone
public KIP7 clone(java.lang.String tokenAddress)
Copy instance with token address.Example :
String contractAddress = "0x{contractAddress}"; KIP7 cloned = kip7.clone(contractAddress);
- Parameters:
tokenAddress
- A KIP-7 token address- Returns:
- KIP7
-
detectInterface
public java.util.Map<java.lang.String,java.lang.Boolean> detectInterface()
Detects which interface the KIP-7 token contract supports.Example :
Example :
KIP7 kip7 = new KIP7("0x{contract_address}"); Map<String, Boolean> result = kip7.detectInterface(); result.get(KIP7.INTERFACE_ID_IKIP7); result.get(KIP7.INTERFACE_ID_IKIP7_BURNABLE); result.get(KIP7.INTERFACE_ID_IKIP7_METADATA); result.get(KIP7.INTERFACE_ID_IKIP7_MINTABLE); result.get(KIP7.INTERFACE_ID_IKIP7_PAUSABLE);
- Returns:
- Map<String, Boolean>
-
supportInterface
public boolean supportInterface(java.lang.String interfaceId) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "supportsInterface" in KIP-13 standard contract.Example :
boolean isSupported = kip7.supportInterface(KIP7.INTERFACE.IKIP7.getId());
- Parameters:
interfaceId
- interface identifier. seeKIP7.INTERFACE
.- Returns:
- boolean
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
name
public java.lang.String name() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "name" in KIP-7 standard contract.Example :
String name = kip7.name();
- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
symbol
public java.lang.String symbol() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "symbol" in KIP-7 standard contract.Example :
String symbol = kip7.symbol();
- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
decimals
public int decimals() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "decimals" in KIP-7 standard contract.Example :
int decimals = kip7.decimals();
- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
totalSupply
public java.math.BigInteger totalSupply() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "totalSupply" in KIP-7 standard contract.Example :
BigInteger totalSupply = kip7.totalSupply();
- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
balanceOf
public java.math.BigInteger balanceOf(java.lang.String account) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "balanceOf" in KIP-7 standard contract.Example :
String tokenOwner = "0x{address}"; BigInteger balance = kip7.balanceOf(tokenOwner);
- Parameters:
account
- An address for whom to query the balance- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
allowance
public java.math.BigInteger allowance(java.lang.String owner, java.lang.String spender) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "allowance" in KIP-7 standard contract.Example :
String owner = "0x{ownerAddress}"; String spender = "0x{spenderAddress}"; BigInteger allowance = kip7.allowance(owner, spender);
- Parameters:
owner
- The account allowed `spender` to withdraw the tokens from the account.spender
- The address is approved to withdraw the tokens.- Returns:
- String
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
isMinter
public boolean isMinter(java.lang.String account) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "isMinter" in KIP-7 standard contract.Example :
String address = "0x{address}"; boolean isMinter = kip7.isMinter(address);
- Parameters:
account
- The account to check the minting permission- Returns:
- boolean
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
isPauser
public boolean isPauser(java.lang.String account) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "isPauser" in KIP-7 standard contract.Example :
String address = "0x{address}"; boolean isPauser = kip7.isPauser(address);
- Parameters:
account
- The account to check the pausing permission- Returns:
- boolean
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
paused
public boolean paused() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Call method "paused" in KIP-7 standard contract.Example :
boolean isPausedContract = kip7.paused();
- Returns:
- boolean
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
-
approve
public TransactionReceipt.TransactionReceiptData approve(java.lang.String spender, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "approve" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String spender = "0x{spenderAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.approve(spender, amount);
- Parameters:
spender
- The address is approved to withdraw the tokens.amount
- Amount the token amount will be approved.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
approve
public TransactionReceipt.TransactionReceiptData approve(java.lang.String spender, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException, org.web3j.protocol.exceptions.TransactionException
Execute a method "approve" in KIP-7 standard contract.If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String spender = "0x{spenderAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.approve(spender, amount, sendOptions);
- Parameters:
spender
- The address is approved to withdraw the tokens.amount
- Amount the token amount will be approved.sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
transfer
public TransactionReceipt.TransactionReceiptData transfer(java.lang.String recipient, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "transfer" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.transfer(recipient, amount);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
transfer
public TransactionReceipt.TransactionReceiptData transfer(java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException, org.web3j.protocol.exceptions.TransactionException
Execute a method "transfer" in KIP-7 standard contract.If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.transfer(recipient, amount, sendOptions);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
transferFrom
public TransactionReceipt.TransactionReceiptData transferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "transferFrom" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.transferFrom(sender, recipient, amount);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
transferFrom
public TransactionReceipt.TransactionReceiptData transferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "transferFrom" in KIP-7 standard contract.If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.transferFrom(sender, recipient, amount, sendOptions);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransfer
public TransactionReceipt.TransactionReceiptData safeTransfer(java.lang.String recipient, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "safeTransfer" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransfer(recipient, amount);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransfer
public TransactionReceipt.TransactionReceiptData safeTransfer(java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransfer" in KIP-7 standard contract.If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransfer(recipient, amount, sendOptions);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransfer
public TransactionReceipt.TransactionReceiptData safeTransfer(java.lang.String recipient, java.math.BigInteger amount, java.lang.String data) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransfer" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; String data = "data"; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransfer(recipient, amount, data);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransfer
public TransactionReceipt.TransactionReceiptData safeTransfer(java.lang.String recipient, java.math.BigInteger amount, java.lang.String data, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransfer" in KIP-7 standard contract.If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; String data = "data"; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransfer(recipient, amount, data, sendOptions);
- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransferFrom
public TransactionReceipt.TransactionReceiptData safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "safeTransfer" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransferFrom(sender, recipient, amount);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransferFrom
public TransactionReceipt.TransactionReceiptData safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransfer" in KIP-7 standard contract.If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransferFrom(sender, recipient, amount, sendOptions);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransferFrom
public TransactionReceipt.TransactionReceiptData safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, java.lang.String data) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransferFrom" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; String data = "data"; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransferFrom(sender, recipient, amount, data);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
safeTransferFrom
public TransactionReceipt.TransactionReceiptData safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, java.lang.String data, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "safeTransferFrom" in KIP-7 standard contract.If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String recipient = "0x{recipientAddress}"; BigInter amount = BigInteger.ONE; String data = "data"; TransactionReceipt.TransactionReceiptData receipt = kip7.safeTransferFrom(sender, recipient, amount, data, sendOptions);
- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
mint
public TransactionReceipt.TransactionReceiptData mint(java.lang.String account, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "mint" in KIP-7 standard contract.Caller must have "Minter" Permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String account = "0x{address}"; BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.mint(account, amount);
- Parameters:
account
- The account that will receive the minted tokenamount
- The token amount to mint- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
mint
public TransactionReceipt.TransactionReceiptData mint(java.lang.String account, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "mint" in KIP-7 standard contract.Caller must have "Minter" Permission.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String account = "0x{address}"; BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.mint(account, amount, sendOptions);
- Parameters:
account
- The account that will receive the minted tokenamount
- The token amount to mintsendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
addMinter
public TransactionReceipt.TransactionReceiptData addMinter(java.lang.String account) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "addMinter" in KIP-7 standard contract.Caller must have "Minter" Permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String account = "0x{address}"; TransactionReceipt.TransactionReceiptData receipt = kip7.addMinter(account);
- Parameters:
account
- The account to be given the minting permission- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
addMinter
public TransactionReceipt.TransactionReceiptData addMinter(java.lang.String account, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "addMinter" in KIP-7 standard contract.Caller must have "Minter" Permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String account = "0x{address}"; TransactionReceipt.TransactionReceiptData receipt = kip7.addMinter(account, sendOptions);
- Parameters:
account
- The account to be given the minting permissionsendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
renounceMinter
public TransactionReceipt.TransactionReceiptData renounceMinter() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "renounceMinter" in KIP-7 standard contract.Caller must have "Minter" Permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); TransactionReceipt.TransactionReceiptData receipt = kip7.renounceMinter();
- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
renounceMinter
public TransactionReceipt.TransactionReceiptData renounceMinter(SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "renounceMinter" in KIP-7 standard contract.Caller must have "Minter" Permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); TransactionReceipt.TransactionReceiptData receipt = kip7.renounceMinter(sendOptions);
- Parameters:
sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
burn
public TransactionReceipt.TransactionReceiptData burn(java.math.BigInteger amount) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "burn" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.burn(amount);
- Parameters:
amount
- The token amount to be burned- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
burn
public TransactionReceipt.TransactionReceiptData burn(java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "burn" in KIP-7 standard contract.If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.burn(amount, sendOptions);
- Parameters:
amount
- The token amount to be burnedsendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
burnFrom
public TransactionReceipt.TransactionReceiptData burnFrom(java.lang.String account, java.math.BigInteger amount) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "burnFrom" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String account = "0x{accountAddress}"; BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.burnFrom(account, amount);
- Parameters:
account
- The account will be deducted is the The token amount to be burnedamount
- The token amount to be burned- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
burnFrom
public TransactionReceipt.TransactionReceiptData burnFrom(java.lang.String account, java.math.BigInteger amount, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "burnFrom" in KIP-7 standard contract.It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String account = "0x{accountAddress}"; BigInteger amount = BigInteger.ONE; TransactionReceipt.TransactionReceiptData receipt = kip7.burnFrom(account, amount, sendOptions);
- Parameters:
account
- The account will be deducted is the The token amount to be burnedamount
- The token amount to be burnedsendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
addPauser
public TransactionReceipt.TransactionReceiptData addPauser(java.lang.String account) throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "addPauser" in KIP-7 standard contract.Caller must have Pauser permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); String account = "0x{accountAddress}"; TransactionReceipt.TransactionReceiptData receipt = kip7.addPauser(account);
- Parameters:
account
- The account to be given the pausing permission- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
addPauser
public TransactionReceipt.TransactionReceiptData addPauser(java.lang.String account, SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "addPauser" in KIP-7 standard contract.Caller must have Pauser permission.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); String account = "0x{accountAddress}"; TransactionReceipt.TransactionReceiptData receipt = kip7.addPauser(account, sendOptions);
- Parameters:
account
- The account to be given the pausing permissionsendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
pause
public TransactionReceipt.TransactionReceiptData pause() throws java.lang.NoSuchMethodException, org.web3j.protocol.exceptions.TransactionException, java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.ClassNotFoundException
Execute a method "pause" in KIP-7 standard contract.Caller must have Pauser permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); TransactionReceipt.TransactionReceiptData receipt = kip7.pause();
- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
pause
public TransactionReceipt.TransactionReceiptData pause(SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "pause" in KIP-7 standard contract.Caller must have Pauser permission.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); TransactionReceipt.TransactionReceiptData receipt = kip7.pause(sendOptions);
- Parameters:
sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
unpause
public TransactionReceipt.TransactionReceiptData unpause() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "unpause" in KIP-7 standard contract.Caller must have Pauser permission.
It will use default sendOptions in contract instance to passed sendOptions.
If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); TransactionReceipt.TransactionReceiptData receipt = kip7.unpause();
- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
unpause
public TransactionReceipt.TransactionReceiptData unpause(SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "unpause" in KIP-7 standard contract.Caller must have Pauser permission.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); TransactionReceipt.TransactionReceiptData receipt = kip7.unpause(sendOptions);
- Parameters:
sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
renouncePauser
public TransactionReceipt.TransactionReceiptData renouncePauser() throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "unpause" in KIP-7 standard contract.Caller must have Pauser permission.
It will use default sendOptions in contract instance to passed sendOptions. If a gas value in default sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); kip7.setDefaultSendOptions(sendOptions); TransactionReceipt.TransactionReceiptData receipt = kip7.renouncePauser();
- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
renouncePauser
public TransactionReceipt.TransactionReceiptData renouncePauser(SendOptions sendParam) throws java.lang.NoSuchMethodException, java.io.IOException, java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, org.web3j.protocol.exceptions.TransactionException
Execute a method "unpause" in KIP-7 standard contract.Caller must have Pauser permission.
If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().
Example :
String sender = "0x{senderAddress}"; SendOptions sendOptions = new SendOptions(); sendOptions.setFrom(sender); TransactionReceipt.TransactionReceiptData receipt = kip7.renouncePauser(sendOptions);
- Parameters:
sendParam
- A SendOptions need to execute contract's method.- Returns:
- TransactionReceipt.TransactionReceiptData
- Throws:
java.lang.NoSuchMethodException
java.io.IOException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
org.web3j.protocol.exceptions.TransactionException
-
-