StateSet Orders Quickstart
Getting started with Orders on the StateSet Commerce Network
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
The x/order
module implements an order state machine using the following messages:
- MsgCreateOrder
- MsgFulfillOrder
- MsgCancelOrder
Create an Order Client
Query an Order
Create a new page called index.js
in the pages/order/[id]
directory.