Last updated 5 years ago
Returns the unit hash.
This template depends on two variables: $address and $ts.
$address
$ts
"21.1.4. Definition templates" (page 27)
The template looks like normal definition but may include references to variables in the syntax @param1, @param2. Definition templates enable code reuse. They may in turn reference other templates.
const params = ['and', [ ['address', '$address'], ['in data feed', [['MO7ZZIU5VXHRZGGHVSZWLWL64IEND5K2'], 'timestamp', '>=', '$ts']] ]]; client.post.definitionTemplate(params, wif, function(err, result) { console.log(result); });