src/main/java/com/wavesplatform/wavesj/Node.java
public String setScript(PrivateKeyAccount from, String script, byte chainId, long fee) throws IOException {
        return send(Transactions.makeScriptTx(from, compileScript(script), chainId, fee));
    }
public String setScript(PrivateKeyAccount from, String script, byte chainId, long fee) throws IOException {
        return send(Transactions.makeScriptTx(from, compileScript(script), chainId, fee));
    }
public String setScript ( PrivateKeyAccount from , String script , byte chainId , long fee ) throws IOException { return send ( Transactions . makeScriptTx ( from , compileScript ( script ) , chainId , fee ) ) ; }
Sets a validating script for an account.

@param from    the account
@param script  script text
@param chainId chain ID
@param fee     object fee
@return object ID
@throws IOException if an error occurs
@see Account#MAINNET
@see Account#TESTNET
Sets a validating script for an account .