* Get P2SH hash if present. * @returns {Buffer|null}
()
| 1990 | */ |
| 1991 | |
| 1992 | getScripthash() { |
| 1993 | if (!this.isScripthash()) |
| 1994 | return null; |
| 1995 | |
| 1996 | return this.getData(1); |
| 1997 | } |
| 1998 | |
| 1999 | /** |
| 2000 | * Test whether the output script is nulldata/opreturn. |
no test coverage detected