We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc7eca commit 65d57a9Copy full SHA for 65d57a9
ts/sdk/example.ts
@@ -273,6 +273,15 @@ async function main() {
273
`Account Value history for last 24 hours: ${JSON.stringify(accountValueHistory)}`
274
);
275
276
+ const accountValueHistoryByAccount = (
277
+ await client.accountDataApi.getAccountValueHistoryByAccount(
278
+ suiWallet.getPublicKey().toSuiAddress()
279
+ )
280
+ ).data;
281
+ logger.info(
282
+ `Account Value history By Account for last 24 hours: ${JSON.stringify(accountValueHistory)}`
283
+ );
284
+
285
// Set up WebSocket listeners
286
const accountDataListener = await client.createAccountDataStreamListener(
287
handleAccountDataEvent
0 commit comments