Export a contact
export_contactExport a contact's advert-packet as hex bytes for import by another node. Omit target to export the home node's own identity for off-mesh sharing.
Instructions
Return the advert-packet bytes (hex) for a contact, suitable for another node's import_contact. Omit target to export the home node's own advert (useful for sharing identity off-mesh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | contact name or hex public-key prefix; omit to export the home node |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the exported contact's advertised name (or the home node's name) | |
| publicKey | Yes | the exported contact's hex public key | |
| advertHex | Yes | the advert packet as hex bytes — pass to another node's import_contact |