Market: add a service
geode_market_add_a_serviceList a service (online or in person) in your store: title, price, category, description, inventory, media and booking links, and an optional affiliate (zeno) percentage. Writes to the chain: this prepares an unsigned transaction (an intent) for signer; nothing happens until you sign it with geode-local-signer and submit it with geode_submit_intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Amount in GEODE as a decimal string (e.g. "1.25"), or {"raw": "<planck>"} | |
| title | Yes | UTF-8 text, at most 512 bytes; no control or invisible characters | |
| online | Yes | ||
| signer | Yes | Your account address (SS58). The transaction is prepared for this account; you sign it on your own machine with geode-local-signer. | |
| category | Yes | UTF-8 text, at most 512 bytes; no control or invisible characters | |
| inventory | Yes | Non-negative integer as a string of digits | |
| description | Yes | UTF-8 text, at most 2048 bytes; no control or invisible characters | |
| booking_link | Yes | https:// URL or empty string, at most 512 bytes | |
| zeno_percent | Yes | Non-negative integer as a string of digits | |
| service_location | Yes | UTF-8 text, at most 512 bytes; no control or invisible characters | |
| photo_or_youtube_link1 | Yes | https:// URL or empty string, at most 512 bytes | |
| photo_or_youtube_link2 | Yes | https:// URL or empty string, at most 512 bytes | |
| photo_or_youtube_link3 | Yes | https:// URL or empty string, at most 512 bytes |