🏁findDataWithValue
You can use this command to find data which has been saved block network.
const result = await Transaction.findDataWithValue(<address:Base58>, <key:string>, <value:string>, <skip:integer>, <limit:integer>)
From: Sender Address
To: Receipt Address
Key: Get data by key property
Value: Get data by value property
Skip : Skip Relevant data records
Limit: Set limitation of records
Sample :
return Transaction.findDataWithValue('PRTMQbunYS1CxSs5i59CrR4ot2WUThT9JvsKvLYDfwF','ratio','1.2',0,100);
Response:
[
{"addedAssetID":"10007",
"addedLiq":"100",
"expireDate":"2024-01-20T10:49:58.396Z",
"ratio":"1.2"}
]
Last updated