Skip to content

Commit

Permalink
Add ability to request an accounts proof to the web client example
Browse files Browse the repository at this point in the history
  • Loading branch information
nibhar committed Nov 26, 2024
1 parent e2410fb commit 7aed8dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions web-client/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</div>
<div>
<button id="address-book">Query address book</button>
<button id="query-account">Query Account balance</button>
</div>
<script>
const deadMansSwitch = document.querySelector('#dead-mans-switch');
Expand Down
5 changes: 5 additions & 0 deletions web-client/example/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ init().then(async () => {
console.table(contacts);
});

document.querySelector('#query-account').addEventListener("click", async () => {
let account = await client.getAccount('NQ07 0000 0000 0000 0000 0000 0000 0000 0000');
console.log(account);
});

/**
* @param {string} privateKey
* @param {string} recipient
Expand Down

0 comments on commit 7aed8dc

Please sign in to comment.