Class KIP37

    • Field Detail

      • FUNCTION_BALANCE_OF

        public static final java.lang.String FUNCTION_BALANCE_OF
        See Also:
        Constant Field Values
      • FUNCTION_BALANCE_OF_BATCH

        public static final java.lang.String FUNCTION_BALANCE_OF_BATCH
        See Also:
        Constant Field Values
      • FUNCTION_SET_APPROVED_FOR_ALL

        public static final java.lang.String FUNCTION_SET_APPROVED_FOR_ALL
        See Also:
        Constant Field Values
      • FUNCTION_IS_APPROVED_FOR_ALL

        public static final java.lang.String FUNCTION_IS_APPROVED_FOR_ALL
        See Also:
        Constant Field Values
      • FUNCTION_TOTAL_SUPPLY

        public static final java.lang.String FUNCTION_TOTAL_SUPPLY
        See Also:
        Constant Field Values
      • FUNCTION_SAFE_TRANSFER_FROM

        public static final java.lang.String FUNCTION_SAFE_TRANSFER_FROM
        See Also:
        Constant Field Values
      • FUNCTION_SAFE_BATCH_TRANSFER_FROM

        public static final java.lang.String FUNCTION_SAFE_BATCH_TRANSFER_FROM
        See Also:
        Constant Field Values
      • FUNCTION_BURN_BATCH

        public static final java.lang.String FUNCTION_BURN_BATCH
        See Also:
        Constant Field Values
      • FUNCTION_MINT_BATCH

        public static final java.lang.String FUNCTION_MINT_BATCH
        See Also:
        Constant Field Values
      • FUNCTION_UNPAUSE

        public static final java.lang.String FUNCTION_UNPAUSE
        See Also:
        Constant Field Values
      • FUNCTION_IS_PAUSER

        public static final java.lang.String FUNCTION_IS_PAUSER
        See Also:
        Constant Field Values
      • FUNCTION_ADD_PAUSER

        public static final java.lang.String FUNCTION_ADD_PAUSER
        See Also:
        Constant Field Values
      • FUNCTION_RENOUNCE_PAUSER

        public static final java.lang.String FUNCTION_RENOUNCE_PAUSER
        See Also:
        Constant Field Values
      • FUNCTION_IS_MINTER

        public static final java.lang.String FUNCTION_IS_MINTER
        See Also:
        Constant Field Values
      • FUNCTION_ADD_MINTER

        public static final java.lang.String FUNCTION_ADD_MINTER
        See Also:
        Constant Field Values
      • FUNCTION_RENOUNCE_MINTER

        public static final java.lang.String FUNCTION_RENOUNCE_MINTER
        See Also:
        Constant Field Values
      • FUNCTION_SUPPORTS_INTERFACE

        public static final java.lang.String FUNCTION_SUPPORTS_INTERFACE
        See Also:
        Constant Field Values
    • Constructor Detail

      • KIP37

        public KIP37​(Caver caver)
              throws java.io.IOException
        Creates a KIP37 instance.
        Parameters:
        caver - A Caver instance.
        Throws:
        java.io.IOException
      • KIP37

        public KIP37​(Caver caver,
                     java.lang.String contractAddress)
              throws java.io.IOException
        Creates a KIP37 instance.
        Parameters:
        caver - A Caver instance
        contractAddress - A contract address.
        Throws:
        java.io.IOException
    • Method Detail

      • create

        public static KIP37 create​(Caver caver)
                            throws java.io.IOException
        Creates a KIP37 instance.
        Parameters:
        caver - A Caver instance.
        Returns:
        KIP37
        Throws:
        java.io.IOException
      • create

        public static KIP37 create​(Caver caver,
                                   java.lang.String contractAddress)
                            throws java.io.IOException
        Creates a KIP37 instance.
        Parameters:
        caver - A Caver instance.
        contractAddress - A contract address
        Returns:
        KIP37
        Throws:
        java.io.IOException
      • deploy

        public static KIP37 deploy​(Caver caver,
                                   java.lang.String uri,
                                   java.lang.String deployer)
                            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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        Parameters:
        caver - A Caver instance.
        uri - The URI for token type.
        deployer - A deployer's address.
        Returns:
        KIP37
        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

        public static KIP37 deploy​(Caver caver,
                                   java.lang.String uri,
                                   SendOptions sendOptions)
                            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 a KIP-37 contract.

        The deployer's keyring should be existed 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.

         
             SendOptions sendOptions = new SendOptions();
             sendOptions.setFrom("deployer address");
             sendOptions.setGas(BigInteger.valueOf(gas value));
             sendOptions.setFeeDelegation(true);
             sendOptions.setFeePayer("fee payer address");
        
             KIP37 kip37 = caver.kct.kip37.deploy(uri, sendOptions);
         
         
        Parameters:
        caver - A Caver instance.
        uri - The URI for token type.
        sendOptions - The send options to deploy a contract.
        Returns:
        KIP37
        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

        public static KIP37 deploy​(Caver caver,
                                   java.lang.String uri,
                                   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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        The wallet used in the contract is set to the wallet type passed as a parameter of the method.

        Parameters:
        caver - A Caver instance.
        uri - The URI for token type.
        deployer - A deployer's address.
        wallet - The class instance implemented IWallet to sign transaction.
        Returns:
        KIP37
        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

        public static KIP37 deploy​(Caver caver,
                                   java.lang.String uri,
                                   SendOptions sendOptions,
                                   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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        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.

         
             SendOptions sendOptions = new SendOptions();
             sendOptions.setFrom("deployer address");
             sendOptions.setGas(BigInteger.valueOf(gas value));
             sendOptions.setFeeDelegation(true);
             sendOptions.setFeePayer("fee payer address");
        
             KIP37 kip37 = caver.kct.kip37.deploy(uri, sendOptions, caver.getWallet());
         
         
        Parameters:
        caver - A Caver instance.
        uri - The URI for token type.
        sendOptions - The send options to deploy a contract.
        wallet - The class instance implemented IWallet to sign transaction.
        Returns:
        KIP37
        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

        public static KIP37 deploy​(Caver caver,
                                   KIP37DeployParams tokenInfo,
                                   java.lang.String deployer)
                            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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        Parameters:
        caver - A Caver instance.
        tokenInfo - The KIP-37 contract's deploy parameter values.
        deployer - A deployer's address
        Returns:
        KIP37
        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 KIP37 deploy​(Caver caver,
                                   KIP37DeployParams tokenInfo,
                                   SendOptions sendOptions)
                            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 a KIP-37 contract.

        The deployer's keyring should be existed 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.

         
             SendOptions sendOptions = new SendOptions();
             sendOptions.setFrom("deployer address");
             sendOptions.setGas(BigInteger.valueOf(gas value));
             sendOptions.setFeeDelegation(true);
             sendOptions.setFeePayer("fee payer address");
        
             KIP37 kip37 = caver.kct.kip37.deploy(new KIP37DeployParams(uri), sendOptions);
         
         
        Parameters:
        caver - A Caver instance.
        tokenInfo - The KIP-37 contract's deploy parameter values.
        sendOptions - The send options to deploy a contract.
        Returns:
        KIP37
        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 KIP37 deploy​(Caver caver,
                                   KIP37DeployParams 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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        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-37 contract's deploy parameter values.
        deployer - A deployer's address
        wallet - The class instance implemented IWallet to sign transaction.
        Returns:
        KIP37
        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

        public static KIP37 deploy​(Caver caver,
                                   KIP37DeployParams tokenInfo,
                                   SendOptions sendOptions,
                                   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 a KIP-37 contract.

        The deployer's keyring should be existed in `caver.wallet`.

        The wallet used in the contract is set to the wallet type passed as a parameter of the method.

         
             SendOptions sendOptions = new SendOptions();
             sendOptions.setFrom("deployer address");
             sendOptions.setGas(BigInteger.valueOf(gas value));
             sendOptions.setFeeDelegation(true);
             sendOptions.setFeePayer("fee payer address");
        
             KIP37 kip37 = caver.kct.kip37.deploy(new KIP37DeployParams(uri), sendOptions, caver.getWallet());
         
         
        Parameters:
        caver - A Caver instance
        tokenInfo - The KIP-37 contract's deploy parameter values.
        sendOptions - The send options to deploy a contract.
        wallet - The class instance implemented IWallet to sign transaction.
        Returns:
        KIP37
        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
      • clone

        public KIP37 clone()
        Copy instance
        Overrides:
        clone in class java.lang.Object
        Returns:
        KIP37
      • clone

        public KIP37 clone​(java.lang.String tokenAddress)
        Copy instance with token address
        Parameters:
        tokenAddress - A KIP-37 token address
        Returns:
        KIP37
      • detectInterface

        public static java.util.Map<java.lang.String,​java.lang.Boolean> detectInterface​(Caver caver,
                                                                                              java.lang.String contractAddress)
        Detects which interface the KIP-37 token contract supports.

        Example :

        
         Map<String, Boolean> result = KIP37.detectInterface();
         result.get(KIP37.INTERFACE_ID_IKIP37);
         result.get(KIP37.INTERFACE_ID_IKIP37_BURNABLE);
         result.get(KIP37.INTERFACE_ID_IKIP37_METADATA);
         result.get(KIP37.INTERFACE_ID_IKIP37_MINTABLE);
         result.get(KIP37.INTERFACE_ID_IKIP37_PAUSABLE);
         
        Parameters:
        caver - A Caver instance.
        contractAddress - A contract instance
        Returns:
        Map<String, Boolean>
      • detectInterface

        public java.util.Map<java.lang.String,​java.lang.Boolean> detectInterface()
        Detects which interface the KIP-37 token contract supports.

        Example :

        
         KIP37 kip37 = new KIP37("0x{contract_address}");
         Map<String, Boolean> result = kip37.detectInterface();
        
         result.get(KIP37.INTERFACE_ID_IKIP37);
         result.get(KIP37.INTERFACE_ID_IKIP37_BURNABLE);
         result.get(KIP37.INTERFACE_ID_IKIP37_METADATA);
         result.get(KIP37.INTERFACE_ID_IKIP37_MINTABLE);
         result.get(KIP37.INTERFACE_ID_IKIP37_PAUSABLE);
         
        Returns:
        Map<String, Boolean>
      • uri

        public java.lang.String uri​(java.lang.String tokenId)
                             throws java.lang.NoSuchMethodException,
                                    java.io.IOException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    java.lang.reflect.InvocationTargetException,
                                    java.lang.ClassNotFoundException
        Get a URI(Uniform Resource Identifier) for a given token ID.
        Parameters:
        tokenId - The token id(hex string)
        Returns:
        String
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • uri

        public java.lang.String uri​(java.math.BigInteger tokenId)
                             throws java.lang.NoSuchMethodException,
                                    java.io.IOException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    java.lang.reflect.InvocationTargetException,
                                    java.lang.ClassNotFoundException
        Get a URI(Uniform Resource Identifier) for a given token ID.
        Parameters:
        tokenId - The token id(integer)
        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,
                                              java.lang.String tokenId)
                                       throws java.lang.NoSuchMethodException,
                                              java.io.IOException,
                                              java.lang.InstantiationException,
                                              java.lang.IllegalAccessException,
                                              java.lang.reflect.InvocationTargetException,
                                              java.lang.ClassNotFoundException
        Get the balance of an account's tokens.
        Parameters:
        account - The address of the token holder.
        tokenId - The ID of the token(hex string).
        Returns:
        BigInteger
        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,
                                              java.math.BigInteger tokenId)
                                       throws java.lang.NoSuchMethodException,
                                              java.io.IOException,
                                              java.lang.InstantiationException,
                                              java.lang.IllegalAccessException,
                                              java.lang.reflect.InvocationTargetException,
                                              java.lang.ClassNotFoundException
        Get the balance of an account's tokens
        Parameters:
        account - The address of the token holder.
        tokenId - The ID of the token(integer).
        Returns:
        BigInteger
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • balanceOfBatch

        public java.util.List<java.math.BigInteger> balanceOfBatch​(java.lang.String[] accounts,
                                                                   java.lang.String[] tokenIds)
                                                            throws java.lang.NoSuchMethodException,
                                                                   java.io.IOException,
                                                                   java.lang.InstantiationException,
                                                                   java.lang.IllegalAccessException,
                                                                   java.lang.reflect.InvocationTargetException,
                                                                   java.lang.ClassNotFoundException
        Get the balance of multiple account / token pairs.
        Parameters:
        accounts - The addresses of the token holders.
        tokenIds - IDs of the tokens(hex string)
        Returns:
        List
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • balanceOfBatch

        public java.util.List<java.math.BigInteger> balanceOfBatch​(java.lang.String[] accounts,
                                                                   java.math.BigInteger[] tokenIds)
                                                            throws java.lang.NoSuchMethodException,
                                                                   java.io.IOException,
                                                                   java.lang.InstantiationException,
                                                                   java.lang.IllegalAccessException,
                                                                   java.lang.reflect.InvocationTargetException,
                                                                   java.lang.ClassNotFoundException
        Get the balance of multiple account / token pairs.
        Parameters:
        accounts - The addresses of the token holders.
        tokenIds - IDs of the tokens(integer)
        Returns:
        List
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.lang.String tokenId,
                                                                          java.math.BigInteger value)
                                                                   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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        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:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(hex string).
        value - Transfer amount.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.math.BigInteger tokenId,
                                                                          java.math.BigInteger value)
                                                                   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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        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:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(integer)
        value - Transfer amount.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.lang.String tokenId,
                                                                          java.math.BigInteger value,
                                                                          java.lang.String data)
                                                                   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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        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:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(hex string).
        value - Transfer amount.
        data - Additional data with no specified format.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.math.BigInteger tokenId,
                                                                          java.math.BigInteger value,
                                                                          java.lang.String data)
                                                                   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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        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:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(integer)
        value - Transfer amount.
        data - Additional data with no specified format.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.lang.String tokenId,
                                                                          java.math.BigInteger value,
                                                                          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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(hex string)
        value - Transfer amount.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.math.BigInteger tokenId,
                                                                          java.math.BigInteger value,
                                                                          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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(integer)
        value - Transfer amount.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.lang.String tokenId,
                                                                          java.math.BigInteger value,
                                                                          java.lang.String data,
                                                                          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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(hex string)
        value - Transfer amount.
        data - Additional data with no specified format.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeTransferFrom

        public TransactionReceipt.TransactionReceiptData safeTransferFrom​(java.lang.String from,
                                                                          java.lang.String to,
                                                                          java.math.BigInteger tokenId,
                                                                          java.math.BigInteger value,
                                                                          java.lang.String data,
                                                                          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
        Transfers value amount of an 'id' from the 'from' address to the 'to' address specified.

        Caller must be approved to manage the tokens being transferred out of the 'from' account.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenId - ID of the token type(integer)
        value - Transfer amount.
        data - Additional data with no specified format.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.lang.String[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, String, BigInteger, String).

        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:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(hex string)
        amounts - The amount of transfer corresponding to each token ID
        data - Additional data with no specified format.
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.math.BigInteger[] tokenIds,
                                                                               java.math.BigInteger[] amounts)
                                                                        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
        Batch-operation version of safeTransferFrom(String, String, BigInteger, BigInteger, String)

        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:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(integer)
        amounts - The amount of transfer corresponding to each token ID
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.lang.String[] tokenIds,
                                                                               java.math.BigInteger[] amounts)
                                                                        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
        Batch-operation version of safeTransferFrom(String, String, String, BigInteger, String).

        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:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(hex string)
        amounts - The amount of transfer corresponding to each token ID
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.math.BigInteger[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, BigInteger, BigInteger, String)

        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:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(integer)
        amounts - The amount of transfer corresponding to each token ID
        data - Additional data with no specified format.
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.lang.String[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, String, BigInteger, String, SendOptions).

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(hex string)
        amounts - The amount of transfer corresponding to each token ID
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.math.BigInteger[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, BigInteger, BigInteger, String, SendOptions).

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(integer)
        amounts - The amount of transfer corresponding to each token ID
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.lang.String[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, String, BigInteger, String, SendOptions).

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(hex string)
        amounts - The amount of transfer corresponding to each token ID
        data - Additional data with no specified format.
        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
      • safeBatchTransferFrom

        public TransactionReceipt.TransactionReceiptData safeBatchTransferFrom​(java.lang.String from,
                                                                               java.lang.String to,
                                                                               java.math.BigInteger[] tokenIds,
                                                                               java.math.BigInteger[] amounts,
                                                                               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
        Batch-operation version of safeTransferFrom(String, String, BigInteger, BigInteger, String, SendOptions).

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        from - Source address.
        to - Target address.
        tokenIds - IDs of token type(integer)
        amounts - The amount of transfer corresponding to each token ID
        data - Additional data with no specified format.
        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
      • setApprovalForAll

        public TransactionReceipt.TransactionReceiptData setApprovalForAll​(java.lang.String operator,
                                                                           boolean approved)
                                                                    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
        Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.

        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:
        operator - The address to add to the set of authorized operators.
        approved - True if the operator is approved, false to revoke approval
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • setApprovalForAll

        public TransactionReceipt.TransactionReceiptData setApprovalForAll​(java.lang.String operator,
                                                                           boolean approved,
                                                                           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
        Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        operator - The address to add to the set of authorized operators.
        approved - True if the operator is approved, false to revoke approval
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • isApprovedForAll

        public boolean isApprovedForAll​(java.lang.String owner,
                                        java.lang.String operator)
                                 throws java.lang.NoSuchMethodException,
                                        java.io.IOException,
                                        java.lang.InstantiationException,
                                        java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException,
                                        java.lang.ClassNotFoundException
        Get the approval status of an operator for a given owner.
        Parameters:
        owner - The address of the token owner.
        operator - The address of the authorized operator.
        Returns:
        boolean
        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​(java.lang.String tokenId)
                                         throws java.lang.NoSuchMethodException,
                                                java.io.IOException,
                                                java.lang.InstantiationException,
                                                java.lang.IllegalAccessException,
                                                java.lang.reflect.InvocationTargetException,
                                                java.lang.ClassNotFoundException
        Get the total supply of the token type requested.
        Parameters:
        tokenId - The ID of the token.(hex string)
        Returns:
        BigInteger
        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​(java.math.BigInteger tokenId)
                                         throws java.lang.NoSuchMethodException,
                                                java.io.IOException,
                                                java.lang.InstantiationException,
                                                java.lang.IllegalAccessException,
                                                java.lang.reflect.InvocationTargetException,
                                                java.lang.ClassNotFoundException
        Get the total supply of the token type requested.
        Parameters:
        tokenId - The ID of the token.(integer)
        Returns:
        BigInteger
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.lang.String tokenId,
                                                                java.math.BigInteger initialSupply)
                                                         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
        Creates a new token type and assigns initialSupply to the minter.

        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:
        tokenId - The token id to create.(hex string)
        initialSupply - The amount of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.math.BigInteger tokenId,
                                                                java.math.BigInteger initialSupply)
                                                         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
        Creates a new token type and assigns initialSupply to the minter.

        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:
        tokenId - The token id to create.(integer)
        initialSupply - The amount of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.lang.String tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                java.lang.String uri)
                                                         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
        Creates a new token type and assigns initialSupply to the minter.

        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:
        tokenId - The token id to create.(hex string)
        initialSupply - The amount of tokens being minted.
        uri - The token URI of the created token.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.math.BigInteger tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                java.lang.String uri)
                                                         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
        Creates a new token type and assigns initialSupply to the minter.

        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:
        tokenId - The token id to create.(integer)
        initialSupply - The amount of tokens being minted.
        uri - The token URI of the created token.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.lang.String tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                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
        Creates a new token type and assigns initialSupply to the minter.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - The token id to create.(hex string)
        initialSupply - The amount of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.math.BigInteger tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                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
        Creates a new token type and assigns initialSupply to the minter.

        Parameters:
        tokenId - The token id to create.(integer)
        initialSupply - The amount of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.lang.String tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                java.lang.String uri,
                                                                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
        Creates a new token type and assigns initialSupply to the minter.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - The token id to create.(hex string)
        initialSupply - The amount of tokens being minted.
        uri - The token URI of the created token.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • create

        public TransactionReceipt.TransactionReceiptData create​(java.math.BigInteger tokenId,
                                                                java.math.BigInteger initialSupply,
                                                                java.lang.String uri,
                                                                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
        Creates a new token type and assigns initialSupply to the minter.

        Parameters:
        tokenId - The token id to create.(integer)
        initialSupply - The amount of tokens being minted.
        uri - The token URI of the created token.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String to,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger value)
                                                       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
        Mints token of the specific token type.

        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:
        to - The address that will receive the minted tokens.
        tokenId - The token id to mint.(hex string)
        value - The quantity of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String to,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger value)
                                                       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
        Mints token of the specific token type.

        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:
        to - The address that will receive the minted tokens.
        tokenId - The token id to mint.(integer)
        value - The quantity of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String to,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger value,
                                                              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
        Mints token of the specific token type.

        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:
        to - The address that will receive the minted tokens.
        tokenId - The token id to mint.(hex string)
        value - The quantity of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String to,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger value,
                                                              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
        Mints token of the specific token type.

        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:
        to - The address that will receive the minted tokens.
        tokenId - The token id to mint.(integer)
        value - The quantity of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String[] toList,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger[] values)
                                                       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
        Mints tokens of the specific token type.

        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:
        toList - The list of addresses that will receive the minted tokens.
        tokenId - The token id to mint.(hex string)
        values - The list of quantities of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String[] toList,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger[] values)
                                                       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
        Mints tokens of the specific token type.

        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:
        toList - The list of addresses that will receive the minted tokens.
        tokenId - The token id to mint.(integer)
        values - The list of quantities of tokens being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String[] toList,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger[] values,
                                                              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
        Mints tokens of the specific token type.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        toList - The list of addresses that will receive the minted tokens.
        tokenId - The token id to mint.(hex string)
        values - The list of quantities of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mint

        public TransactionReceipt.TransactionReceiptData mint​(java.lang.String[] toList,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger[] values,
                                                              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
        Mints tokens of the specific token type.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        toList - The list of addresses that will receive the minted tokens.
        tokenId - The token id to mint.(integer)
        values - The list of quantities of tokens being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mintBatch

        public TransactionReceipt.TransactionReceiptData mintBatch​(java.lang.String to,
                                                                   java.lang.String[] tokenIds,
                                                                   java.math.BigInteger[] values)
                                                            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
        Mints multiple KIP-37 tokens of the specific token types. 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:
        to - The address that will receive the minted tokens.
        tokenIds - The list of the token ids to mint.(hex string)
        values - The list of quantities of token being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mintBatch

        public TransactionReceipt.TransactionReceiptData mintBatch​(java.lang.String to,
                                                                   java.math.BigInteger[] tokenIds,
                                                                   java.math.BigInteger[] values)
                                                            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
        Mints multiple KIP-37 tokens of the specific token types. 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:
        to - The address that will receive the minted tokens.
        tokenIds - The list of the token ids to mint.(integer)
        values - The list of quantities of token being minted.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mintBatch

        public TransactionReceipt.TransactionReceiptData mintBatch​(java.lang.String to,
                                                                   java.lang.String[] tokenIds,
                                                                   java.math.BigInteger[] values,
                                                                   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
        Mints multiple KIP-37 tokens of the specific token types.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        to - The address that will receive the minted tokens.
        tokenIds - The list of the token ids to mint.(hex string)
        values - The list of quantities of token being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • mintBatch

        public TransactionReceipt.TransactionReceiptData mintBatch​(java.lang.String to,
                                                                   java.math.BigInteger[] tokenIds,
                                                                   java.math.BigInteger[] values,
                                                                   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
        Mints multiple KIP-37 tokens of the specific token types.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        to - The address that will receive the minted tokens.
        tokenIds - The list of the token ids to mint.(integer)
        values - The list of quantities of token being minted.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • 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
        Checks if specific account has the Minter role.
        Parameters:
        account - The address to check that has Minter role
        Returns:
        boolean
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • 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
        Adds an account as a minter that has the permission of MinterRole and can mint.

        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 address to add minter role.
        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
        Adds an account as a minter that has the permission of MinterRole and can mint.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        account - The account address to add minter role.
        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
        Renounces privilege of MinterRole from an account.

        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().

        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
        Renounces privilege of MinterRole from an account.

        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.lang.String address,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger value)
                                                       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
        Burns a token.

        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:
        address - The account that owns tokens.
        tokenId - The token id to burn.(hex string)
        value - The token amount to burn.
        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.lang.String address,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger value)
                                                       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
        Burns a token.

        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:
        address - The account that owns tokens.
        tokenId - The token id to burn.(integer)
        value - The token amount to burn.
        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.lang.String address,
                                                              java.lang.String tokenId,
                                                              java.math.BigInteger value,
                                                              SendOptions sendParam)
                                                       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
        Burns a token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        address - The account that owns tokens.
        tokenId - The token id to burn.(hex string)
        value - The token amount to burn.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • burn

        public TransactionReceipt.TransactionReceiptData burn​(java.lang.String address,
                                                              java.math.BigInteger tokenId,
                                                              java.math.BigInteger value,
                                                              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
        Burns a token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        address - The account that owns tokens.
        tokenId - The token id to burn.(integer)
        value - The token amount to burn.
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • burnBatch

        public TransactionReceipt.TransactionReceiptData burnBatch​(java.lang.String address,
                                                                   java.lang.String[] tokenIds,
                                                                   java.math.BigInteger[] values)
                                                            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
        Burns multiple KIP37 tokens.

        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:
        address - The account that owns tokens.
        tokenIds - The list of the token ids to burn.(hex string)
        values - The list of the token amounts to burn.
        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
      • burnBatch

        public TransactionReceipt.TransactionReceiptData burnBatch​(java.lang.String address,
                                                                   java.math.BigInteger[] tokenIds,
                                                                   java.math.BigInteger[] values)
                                                            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
        Burns multiple KIP37 tokens.

        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:
        address - The account that owns tokens.
        tokenIds - The list of the token ids to burn.(integer)
        values - The list of the token amounts to burn.
        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
      • burnBatch

        public TransactionReceipt.TransactionReceiptData burnBatch​(java.lang.String address,
                                                                   java.lang.String[] tokenIds,
                                                                   java.math.BigInteger[] values,
                                                                   SendOptions sendParam)
                                                            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
        Burns multiple KIP37 tokens.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        address - The account that owns tokens.
        tokenIds - The list of the token ids to burn.(hex string)
        values - The list of the token amounts to burn.
        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
      • burnBatch

        public TransactionReceipt.TransactionReceiptData burnBatch​(java.lang.String address,
                                                                   java.math.BigInteger[] tokenIds,
                                                                   java.math.BigInteger[] values,
                                                                   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
        Burns multiple KIP37 tokens.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        address - The account that owns tokens.
        tokenIds - The list of the token ids to burn.(integer)
        values - The list of the token amounts to burn.
        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
      • paused

        public boolean paused()
                       throws java.lang.NoSuchMethodException,
                              java.io.IOException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.ClassNotFoundException
        Check if contract has been paused state.
        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​(java.lang.String tokenId)
                       throws java.lang.NoSuchMethodException,
                              java.io.IOException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.ClassNotFoundException
        Check if token has been paused state.
        Parameters:
        tokenId - The token ID.(hex string)
        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​(java.math.BigInteger tokenId)
                       throws java.lang.NoSuchMethodException,
                              java.io.IOException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.ClassNotFoundException
        Check if token has been paused state.
        Parameters:
        tokenId - The token ID.(integer)
        Returns:
        boolean
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • 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
        Pause a 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().

        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • pause

        public TransactionReceipt.TransactionReceiptData pause​(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
        Pause a contract.

        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.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
        org.web3j.protocol.exceptions.TransactionException
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause()
                                                          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
        Unpauses a 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().

        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause​(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
        Unpauses a contract.

        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.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
        org.web3j.protocol.exceptions.TransactionException
      • pause

        public TransactionReceipt.TransactionReceiptData pause​(java.lang.String tokenId)
                                                        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
        Pauses a specific token.

        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:
        tokenId - The token id to pause(hex string)
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • pause

        public TransactionReceipt.TransactionReceiptData pause​(java.math.BigInteger tokenId)
                                                        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
        Pauses a specific token.

        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:
        tokenId - The token id to pause(integer)
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • pause

        public TransactionReceipt.TransactionReceiptData pause​(java.lang.String tokenId,
                                                               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
        Pauses a specific token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - The token id to pause(hex string)
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • pause

        public TransactionReceipt.TransactionReceiptData pause​(java.math.BigInteger tokenId,
                                                               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
        Pauses a specific token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - The token id to pause(integer)
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause​(java.lang.String tokenId)
                                                          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
        Unpauses a specific token.

        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:
        tokenId - he token id to unpause(hex string)
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause​(java.math.BigInteger tokenId)
                                                          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
        Unpauses a specific token.

        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:
        tokenId - he token id to unpause(integer)
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause​(java.lang.String tokenId,
                                                                 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
        Unpauses a specific token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - he token id to unpause(hex string)
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • unpause

        public TransactionReceipt.TransactionReceiptData unpause​(java.math.BigInteger tokenId,
                                                                 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
        Unpauses a specific token.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        tokenId - he token id to unpause(integer)
        sendParam - A SendOptions need to execute contract's method.
        Returns:
        TransactionReceipt.TransactionReceiptData
        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
      • 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
        Checks if specific account has Pauser role.
        Parameters:
        account - The account address to check that has Pauser role.
        Returns:
        boolean
        Throws:
        java.lang.NoSuchMethodException
        java.io.IOException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.lang.ClassNotFoundException
      • addPauser

        public TransactionReceipt.TransactionReceiptData addPauser​(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
        Adds an account as a pauser that has the permission of PauserRole and can pause.

        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 address to add Pauser role.
        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
        Adds an account as a pauser that has the permission of PauserRole and can pause.

        If a gas value in sendOptions has null, it will automatically set gas value through estimateGas().

        Parameters:
        account - The account address to add Pauser role.
        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
        Renounces privilege of PauserRole from an account.

        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().

        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
        Renounces privilege of PauserRole from an account.

        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().

        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
      • supportsInterface

        public boolean supportsInterface​(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