Definition template
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.

Returns

Returns the unit hash.

Example

This template depends on two variables: $address and $ts.
1
const params = ['and', [
2
['address', '$address'],
3
['in data feed', [['MO7ZZIU5VXHRZGGHVSZWLWL64IEND5K2'], 'timestamp', '>=', '$ts']]
4
]];
5
6
client.post.definitionTemplate(params, wif, function(err, result) {
7
if (err) return console.error(err);
8
console.log(result);
9
});
Copied!

Learn more

Last modified 7mo ago
Copy link