StateSet Commerce Network provides a Cosmos SDK based blockchain network for managing orders and payments for the StateSet Commerce platform. This guide will walk you through the steps to get started with creating Orders on the StateSet Commerce Network.
StateSet Commerce Network provides an API for creating Orders. The API is available at https://api.stateset.networkAn order is a customer’s completed request to purchase one or more products from a seller. An order is created when a customer completes the checkout process.The Order is braodcasted to the StateSet Commerce Network and the Order Module maintains the state of the Order.The States of an Order are:
The x/order module implements an order state machine using the following messages:
MsgCreateOrder
MsgFulfillOrder
MsgCancelOrder
Copy
Ask AI
// Msg defines the order Msg service.service Msg { // MsgCreateOrder defines a method for creating an order rpc Create(MsgCreateOrder) returns (MsgCreateResponse); // MsgFulfillOrder defines a method for fulfilling an order rpc Fulfill(MsgFulfillOrder) returns (MsgFulfillResponse); // MsgCancelOrder defines a method for cancelling an order rpc Cancel(MsgCancelOrder) returns (MsgCancelResponse);}
Use these messages to make state changes on the network