publishNote
Publish signed notes to Nostr relays for secure and decentralized content sharing. Use structured event data including ID, author, timestamp, content, and signature for reliable distribution across the network.
Instructions
Publish a signed note to Nostr relays
Input Schema
Name | Required | Description | Default |
---|---|---|---|
relays | No | Optional list of relays to publish to | |
signedNote | Yes | Signed note event to publish |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"relays": {
"description": "Optional list of relays to publish to",
"items": {
"type": "string"
},
"type": "array"
},
"signedNote": {
"additionalProperties": false,
"description": "Signed note event to publish",
"properties": {
"content": {
"description": "Content of the note",
"type": "string"
},
"created_at": {
"description": "Creation timestamp",
"type": "number"
},
"id": {
"description": "Event ID",
"type": "string"
},
"kind": {
"description": "Event kind",
"type": "number"
},
"pubkey": {
"description": "Public key of the author",
"type": "string"
},
"sig": {
"description": "Event signature",
"type": "string"
},
"tags": {
"description": "Tags array",
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "array"
}
},
"required": [
"id",
"pubkey",
"created_at",
"kind",
"tags",
"content",
"sig"
],
"type": "object"
}
},
"required": [
"signedNote"
],
"type": "object"
}