API - Relay

This is the API for the decentralized loyalty system.

Token and Point Units

Tokens and points are represented as strings with 18 decimal places. For example, 1 Point is represented as "100000000000000000000".

Response

Responses are composed of three parts: code, data, and error. Under normal conditions, code is 0 and the data field is present. If an error occurs, the code will not be 0, and you can refer to the error field for details.

Last updated