Skip to main content
Version: 0.2.38

sdk.assertlockaddress

Home > @blaze-cardano/sdk > assertLockAddress

assertLockAddress() function

Asserts that the given address is a valid lock address.

Signature:

assertLockAddress: (address: Address) => never | void

Parameters

Parameter

Type

Description

address

Address

The address to be checked.

Returns:

never | void

Exceptions

{Error} If the address has no payment part or if the payment credential is not a script hash.