postNote
Sign and publish a note to the Nostr social network using a private key. Include optional tags and relays for targeted distribution.
Instructions
Post a note using an existing private key (authenticated posting)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content of the note to post | |
privateKey | Yes | Private key to sign the note with (hex format or nsec format) | |
relays | No | Optional list of relays to publish to | |
tags | No | Optional tags to include with the note |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content": {
"description": "Content of the note to post",
"type": "string"
},
"privateKey": {
"description": "Private key to sign the note with (hex format or nsec format)",
"type": "string"
},
"relays": {
"description": "Optional list of relays to publish to",
"items": {
"type": "string"
},
"type": "array"
},
"tags": {
"description": "Optional tags to include with the note",
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "array"
}
},
"required": [
"privateKey",
"content"
],
"type": "object"
}