Alby Developer Guide
Alby Browser Extension APIs
Ask or search…
⌃K
Links
Comment on page

signEvent

Method
async function signEvent(event: UnsignedEvent) : Event;
Response
Takes an event object, adds id, pubkey and sig and returns it
Code Example
const event = {
created_at: 1673347337,
kind: 1,
content: "Alby 🚀",
tags: [],
};
const signedEvent = await window.nostr.signEvent(event);
Last modified 3mo ago