Read operations

Read a MEM function state

MEM functions are stateful. To read the state, you can simply make a GET request to the base API endpoint.

Using curl

curl -X GET ""

Using Axios

async function readState() {
  try {
    const function_id = "...";
    const base_endpoint = "";

    const state = (await axios.get(`${base_endpoint}/${function_id}`))?.data;

    return state;
  } catch (error) {

Last updated ยฉ 2023