# PSce Accumulator Object

PSDATA constant data Acc. Object has been stored each PSce primitive or JSON based datas. And ***we can say that Each PSce can hold its own data***.

Developers can model their needs data with PSDATA.&#x20;

```javascript
async function putScenarioBaseData(param,val)
{
    PSDATA[param]=val;
    await Map.saveMap(JSON.stringify(PSDATA));
}

 async function getScenarioBasedData(param)
{
    return PSDATA[param];
}
```

If we give an example above function

```javascript
async function init()
{
    PSDATA["myKey"]="myValue";
    await Map.saveMap(JSON.stringify(PSDATA));
    // return a transactionHash
}
async function getMyData()
{
    return PSDATA["myKey"];
    // returns "myValue";
}
```

When user execute set function ,system will start to create a new transaction to deliver other nodes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartscenarios.pirichain.com/psce-accumulator-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
