Create Validator
⚠️
This is a DEMO. Expect BUGSs, and use at your own risk.
Event Definition
{
"created_at": Date.now(),
"kind": 1111,
"tags": [
[
"v-language",
"javascript-unsafe-web-worker", // Language
],
[
"v-hint", "FRESH" // Optional
]
],
"content": `
return true;
`
}
Javascript Code
These variables are available tu use
/**
* @typedef Event
* @type {object}
* @property {string} id - the Event ID.
* @property {string} pubkey - public key of the Event creator.
* @property {int} created_at - UNIX timestamp of Event creation.
* @property {int} kind - the Event kind.
* @property {string[][]} tags - the Event tags, as an array of arrays of strings.
* @property {string} content - the Event content.
* @property {string} sig - the signature of the Event ID using the Event pubkey.
*/
/** @type {Event} */
const event;
/** @type {Event} */
const validator;
/** @type {string[]} */
const args;
My Validators
No validators found