As we know, Bitcoin has something called Script, that could implement some simple form of smart contract. It could enable us to use signed but not propagated transactions to implement off-chain systems, like lightening network.
Now the question is, is there a similar capability in Ethereum transactions? Instead of calling a function of a smart contract, can we execute some form of scripts to validate the transaction to achieve same benefits?
It seems that the question is asked so unclear. So I'll try to ask it another way.
In Ethereum, we can call a contract by a transaction. So first we have to deploy a contract into the blockchain, and then call it using another transaction.
Now the question is: Is it possible to execute some codes that is not deployed to the blockchain, but is stored inside the transaction itself?
As I said, this is possible in Bitcoin, using the Script of the transaction, that enables a lot of exciting features. I'm trying to find a way to do the same in Ethereum.
I hope it is clear this time.