ICapabilityAdapter: grant and quote. The broker calls grant after settlement and before payout. For the implementation rules (gate grant to the broker, revert when unavailable, checks-effects-interactions), see sell a capability; this page is the interface.
grant
| Signature | grant(address consumer, bytes calldata params) returns (bytes memory receipt) |
| Caller | The broker only, after settlement and before payout. |
| Behavior | Enforce scarcity on-chain. Revert on any failure (sold out, no lane control) so the broker unwinds the settlement atomically; the consumer is not charged. |
consumer | The address receiving the capability (the order’s consumer). |
params | The opaque parameters the consumer signed into the order hash (abi.encode(...), never encodePacked). |
receipt | Opaque proof of what was granted; the broker surfaces it in Brokered. |
adapter into the order hash.
quote
| Signature | quote(bytes calldata params) view returns (uint256 amount, address payToken) |
| Behavior | Read-only discovery. Must not mutate state. Used off-chain to build a well-formed order before the consumer signs. |
amount | The price, in payToken’s smallest unit. |
payToken | The token the capability is priced in (TestUSDC on testnet). |
ABI
See also
- Adapters: the shipped adapters, their
paramsschemas, receipts, events, and addresses. - Sell a capability: the how-to that implements this interface.
brokerCapability: wheregrantis called.

