Skip to content

Commit 65d57a9

Browse files
committed
Update typescript example
1 parent 4fc7eca commit 65d57a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ts/sdk/example.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ async function main() {
273273
`Account Value history for last 24 hours: ${JSON.stringify(accountValueHistory)}`
274274
);
275275

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+
276285
// Set up WebSocket listeners
277286
const accountDataListener = await client.createAccountDataStreamListener(
278287
handleAccountDataEvent

0 commit comments

Comments
 (0)