Skip to main content
Version: 0.13.0

tx.assertlockaddress

Home > @blaze-cardano/tx > 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.