Class KIP7

    • 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 instance
        contractAddress - 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 instance
        tokenInfo - The KIP-7 contract's deploy parameter values
        deployer - 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 instance
        tokenInfo - The KIP-7 contract's deploy parameter values
        sendOptions - 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 instance
        tokenInfo - The KIP-7 contract's deploy parameter values
        deployer - A deployer's address
        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,
                                  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 instance
        tokenInfo - The KIP-7 contract's deploy parameter values
        sendOptions - 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 class java.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 token
        amount - 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 token
        amount - The token amount to mint
        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
      • 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 permission
        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
      • 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 burned
        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
      • 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 burned
        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
      • 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 burned
        amount - The token amount to be burned
        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
      • 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 permission
        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
      • 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