convertNip19
Transform NIP-19 entities like npub, nsec, note, nprofile, nevent, and naddr into desired formats, including hex, for Nostr network operations.
Instructions
Convert any NIP-19 entity (npub, nsec, note, nprofile, nevent, naddr) to another format
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author | No | Optional author pubkey (hex format) for nevent/naddr | |
identifier | No | Required identifier for naddr conversion | |
input | Yes | The NIP-19 entity or hex string to convert | |
kind | No | Optional event kind for nevent/naddr | |
relays | No | Optional relay URLs for complex entities (nprofile, nevent, naddr) | |
targetType | Yes | The target format to convert to |