ERC-8469 Sealed-bid award mechanism for task tenders
Draft · Other · created 2026-10-27
Defines a procedure, used when multiple agents compete for a single task, where bids are submitted hidden and then revealed all at once, along with four pricing rules for determining who wins at what price.
Why it is needed
Various task-escrow standards define the procedure for posting a task, depositing a reward, and settling once it is complete, but they do not define who wins when multiple agents apply at once. ERC-8183 puts bidding outside its standard's scope and treats it only as an example, while ERC-8414 defers bidding to a separate add-on extension. As a result, each task market builds its own award logic, agents must relearn different bidding rules on every platform, and indexers have no way to know what an award even means or whether the price is fair. There is also no way to prevent manipulation where another participant sees a bid before it is revealed and underbids it.
What to implement
function mechanismId() external pure returns (bytes4);: Returns a unique code identifying the award pricing rule.function award(Bid[] calldata bids, uint256 reserve, uint256 units) external pure returns (Award[] memory);: Takes the revealed bids, the reserve price, and the number of units, and computes the winners and each payment price.function openTender(TenderTerms calldata terms) external returns (bytes32 tenderId);: Opens a new tender and fixes its terms, such as the mechanism, reserve price, and deadlines.function commitBid(bytes32 tenderId, bytes32 commitment) external payable;: Submits a bid amount hidden as a hash and posts a deposit.function revealBid(bytes32 tenderId, uint256 amount, bytes32 salt) external;: Reveals the actual bid amount and salt within the reveal deadline so it can be checked against the commitment.function finalize(bytes32 tenderId) external returns (IAwardMechanism.Award[] memory);: Once the reveal deadline passes, anyone can call this to verify the mechanism's result and finalize the award.function claimSlashed(bytes32 tenderId) external returns (uint256 amount);: Transfers deposits slashed from bidders who did not reveal to the designated recipient.function termsOf(bytes32 tenderId) external view returns (TenderTerms memory);: Queries the full terms of the given tender.function requesterOf(bytes32 tenderId) external view returns (address);: Queries the requester address that opened the given tender.function phaseOf(bytes32 tenderId) external view returns (Phase);: Queries which stage the given tender is in: commit, reveal, awarded, or void.function awardOf(bytes32 tenderId) external view returns (IAwardMechanism.Award[] memory);: Queries the award result stored after the award was finalized.function slashedOf(bytes32 tenderId) external view returns (uint256);: Queries the total slashed deposits not yet transferred to the recipient.function mechanismCodehashOf(bytes32 tenderId) external view returns (bytes32);: Queries the code hash of the mechanism contract fixed at the time the tender was opened.event BidCommitted(bytes32 indexed tenderId, address indexed bidder, bytes32 commitment);: Logged when a bidder submits a commitment hiding its amount.event BidRevealed(bytes32 indexed tenderId, address indexed bidder, uint256 amount);: Logged when a bidder reveals its actual amount.event BidSlashed(bytes32 indexed tenderId, address indexed bidder, uint256 bond);: Logged when a bidder who did not reveal has its deposit slashed.event TenderAwarded(bytes32 indexed tenderId, address indexed winner, uint256 price, bytes4 mechanismId);: Logged when the award is finalized and the winner and price are set.event TenderVoid(bytes32 indexed tenderId);: Logged when the tender is voided because no valid award resulted.event SlashClaimed(bytes32 indexed tenderId, address indexed recipient, uint256 amount);: Logged when a slashed deposit is transferred to the recipient.
In depth
The four award pricing rules (normative mechanisms)
The spec defines four standard mechanisms based on bid amounts sorted ascending, b(1)≤b(2)≤...≤b(n), and a reserve price r. award.first-price awards the units lowest bids, each paid exactly the price it bid. award.vickrey is used only when units=1: the lowest bidder is paid the smaller of the second-lowest bid b(2) and the reserve price, or the reserve price if there is only one bidder. award.uniform-price awards the units lowest bids, all paid the same amount, the smaller of b(units+1) and the reserve price. award.posted-price awards the units bids that are at or below the reserve price with the earliest commit order, each paid exactly the reserve price; bidding a lower amount cannot overtake a bidder who committed earlier. Under all four rules, a bid above the reserve price is excluded from the award.
Seven conditions the award function must satisfy
IAwardMechanism.award must be (1) deterministic and must not read state, (2) every winner must be one of the bidders whose bid does not exceed the reserve price, (3) the payment price must not exceed the reserve price, (4) the same winner must not appear twice and the number of winners must not exceed units, (5) if a bidder lowers its amount with everything else equal, it must not drop out of the award (monotonicity), (6) when amounts tie, the bid committed earlier wins, and (7) the payment price must never be lower than the amount the winner itself bid. The mechanism contract must not be upgradeable and must not delegate its computation to replaceable code.
Pinning the target and content with targetRef and contentHash
targetRef is computed as keccak256(abi.encode(chainId, targetContract, targetId)); if targetId is a uint256, it must be left-padded with zeros to bytes32, and abi.encode must be used, not abi.encodePacked. contentHash is a hash pointing to the task content at the time the tender opens, that is, the task description plus the acceptance policy including payment asset, units, and verifier address, and it must be published in a specification or registry before bidding opens. The award price itself is not included in this specification. If the content changes, a new tender must be opened even for the same targetRef, and price-binding integrations must guarantee that the task content does not change between reveal and execution.
Tender lifecycle: commit, reveal, finalize, claim slashed
openTender reverts unless reserve>0, units≥1, commitDeadline is in the future, revealDeadline is after commitDeadline, and the mechanism can be confirmed via ERC-165 to support IAwardMechanism. commitBid is only possible within the commit deadline; the commitment must be keccak256(abi.encode(tenderId, msg.sender, amount, salt)), and it takes a deposit. revealBid requires submitting, within the reveal deadline, the amount and salt matching the commitment, and returns the deposit on success. Once revealDeadline passes, anyone can call finalize, and the contract re-verifies the result returned by the mechanism against the bids in commit order before storing it. If the result is empty the state becomes Void, otherwise Awarded, and both are terminal states that never change afterward. At this point, deposits of bidders who did not reveal are slashed and transferred to slashRecipient via claimSlashed.
Price-binding and allocation-only integration profiles
Every bid declares in advance, via integrationProfile, what the award means to the consuming standard. price-binding must satisfy both payment-binding, which pays out the award price as is, and execution-binding, which secures execution authority before the reveal deadline so that anyone can trigger execution for any valid award and neither the requester nor a third party can block it; in this case any of the four pricing rules can be used. allocation-only is the case where the consuming standard only uses the winner, and payment or execution remains at the consuming standard's discretion; in this case only award.posted-price may be used. Incentive-compatibility properties such as second-price awards (Vickrey) hold only under price-binding.
Authority boundary: an award is not authority
An Award by itself grants no authority over the target. Adapter code that carries an award to the target must not act with authority the target standard has not already granted, and may only designate a provider, fund a task, or initialize a reward if it is an authorized client of the target or holds explicit prior approval. An adapter without such authority can only verify that a conversion performed by an authorized party matches the stored award.
Execution guarantees for capacity-limited resources
For price-binding integrations where award execution requires an exclusive resource, such as a provider service slot, the resource must be reserved before the commit deadline and held until the target consumes it. The reservation must be bound to the bid contract and identifier, the provider, targetRef, contentHash, resource identification, quantity, and service window, and all bids competing for the same resource must use a shared accounting scheme. Checking availability only at execution time is insufficient, and capacity shortages must not be handled by later modifying the award result or quietly swapping in a different winner.
A proposal still in Draft stage
This ERC was written in October 2026 and is currently in Draft status. Draft refers to an early stage where details may still change through discussion and review, or where the proposal may stall and go no further if consensus is not reached.
Things to watch out for
- Undisclosed commits without a deposit: Without a deposit, a bidder could commit without revealing, or probe the mechanism using multiple addresses. For bids open to anyone, the deposit must be set greater than zero and sized relative to the reserve price.
- Trust in the mechanism contract: Because the mechanism is third-party code, even if the bid contract verifies the result, it can still select the wrong winner or the wrong price among valid bids. Pinning a code hash does not prevent the implementation from changing if that address is a proxy, so bidders must verify for themselves that the pinned code actually matches a known reference implementation.
- Bidder count limit (maxBidders): finalize sorts and iterates over all revealed bids, so its cost grows faster than the number of bidders (about 8 million gas at 256 bidders in the reference implementation). Since deposits are returned to bidders who reveal, they do not prevent a flood of bids, so a maxBidders cap is needed.
- Sybil bidding under the uniform-price rule: Under award.uniform-price, a single operator bidding from multiple addresses can win less volume than it can actually handle, pushing up the clearing price. Deployments using the uniform-price rule with units greater than 1 must include a screening layer that binds each operator to a single address.
- Recipient of forfeited deposits: If forfeited deposits flow back to the requester directly or indirectly, the requester gains an incentive to obstruct reveals for profit, or to place fake commits at near-zero cost. slashRecipient should be set to something close to a burn address that neither the requester nor the target can recover funds from.