For the complete documentation index, see llms.txt. This page is also available as Markdown.

setExtendedData

Used to set extended data for the current MarsApp, providing up to 1MB of independent storage space for each application.

Tip:

  • Each call will overwrite the previously written data. To clear data, simply set an empty object or empty string

  • Recommended for small configuration data, account information, preference settings, etc.

Request Parameters:

Parameter Name
Type
Required
Description

extend

Object | String

Yes

Arbitrary extended data to store.

Response Parameters: None

Call Example:

example.js
let payload = {
  extend: {
    xxxxx: "1Cg...Qij"
  }
};

const response = await relayx.setExtendedData(payload);
if (response.code == 200) {
  console.log("Set extended data successfully");
}

Last updated