mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
feat: Implement service worker for IPFS vault
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package state
|
||||
|
||||
templ InsertAccount(accountName string) {
|
||||
<script>
|
||||
const accountId = await motr.insertAccount({
|
||||
name: accountName,
|
||||
address: "0x1234567890123456789012345678901234567890",
|
||||
publicKey: "sample_public_key",
|
||||
chainCode: "SONR",
|
||||
index: 0,
|
||||
controller: "sample_controller",
|
||||
createdAt: new Date(),
|
||||
});
|
||||
|
||||
console.log("Inserted account with ID:", accountId);
|
||||
</script>
|
||||
}
|
||||
Reference in New Issue
Block a user