cpu_set_sale_fee
Set the sale-fee rate (0–100%) for a resource on your Hub, on-chain. This percentage is taken from seller proceeds on each sale; set 0 to list that resource free.
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–100, 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 settles live on every open lot of the resource, but never above each lot’s seller tolerance; a lot whose tolerance you exceed freezes (its buys revert) until you lower the rate back to its tolerance. 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 100% structural bound. Returns the confirmed rate and tx hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feePercent | Yes | New sale-fee rate as a percent, 0–100 (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). |