Capability functions
Capability functions are used to define and manage the permissions that authorize or deny access to smart contract operations. For an introduction to using capabilities, see Capabilities and events.
| Function | Description |
|---|---|
| compose‑capability | Compose and grant capabilities in a nested structure to control the scope of how the capabilities are applied. By convention, capabilities are defined using all uppercase letters. |
| emit‑event | Emit a specified CAPABILITY as an event without evaluating the body of the capability. |
| install‑capability | Define and provision a managed capability. |
| require‑capability | Require a specific CAPABILITY to be granted before allowing the current body of code to be executed. |
| with‑capability | Apply the access to a specific CAPABILITY to execute a body of code. |