var socket = new FIMKSocket("wss://cloud.mofowallet.org:7986/ws/"); socket.ready(function () { socket.getAccount({ "account": "FIM-5PGB-BFNZ-KCSF-9XJWB" }, function (data) { write("Effective balance for FIM-5PGB-BFNZ-KCSF-9XJWB is "+data.effectiveBalanceNXT); }); });
<script type="text/javascript"> function write (text) { var p = document.createElement('p'); p.textContent = text; document.getElementById("output").appendChild(p); } </script> <div id="output"></div>