Skip to content

State Machine

This page details the state machine that a BuyNow undergoes during the trading process.

States

Once a BuyNow is created it can be in several states. These states may be queried by the API; your application may opt to do so whenever sync is needed.

This is the complete state machine.

BuyNow States Machine

An asset is free to be put for sale, as long as the it is not involved in an ongoing BuyNow, basically, as long as it is not any any BuyNow in STARTED or ASSET_TRANSFERRING state.

Example of messages shown in each state

To help illustrate the meaning of each state, examples of messages that could be displayed to users for each state are provided below. For each state, the following user roles are considered: seller, buyer and spectator. The latter refers to users who do not participate in the trade process being visualized.

Example of messages for ongoing BuyNows:

BuyNow Ongoing

Example of messages for ended BuyNows:

BuyNow Ended