Closed theanmolsharma closed 6 months ago
For all other script types, the function should throw an error.
This seems like an Option
case than a Error
case, as most other script types won't hold SPs. Is there a way to do Options in JS?
For all other script types, the function should throw an error.
This seems like an
Option
case than aError
case, as most other script types won't hold SPs. Is there a way to do Options in JS?
I think we can set the return type to Buffer | null
Add the following function to
Transaction
classThis function should extract the public key from the output
script
. The following output script types contain public key inscript
:For all other script types, the function should return
null
.