tx.assertpaymentsaddress
Home > @blaze-cardano/tx > assertPaymentsAddress
assertPaymentsAddress() function
Asserts that the given address is a valid payment address.
Signature:
assertPaymentsAddress: (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 a script hash.