@@ -139,7 +139,7 @@ void checkAPI() {
139
139
// }
140
140
// ]
141
141
// }
142
- const auto blocksResponse = connection.api .blocks .all (1 , 1 );
142
+ const auto blocksResponse = connection.api .blocks .all (" ?limit=1&page=1 " );
143
143
Serial.print (" \n Blocks Response: " );
144
144
// The response is a 'std::string'; to 'Print' on Arduino, we need the c_string type.
145
145
Serial.println (blocksResponse.c_str ());
@@ -209,7 +209,7 @@ void checkAPI() {
209
209
210
210
// The following method can be used to get a list of 'All' 'Peers' on the network.
211
211
//
212
- // This is equivalent to calling 'https://dexplorer.ark.io/api/peers?limit=2 &page=1'
212
+ // This is equivalent to calling 'https://dexplorer.ark.io/api/peers?limit=1 &page=1'
213
213
//
214
214
// {
215
215
// "meta": {
@@ -233,7 +233,7 @@ void checkAPI() {
233
233
// }
234
234
// ]
235
235
// }
236
- const auto allPeers = connection.api .peers .all (1 , 1 );
236
+ const auto allPeers = connection.api .peers .all (" ?limit=1&page=1 " );
237
237
Serial.print (" \n All Peers: " );
238
238
Serial.println (allPeers.c_str ());
239
239
@@ -264,7 +264,7 @@ void checkAPI() {
264
264
265
265
// This method can be used to get a list of 'Vote' Transactions.
266
266
//
267
- // This is equivalent to calling 'https://dexplorer.ark.io/api/votes?limit=2 &page=1'
267
+ // This is equivalent to calling 'https://dexplorer.ark.io/api/votes?limit=1 &page=1'
268
268
//
269
269
// {
270
270
// "meta": {
@@ -304,15 +304,15 @@ void checkAPI() {
304
304
// }
305
305
// ]
306
306
// }
307
- const auto allVotes = connection.api .votes .all (1 , 1 );
307
+ const auto allVotes = connection.api .votes .all (" ?limit=1&page=1 " );
308
308
Serial.print (" \n All Votes: " );
309
309
Serial.println (allVotes.c_str ());
310
310
311
311
/* *******************/
312
312
313
313
// This method can be used to get a list of 'Top' 'Wallets' (Wallets with the most ARK).
314
314
//
315
- // This is equivalent to calling 'https://dexplorer.ark.io/api/wallets/top?limit=2 &page=1'
315
+ // This is equivalent to calling 'https://dexplorer.ark.io/api/wallets/top?limit=1 &page=1'
316
316
//
317
317
// The response should be a json-formatted object
318
318
// The "pretty print" version would look something like this:
@@ -337,7 +337,7 @@ void checkAPI() {
337
337
// }
338
338
// ]
339
339
// }
340
- const auto topWallets = connection.api .wallets .top (1 , 1 );
340
+ const auto topWallets = connection.api .wallets .top (" ?limit=1&page=1 " );
341
341
Serial.print (" \n Top Wallets: " );
342
342
Serial.println (topWallets.c_str ());
343
343
};
0 commit comments