Skip to main content

Stream Statuses

A Sablier stream can have one of five distinct statuses:

StatusDescription
PENDINGThe has been created, but hasn't yet started, it's in a pending state.
STREAMINGThe stream has been created and it is active, assets are being streamed.
SETTLEDAll assets have been streamed, the recipient is due to withdraw them.
CANCELEDThe stream has been canceled, remaining assets (those that were streamed before the cancellation) await for the recipient's withdrawal.
DEPLETEDThe stream has been depleted, meaning all assets have been withdrawn.

What about null streams?

Passing a stream id that does reference any created stream would result in a revert.

What to do with a stream status?

Knowing the status of a stream can inform your decision making. For example, if a stream is canceled, you know that you can't cancel it again. Or, if a stream is depleted, you know that you can't withdraw any more assets from it.