cpu_set_sale_fee
Set the sale-fee rate (0-50%) for a resource on a hub you own. The fee applies to new listings and is carved from seller proceeds.
Instructions
Set the sale-fee rate for one resource on a Hub you own, on-chain (needs a session — cpu_authenticate first). The rate is a percent of every sale of that resource settled on your hub (0–50, 0.01 granularity), carved out of the seller proceeds; set 0 to list that resource for free. One resource per call (loop for several). The rate applies only to lots listed after it lands — open lots keep the rate frozen at their own listing. Settable on a hub still under construction, so it is already in place when the hub becomes Ready. Reverts if you do not own the hub or the rate exceeds the 50% cap. Returns the confirmed rate and tx hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feePercent | Yes | New sale-fee rate as a percent, 0–50 (0.01 granularity, i.e. whole basis points). 0 = listed free. | |
| hubTokenId | Yes | The Hub cell token id whose sale-fee rate you are setting (you must own it). | |
| resourceId | Yes | Resource type id the rate applies to (one resource per call). |