ERC-8414 A token standard that binds a task to its reward (Token-Bound Task Tenders)
Draft · Vaults & DeFi · created 2026-09-05
A standard that binds a task request, specification, acceptance criteria, and reward into a single ERC-721 token, depositing the reward in a vault dedicated to the token so it is released only once completion is verified or approved.
Why it is needed
Today, task bounties depend on centralized bulletin boards or platform escrow. The task wording can be silently changed even after work has begun, no one can verify whether the stated reward actually exists, and because acceptance criteria are not fixed in advance, judging can drift into subjectivity. There is also no record of exactly which version of the requirements a given completion satisfied, making disputes hard to prove. Display-only fields such as tokenURI are mere pointers that guarantee no integrity, so they do not solve this problem.
What to implement
function taskOf(uint256 tokenId) external view returns (TaskBinding memory);: Returns the commitment of the task bound to the token (tdHash, taskHash, version).function taskURI(uint256 tokenId) external view returns (string memory);: Returns a transport hint URI indicating where to fetch the task package. It must not be used as a basis for trust.function updateAuthorityOf(uint256 tokenId) external view returns (address);: Returns the address currently authorized to modify this token's task content.function isTaskFrozen(uint256 tokenId) external view returns (bool);: Checks whether the task content is permanently frozen and can no longer be changed.function updateTask(uint256 tokenId, bytes32 tdHash, bytes32 taskHash) external;: Updates the task document (tdHash) and the full package (taskHash) to a new version. Only updateAuthority can call this.function setTaskURI(uint256 tokenId, string calldata taskURI) external;: Changes the transport URI used to fetch the task package. The version or content commitment is not changed.function setUpdateAuthority(uint256 tokenId, address newAuthority) external;: Transfers the authority to modify task content to another address. It cannot be transferred to address(0).function freezeTask(uint256 tokenId) external;: Permanently freezes the task content so it can never again be changed via updateTask.event TaskUpdated(uint256 indexed tokenId, bytes32 tdHash, bytes32 taskHash, uint64 version);: An event emitted when the task content is updated to a new version.event TaskFrozen(uint256 indexed tokenId);: An event emitted when the task content is permanently frozen.function vaultOf(uint256 tokenId) external view returns (address);: Returns the address of the reward vault account dedicated to this token.function tenderTermsOf(uint256 tokenId) external view returns (TenderTerms memory);: Returns this token's tender terms, such as the reward amount, completion cap, and deadline. These do not change after minting.function acceptanceAuthorityOf(uint256 tokenId) external view returns (address);: Returns who holds the authority to approve or reject a deliverable (a verifier contract or a judging address).function escrowBalanceOf(uint256 tokenId) external view returns (uint256);: Returns the actual balance of reward assets held in the vault.function fundTask(uint256 tokenId, uint256 amount) external payable;: Can be called by anyone to fund this token's vault with reward assets.function submitFulfillment(uint256 tokenId, bytes32 resultHash, string calldata resultURI) external returns (uint256 submissionId);: The performer submits the hash of the deliverable and the cited task version, reserving a completion slot and the reward.function acceptFulfillment(uint256 tokenId, uint256 submissionId) external;: The judging authority approves the submitted deliverable and pays out the reward.function settleFulfillment(uint256 tokenId, uint256 submissionId, bytes calldata proof) external;: Can be called by anyone; if the verifier contract confirms the proof, the reward is paid automatically.function rejectFulfillment(uint256 tokenId, uint256 submissionId) external;: The judging authority rejects the submitted deliverable within the judgment deadline.function claimUnjudged(uint256 tokenId, uint256 submissionId) external;: For a human-judged submission that received no ruling before the judgment deadline passed, anyone can trigger payment of the reward to the performer on the judge's behalf.function releaseExpired(uint256 tokenId, uint256 submissionId) external;: For a machine-judged submission that failed to produce a valid proof before the judgment deadline passed, anyone can release its reservation so it can be submitted again.function withdrawCredit(uint256 tokenId, address account) external;: Later withdraws, directly, a reward share that accrued because the transfer failed at settlement.function cancelTask(uint256 tokenId) external;: The issuing authority permanently cancels the tender, blocking further funding and new submissions.function reclaimEscrow(uint256 tokenId) external;: After tender cancellation or the settlement deadline, a funder receives back their contributed share on a pro rata basis.function reclaimResidual(uint256 tokenId) external;: After tender cancellation or the settlement deadline, the token owner receives the remaining donated balance left in the vault.event FulfillmentAccepted(uint256 indexed tokenId, uint256 indexed submissionId, address indexed fulfiller, uint256 reward);: An event emitted when a deliverable is approved and the reward is paid.event FulfillmentClaimedUnjudged(uint256 indexed tokenId, uint256 indexed submissionId, address indexed fulfiller, uint64 deadline);: An event emitted when automatic payment occurs because the judgment deadline was exceeded.function hasOnchainTaskDocument(uint256 tokenId) external view returns (bool);: Checks whether the task's original document is stored on chain in plaintext. Once it becomes true, it remains true permanently.function taskDocument(uint256 tokenId) external view returns (bytes memory document);: Returns the exact plaintext bytes of the task's original document stored on chain.function updateTaskWithDocument(uint256 tokenId, bytes calldata document, bytes32 taskHash) external;: Updates the task binding and the on-chain original document in a single operation. tdHash is computed directly from the document.function publishTaskDocument(uint256 tokenId, bytes calldata document) external;: Publishes on chain, without changing the version, the original document that matches an already-committed tdHash.
In depth
Authority split into three
This standard splits the task token's authority into three: owner, update authority (updateAuthority), and acceptance authority (acceptanceAuthority). The owner only buys and sells the token itself via ERC-721 transfer, while updateTask, setTaskURI, freezeTask, and cancelTask can be called only by updateAuthority. The authority to approve or reject a deliverable resides in acceptanceAuthority: if this slot holds a contract implementing ITaskVerifier, it becomes 'machine judgment,' where anyone can trigger automatic settlement via settleFulfillment; if it holds any other address (a person, a multisig, a DAO, etc.), it becomes 'human judgment,' where only that address can approve or reject. Token transfer has no effect on either authority.
The vault's immutable rules
Each task token has its own unique vault account (vaultOf), and reward assets must reside in this vault. The balance can be queried by anyone (escrowBalanceOf), but no one, including the owner, update authority, or acceptance authority, can withdraw funds except through settlement or the reclaimEscrow path. Funds that come in via fundTask are recorded as refundable, while funds sent directly to the vault are treated as a 'donation' and are used for reward payment before refundable funds. The recommended implementation is a locked ERC-6551 token bound account with execution authority removed.
Tender terms fixed at minting
TenderTerms (reward asset, rewardPerCompletion, maxCompletions, submitBy, settleBy, epochLength, maxCompletionsPerEpoch, judgmentWindow) is fixed permanently once set at minting. To change the terms, a new token must be minted. epochLength and maxCompletionsPerEpoch must both be zero or both be nonzero; when nonzero, the token becomes a subscription-style faucet work token that keeps emitting rewards as long as the vault stays funded.
Submission reserves a slot and a reward in advance
Calling submitFulfillment records a result hash (resultHash) and the task version cited at that moment, which simultaneously reserves one completion slot and one reward share. The submission itself fails if the tender has been cancelled, the submission deadline has passed, the completion cap has already been reached, or the vault balance cannot cover the pending submission count plus one in rewards. This reservation lets the performer confirm the reward is actually payable before starting the work.
Two settlement paths: judged and mechanical
Completion approval branches two ways. The judged path is handled via acceptFulfillment/rejectFulfillment, which only acceptanceAuthority can call. The mechanical path uses settleFulfillment, usable only when the approval slot is a contract implementing ITaskVerifier; anyone can call it, and payment succeeds only after the contract confirms the proof via verifyFulfillment. Both paths change the state to Accepted, increment the completion count, and transfer the reward; if the recipient cannot receive the funds, settlement itself does not stall, the amount is credited via creditOf, and it can be withdrawn later with withdrawCredit.
The judgment deadline and automatic processing
At the moment a submission comes in, whether the approval slot is a verifier is snapshotted as machineSettled. If a judged submission receives neither acceptance nor rejection within judgmentWindow, anyone can thereafter call claimUnjudged to pay the reward to the performer as is, and the judge can no longer reject it. If a mechanical submission fails to produce a valid proof within the same window, anyone can call releaseExpired to free up that slot. This deadline applies independently of cancellation or the settlement deadline, preventing the requester from stalling a response to delivered work.
Epoch pacing: subscription-style work tokens
Setting epochLength and maxCompletionsPerEpoch to nonzero values turns the token into a faucet-style work token that behaves like a subscription service. For example, setting reward R, a daily period, one completion per period, and 365 total completions can represent a daily report subscription with a single token. This pacing applies only to settlement actions, such as acceptance, mechanical settlement, and automatic payment on expiry, not to submissions, and automatic payments triggered by expiry also do not exceed the per-period cap, queuing instead into the next period.
Cancellation and refund
The issuing authority can permanently cancel a tender via cancelTask, but any submissions already pending at the time of cancellation remain protected and subject to acceptance, rejection, settlement, or expiry-based automatic payment. Only after all pending submissions have been processed can the funder reclaim their proportional share via reclaimEscrow, and the token owner receive the remaining donated balance via reclaimResidual. This proposal is currently in Draft status, still under community discussion, and its details may change or be discontinued.