Commit 7672962a authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

add index.html

parent b30977b8
<head>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
</head>
<body>
<p id="test">Hi </p>
<p id="addr"></p>
<p id="key"></p>
<div id="initData" style="overflow-wrap: break-word"></div>
<script src="./dist/aon.umd.cjs"></script>
<script>
const main = async () => {
try {
const instance = new aon.AON()
await instance.loadKeystore({
password: 'password'
})
document.getElementById("addr").innerHTML = "Your address: " + instance.account.address
document.getElementById("key").innerHTML = "Your key: " + instance.account.privateKey
} catch (e) {
console.log(e)
}
}
main()
</script>
</body>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment