What are the requirements for a ScriptPubKey to be valid?

2

Can they have arbitrary scripts, as long as they are under a certain length?

user18688

Posted 2014-08-11T20:28:19.120

Reputation: 41

Answers

3

In theory they can have any arbitrary script. In practice, only a handful of scripts are considered standard and will be relayed on the network: pay to pubkey, pay to pubkey hash, null data (op_return), pay to script hash and raw multisig.

Matthieu

Posted 2014-08-11T20:28:19.120

Reputation: 866