Overview
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.The Order Module
StateSet Commerce Network provides an API for creating Orders. The API is available at https://api.stateset.network An 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:UNFULFILLED
FULFILLED
CANCELLED
Cosmos SDK Modules
To learn more about Modules, check out this introduction.
Order Messages
Thex/order
module implements an order state machine using the following messages:
- MsgCreateOrder
- MsgFulfillOrder
- MsgCancelOrder
Use these messages to make state changes on the network
Create an Order Client
Query an Order
Create a new page calledindex.js
in the pages/order/[id]
directory.