Create sale order

Note:

The following functionality can only be executed by a carbon trading eligible entity. That is by a entity that is a carbon footprint account, project owner account or a trader account.

If a user has some carbon credit holdings then he/she can choose to create a sale order for them. This can be done by the following functionality create_sale_order(batch_hash, credit_price, credit_amount). By doing so the user will need to specify the batch for which the sale order is being created, as well as the price at which one carbon credit is being sold and how many carbon credits are being sold. When the user creates this order, the credits that are connected to it will be flagged as unavailable until the order is closed or completed.

Once this is done, any other carbon trading eligible user can sing off on the sale order and buy the carbon credits at the specified price. If the order is not closed/completed within a given time period it will be automatically closed for any kind of transaction.

Last updated