Get data feed

Example

1
const params = {
2
oracles: [
3
'I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT',
4
'BVVJ2K7ENPZZ3VYZFWQWK7ISPCATFIW3'
5
],
6
feed_name: 'timestamp',
7
// feed_value: string | number | boolean;
8
// min_mci: number;
9
// ifseveral: 'abort' | 'last';
10
// what: 'unit' | 'value';
11
// type: 'string' | 'auto';
12
// ifnone: string | number | boolean;
13
};
14
client.api.getDataFeed(params, function(err, result) {
15
if (err) return console.error(err);
16
console.log(result);
17
});
Copied!

Returns

1
1618629895590
Copied!

Learn more

Last modified 6mo ago
Copy link