const result=await Transaction.pushData(<MyObjectStringFormat:string>,<address:Base58>);
It has been syntax usage explained above. And we can make a sample below.
const myData=[
{key:'myKey1',value:'myValue Data',enc:0},
{key:'myKey2',value:'myValue Data2',enc:0},
{key:'myKey3',value:'mySecretValue',enc:1},
{key:'mySecretKey',value:'mySecretValue2',enc:2}
];
const result=await Transaction.pushData(JSON.stringify(myData),<address>);
As we see that above sample. user can store an array in Pirichain network though PCse.
{
"executedResult":{},
"error":0,
"tx":"a3449d13cc98521e2711f4f033d99f93876c507739774986e08f0574a89e7d9d",
"sign":"3045022054d25f4efa52bcf785588c5ad49f60d06955f01476a7de41bd5c6a4893d980e1022100d214cb6a377813b392847532ebaa85bc7f7ca9d99ab12003be5471471e3b3a7d",
"timeStamp":1705185353375
}