scriptPubKey is technically a locking script which is placed on the output of any Bitcoin-based transactions requiring special conditions to be met for the user to spend his/her Bitcoins.

BY Best Interview Question ON 09 Sep 2020