updateData(contract, sender, dataKey, dataValue, currency)
const contract = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const sender = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
const dataKey = "server_access_record"
const dataValue = "2024-08-21 10:20:32 - Alex entered the main office through the front entrance"
const currencyId = "MCC";
const updateDataOperation = mitum.storage.updateData(contract, sender, dataKey, dataValue, currencyId);
console.log(updateDataOperation);
// output
BaseOperation {
id: 'mitum',
fact: UpdateDataFact {
hint: Hint { s: 'mitum-storage-update-data-operation-fact' },
token: Token { s: '2026-02-19 05:38:13.049 +0000 UTC' },
_hash: <Buffer be 4f ed fd 33 d9 d6 60 b9 76 11 2c 9b 1f 52 99 50 ad eb 78 0a b0 0b 12 b5 32 fb 27 18 83 9d aa>,
sender: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
items: [ [UpdateDataItem] ]
},
hint: Hint { s: 'mitum-storage-update-data-operation' },
_factSigns: [],
_hash: <Buffer >
}PreviousgetData(contract, dataKey)NextupdateMultiData(contracts, sender, dataKeys, dataValues, currency)
Last updated