Class KIP7
- java.lang.Object
-
- com.klaytn.caver.contract.Contract
-
- com.klaytn.caver.kct.kip7.KIP7
-
public class KIP7 extends 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 instanceKIP7
clone(java.lang.String tokenAddress)
Copy instance with token addressint
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, deploy, deploy, deploy, deploy, encodeABI, encodeABIWithSolidityType, estimateGas, estimateGasWithSolidityType, 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
-
-
-
-
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
-
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.
- 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.
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.
SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("deployer address"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("fee payer address"); 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 to the wallet type passed as a parameter of the method.
- 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 to the wallet type 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.
SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("deployer address"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("fee payer address"); 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`.
- 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.
SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("deployer address"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("fee payer address"); 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 to the wallet type passed as a parameter of the method.
- 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 to the wallet type 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.
SendOptions sendOptions = new SendOptions(); sendOptions.setFrom("deployer address"); sendOptions.setGas(BigInteger.valueOf(gas value)); sendOptions.setFeeDelegation(true); sendOptions.setFeePayer("fee payer address"); 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- Overrides:
clone
in classjava.lang.Object
- Returns:
- KIP7
-
clone
public KIP7 clone(java.lang.String tokenAddress)
Copy instance with token address- 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 :
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.- Parameters:
interfaceId
- interface identifier- 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.- 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.- 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.- 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.- 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.- 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.- 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.- 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.- 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.- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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().
- 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
-
-