Execute JavaScript from Algorand transaction notes.
- Import the
note.js
script. This defines the asyncexex
andread
functions.
<script src="./note.js"></script>
- Execute JavaScript from a given transaction note.
<script>
(async () => {
// Create art.
const txnId = "EYKOBHVOSJJMB4GMDXSHBM7GHUBCBT3REZRFMEADJP56DIY5G2RA";
await exec(txnId);
})();
</script>