Rent Ask
Create or modify the usership rental offer for an existing Ecosystem namespace. Enables / disables the rental listing and sets the daily rent price. Only the Ecosystem owner is permitted to execute this instruction.
open-token ecosystem rent-ask --help
Synopsis
open-token ecosystem rent-ask <Name> <Enabled> <Rent Per Day>
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<Name> | String | Yes | Target Ecosystem namespace name. No dot characters. Must be an existing active on‑chain ecosystem account. |
<Enabled> | u8 | Yes | Toggle usership offer status. 0 = false(disable offer), 1 = true(enable offer). When disabled, new rent‑bid requests will be rejected. |
<Rent Per Day> | u64 | Yes | Daily rent amount in base token units. Defines how much a renter pays per calendar‑day of usership. Value takes effect only when <Enabled> is set to 1. |
Behaviour
- Transaction signer must match stored Ecosystem owner public key; returns
OwnerMismatchon authorization failure. - Validates target Ecosystem exists and is not expired (
NameExpired). - Persists the rental offer configuration on‑chain: toggle status + per‑day rent price.
- Setting
<Enabled>=0closes the offer; prevents new rent bids, does NOT terminate an already‑active ongoing usership lease. Existing renter retains usership until lease expiry. - Setting
<Enabled>=1opens the offer; allows external users to callrent‑bidto acquire usership. - Does not modify ecosystem ownership, meta, body, or ownership expiry timestamp.
- This only configures the listing; it does not create a rental lease. Actual lease creation happens via
rent‑bid.
Constraints & Validation Rules
OwnerMismatch: Transaction signer is not the Ecosystem owner.NameExpired: Ecosystem ownership registration is expired; cannot configure rent offer.NameTooLong/NameEmpty: Invalid ecosystem name input.- Invalid
<Enabled>value: any value other than0or1will cause program validation failure. - Zero‑price is allowed by program logic unless treasury enforces a minimum rent price.
Usage Example
Enable usership offer for ecosystem open, set daily rent price to 1000 base units:
open-token ecosystem rent-ask open 1 1000
Disable the usership offer for ecosystem open (existing active lease remains valid):
open-token ecosystem rent-ask open 0 1000