deleteData(contract, sender, dataKey, currency)
const contract = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const sender = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
const dataKey = "server_access_record"
const currencyId = "MCC";
const deleteDataOperation = mitum.storage.deleteData(contract, sender, dataKey, currencyId);
console.log(deleteDataOperation);
// output
Operation {
id: 'mitum',
fact: DeleteDataFact {
hint: Hint { s: 'mitum-storage-delete-data-operation-fact' },
token: Token { s: '2024-08-22 06:27:40.212 +0000 UTC' },
_hash: <Buffer e1 35 26 5c 16 5c 73 28 91 95 12 c2 aa d0 22 54 fc 79 e3 dd 60 ff c4 60 18 ee a8 ee 85 f4 62 44>,
sender: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
contract: Address {
s: '0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca',
type: 'mitum'
},
currency: CurrencyID { s: 'MCC' },
dataKey: LongString { s: 'server_access_record' }
},
hint: Hint { s: 'mitum-storage-delete-data-operation' },
_factSigns: [],
_hash: <Buffer >
}PreviousupdateMultiData(contracts, sender, dataKeys, dataValues, currency)NextgetDataHistory(contract, dataKey, limit?, offset?, reverse?)
Last updated