nostr_publish_addressable_event
Publish parameterized-replaceable events like NIP-15 stalls and products with automatic d tag assignment. Republishing with the same kind, pubkey, and d tag replaces the prior version.
Instructions
Publish a parameterized-replaceable / addressable event (kind 30000–39999). The marketplace MCP's load-bearing bridge — NIP-15 stalls (kind 30017) and products (kind 30018) flow through this. Sets the d tag automatically from the d_tag input. Republishing with the same (kind, pubkey, d_tag) replaces the prior version on relays that honor replaceability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Addressable event kind in the parameterized-replaceable range (30000–39999). NIP-15 marketplace uses 30017 (stall) and 30018 (product). | |
| tags | No | Additional tags. The `d` tag is set automatically from d_tag — do not duplicate it here. | |
| d_tag | Yes | The `d` tag identifier — uniquely names this replaceable event within the kind+pubkey combination. Republishing with the same (kind, pubkey, d) replaces the prior version. | |
| content | Yes | Event content (typically JSON for NIP-15). |