sdk.txbuilder.setvaliduntil
Home > @blaze-cardano/sdk > TxBuilder > setValidUntil
TxBuilder.setValidUntil() method
Specifies the exact time when the transaction expires.
Signature:
setValidUntil(validUntil: Slot): TxBuilder;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| validUntil | The slot until which the transaction is valid. | 
Returns:
{TxBuilder} The instance of this TxBuilder for chaining.
Exceptions
{Error} If the time to live is already set.