DotNetLightning


ShutdownScriptPubKey Type

destination script pubkey when closing channel in a cooperative way. typesafe wrapper for the raw scriptpubkey.

Record fields

Record Field Description

ShutdownScript

Full Usage: ShutdownScript

Field type: Script
Field type: Script

Instance members

Instance member Description

this.ScriptPubKey

Full Usage: this.ScriptPubKey

Returns: Script
Returns: Script

this.ToBytes

Full Usage: this.ToBytes

Returns: byte array
Returns: byte array

Static members

Static member Description

ShutdownScriptPubKey.FromPubKeyP2pkh(pubKey)

Full Usage: ShutdownScriptPubKey.FromPubKeyP2pkh(pubKey)

Parameters:
Returns: ShutdownScriptPubKey
pubKey : PubKey
Returns: ShutdownScriptPubKey

ShutdownScriptPubKey.FromPubKeyP2wpkh(pubKey)

Full Usage: ShutdownScriptPubKey.FromPubKeyP2wpkh(pubKey)

Parameters:
Returns: ShutdownScriptPubKey
pubKey : PubKey
Returns: ShutdownScriptPubKey

ShutdownScriptPubKey.FromScriptP2sh(script)

Full Usage: ShutdownScriptPubKey.FromScriptP2sh(script)

Parameters:
Returns: ShutdownScriptPubKey
script : Script
Returns: ShutdownScriptPubKey

ShutdownScriptPubKey.FromScriptP2wsh(script)

Full Usage: ShutdownScriptPubKey.FromScriptP2wsh(script)

Parameters:
Returns: ShutdownScriptPubKey
script : Script
Returns: ShutdownScriptPubKey

ShutdownScriptPubKey.TryFromScript(scriptPubKey)

Full Usage: ShutdownScriptPubKey.TryFromScript(scriptPubKey)

Parameters:
Returns: Result<ShutdownScriptPubKey, string>
scriptPubKey : Script
Returns: Result<ShutdownScriptPubKey, string>