Skip to content

address_from_script_public_key (Func)

Extract the address from a script public key.

PARAMETER DESCRIPTION
script_public_key

The script to extract the address from.

TYPE: ScriptPublicKey

network

The network type for address encoding.

TYPE: str | NetworkType

RETURNS DESCRIPTION
Address

The extracted address.

TYPE: Address

RAISES DESCRIPTION
Exception

If address extraction fails.