How to add an address to a CheckLockTimeValue (CLTV) transaction output using bitcore-lib

I am using bitcore-lib to create transactions. I can add an output with CLTV to the transaction but am unable to add an output address to it. This is my code (typescript/node): const lockScript = Script.empty() .add(blockAsBuffer) .add(177) // OP_CLTV .add(117) // OP_DROP .add(Script.buildPublicKeyHashOut(this.privateKeyAddress)); const transaction = new Transaction(); transaction.from(unspentOutputs); // Following is where I’m…

Using CLTV can I freeze some funds from a wallet, and make them available, in a single transaction?

For my scenarios, I want freeze some funds from my wallet for some given time/block and then make that amount spendable in a single transaction. As I understand so far, I can do it using 2 transactions with CheckLockTimeVerify (CLTV) op_code as follows: Create a transaction with an output that has the CLTV op_code to…