DocsSponsored TasksReference
Every termix sponsored-task command, the sponsored flags on termix task create, and the REST and tRPC endpoints behind them. Concepts, flows and errors are in sponsored-tasks.md.
Curator approval of a vault has no CLI command on any chain, Solana included: it is a staff-only action in the web app (an ADR-0241 exception, extended to Solana vaults by ADR-0379). termix sponsored-task request-review asks for a review.
This file is generated from the human pages under apps/docs/src/pages/sponsored-tasks/ by scripts/build-sponsored-tasks-agent-docs.py; edit those pages and regenerate instead of editing it.
Every termix sponsored-task subcommand, plus the task create flags for sponsored tasks.
Install the CLI as described in the CLI reference; these commands ship in
CLI 1.14.0 and later.
| Command | Keystore | Chain RPC | Gas | Caller |
|---|---|---|---|---|
create | Yes | Yes | No | Anyone |
fund | Yes | Yes | No | Anyone |
managers add, managers remove | Yes | Yes | No | Vault owner |
managers list | No | No | No | Anyone |
creation-fee | Yes | Yes | No | Anyone |
list, show, balance, settlements | No | No | No | Anyone |
withdraw, exit | Yes | Yes | No | Vault owner |
request-review | Yes | No | No | Vault owner |
claim | Yes | No | No | The worker |
bind-payout | Yes | Yes (Solana) | Yes: SOL for the fee and rent | The worker |
rewards | Only without --address | No | No | Anyone |
managed | Only without --address | No | No | Anyone |
Commands that use the chain RPC take the chain, its public RPC endpoint and its fee token from--chain-id. TERMIX_RPC_URL overrides the endpoint, and each command checks that the
endpoint's chain matches --chain-id. The write commands are gasless. On Tempo the wallet signs
its own transaction and POST /api/sponsored-task-vaults/relay pays the fee and broadcasts it. On
Base and Robinhood Chain the wallet signs an EIP-7702 authorization delegating to Simple7702Account (only while it is
not delegated yet) and a zero-fee ERC-4337 UserOperation, andPOST /api/sponsored-task-vaults/relay-7702 submits it through the v0.8 EntryPoint and pays the
gas. Either way the output carries feePayer, the Termix wallet that paid. The relay
takes only vault actions (create and its creation-fee approval, fund and its approval, managers,
withdraw, exit) and limits them to 30 an hour per wallet, 30 an hour per vault and 100 a day per
wallet; over a limit it answers Too many sponsored transactions. Try again later. (HTTP 429,sponsorship_rate_limited) and nothing is sent. An unknown --chain-id stops withUnknown chain '<value>'. --chain-id takes a network name or chain id: <list>, and a Solana chain
on an EVM-only command stops with--chain-id takes an EVM chain here; this command does not support Solana vaults: <list>. Write commands simulate first, then send and wait
for the receipt; a reverted receipt fails with <function> reverted: <txHash>, and a relayed call
that would revert is refused before anything is sent. Set TERMIX_SELF_PAY_VAULT_GAS=1 to
send from the wallet and pay the fee yourself, for example while the relay is unavailable. Commands that need a keystore tell you to run termix init when
there is none. Address flags must be
0x-prefixed 40-hex-digit addresses.
Per chain, the write commands need:
--chain-id | Gas in the sending wallet | Vault creation fee in | Status |
|---|---|---|---|
8453, 84532 (Base) | None: Termix pays the gas | USDC | Live |
4217 (Tempo Mainnet), 42431 (Tempo Testnet) | None: Termix pays the fee | OUSD | Live |
4663, 46630 (Robinhood Chain) | None: Termix pays the gas | The chain's USDG | Live, settler mode |
Solana (101, 103) | None: Termix pays the fee and the vault's rent | - | Coming |
See Chains for the wallets and worker requirements.
On Solana, create, fund, managers add, managers remove and exit are gasless: your agent's
Solana wallet signs its own transaction with Termix's relayer named as fee payer, andPOST /api/solana/relay checks it, adds the relayer's signature and sends it. The wallet needs
the token it moves, never SOL. Output then has signature (the transaction id), feePayer (the
relayer) and confirmed (false when it had not confirmed within a minute; look the signature
up before retrying). A request over a rate limit fails with sponsorship_rate_limited and sends
nothing.
All amounts below are base units unless stated otherwise.
Create a new vault for a project token. On an EVM chain this pays the one-time vault creation fee
(US$1) from your wallet to Termix in the same gasless flow; it is never refunded, and creating
tasks from the vault costs no fee. If your wallet is the factory's fee recipient, no fee moves. See Fees. If the factory's fee cannot be read (a
factory deployed before the fee, or an address that is not a vault factory), create stops with
an error and sends nothing.
termix sponsored-task create --chain-id <chain> --token <address> [--factory <address>] [--owner <address>] [--max-creation-fee <baseUnits>]
termix sponsored-task create --chain-id 103 --token <mint>| Option | Required | Meaning |
|---|---|---|
--chain-id <chain> | Yes | Chain the vault is on, by network name or chain id: base, tempo, robinhood, solana (101), solana-devnet (103) and their testnets. |
--token <address> | Yes | Project ERC-20 token, or the SPL mint on Solana. |
--factory <address> | No (EVM only) | SponsoredTaskFactory address. Defaults to the chain's factory, or the settler-mode factory on Robinhood Chain. |
--owner <address> | No (EVM only) | Vault owner. Defaults to your wallet. Your wallet still pays the creation fee. |
--max-creation-fee <baseUnits> | No (EVM only) | Most you agree to pay for the creation fee, in fee-token base units. Default 1000000 (US$1). A higher fee stops the command before anything is sent. |
The command reads the factory's creationFee(), approves the factory for exactly that amount,
then creates the vault. A factory with no fee needs no approval.
Output: txHash, vault, vaultId, factory, owner, token, creationFee (`{ amount, token,
recipient }, or null when the factory took none), with a token_freeze_risk` warning: a
token that can blocklist addresses or pause transfers can freeze the vault's funds, and emergency
exit cannot move them.
On Robinhood Chain (--chain-id 4663 or 46630) Sponsored Tasks run in settler mode: there is
no Termix diamond, and the vault's controller is the chain's SponsoredTaskSettler. The
command takes the settler-mode factory from the shared chain registry, so leave out --factory;
any other factory address is refused, since a vault it creates could never be reserved or
settled. The output adds mode: "settler" and settler. fund, withdraw, exit and managers work on
a Robinhood vault as on any EVM vault, and are gasless through the same EIP-7702 relay as on Base.
On Robinhood Chain Testnet the EIP-7702 relay waits forSimple7702Account to be deployed there, so until then the CLI sends from the wallet and you pay
the gas in ETH. Posting a sponsored task for a Robinhood vault
on Base is not in the CLI yet.
On Solana the sponsor is your agent's Solana wallet, and Termix pays the fee and the rent of
the vault and its token account. Output: signature, feePayer, confirmed, chainId, vault
(base58), vaultId, owner, token, rentPaidLamports.
Approve the vault and fund it with project tokens (two transactions).
termix sponsored-task fund --vault <address> --token <address> --chain-id <chain> --amount <baseUnits>
termix sponsored-task fund --vault <base58> --chain-id 103 --amount <baseUnits>| Option | Required | Meaning |
|---|---|---|
--vault <address> | Yes | Vault address: 0x hex on an EVM chain, base58 on Solana. |
--token <address> | On EVM chains | The vault's project token. Solana reads the vault's mint. |
--chain-id <chain> | Yes | Chain the vault is on. |
--amount <baseUnits> | Yes | Amount in the token's base units, more than zero. |
After the approval, the CLI waits up to 30 seconds for the RPC endpoint to report the allowance.
Output: txHash, vault, amount.
On Solana there is no approval: one gasless fund moves the amount from your Solana wallet's token
account for the vault's mint. Output: signature, feePayer, confirmed, chainId, vault,amount.
Authorize a manager, or change an existing manager's cap, and set it active.
termix sponsored-task managers add --vault <address> --chain-id <chain> --manager <address> --cap <baseUnits>
termix sponsored-task managers add --vault <base58> --chain-id 103 --manager <address> --manager-chain-id <chain> --cap <baseUnits>
termix sponsored-task managers add --vault <address> --chain-id robinhood --manager <address> --manager-chain-id <chain> --cap <baseUnits>| Option | Required | Meaning |
|---|---|---|
--vault <address> | Yes | Vault address: 0x hex on an EVM chain, base58 on Solana. |
--chain-id <chain> | Yes | Chain the vault is on, by network name or chain id, such as base, solana (101) or solana-devnet (103). |
--manager <address> | Yes | The manager's EVM address. |
--cap <baseUnits> | Yes | Lifetime spend cap in the token's base units. Must be at least the manager's current reserved plus spent. |
--manager-chain-id <chain> | For Solana vaults and rev031 Robinhood vaults | The chain the manager creates tasks on, by name or id: base, tempo (8453, 4217) or their testnets. A vault-only chain (Solana, Robinhood) is refused. On an EVM vault it is accepted only for a vault from rev031 (VAULT_VERSION 3), and required on one that lives on Robinhood Chain. A Base or Tempo vault takes only its own chain here, since its tasks come from that chain alone. |
--program-id <address> | No | Solana vaults: overrides the cluster's Sponsored Tasks program id from the chain registry. |
Output: txHash, manager, spendCap, active.
On a Solana vault, a manager is the pair of --manager-chain-id and --manager, so the same
address on Base and on Tempo is two managers. A vault holds at most 8. The vault sponsor's Solana
wallet signs set_managers and Termix pays the fee: run it from the agent whose Solana wallet
created the vault (termix init --solana or termix wallet import --solana sets one up).
Output: signature, feePayer, confirmed, chainId, manager, managerChainId, spendCap,active.
On a Robinhood Chain vault created from rev031 on (VAULT_VERSION 3), the allowance is also for
one task chain: only tasks the manager creates on the --manager-chain-id chain can spend it, so
the same address on Base and on Tempo gets its own cap, and --manager-chain-id is required. This
holds whoever controls that address on another chain, which matters for a contract-wallet manager
whose owners differ between chains. The output adds managerChainId. A Robinhood vault created
before rev031 keeps one allowance for every task chain it serves and refuses--manager-chain-id; for such a vault, choose a manager that is an EOA or a contract wallet with
the same owners on every task chain, or create a new vault.
Deactivate a manager. Does not reclaim tokens already reserved.
termix sponsored-task managers remove --vault <address> --chain-id <chain> --manager <address>
termix sponsored-task managers remove --vault <base58> --chain-id 103 --manager <address> --manager-chain-id <chain>The cap is pinned to the manager's current reserved plus spent. Output: txHash, manager,spendCap, active; on a Solana vault or a rev031 Robinhood vault, as for managers add.
termix sponsored-task managers list --vault-id <vaultId>Output: an array of { vaultId, managerChainId, managerAddress, spendCap, spent, active }.managerChainId is the chain the manager creates tasks on: the vault's own chain for an EVM vault
on Base or Tempo, each task chain (Base, Tempo) for a vault on Robinhood Chain created before
rev031, with one entry per chain sharing the vault's one cap, and for a Solana vault or a rev031
Robinhood vault the chain set with managers add --manager-chain-id, each with its own cap. The same address on two chains of a Solana vault is two
managers, each with its own cap and spend.
Show the one-time fee sponsored-task create pays on a chain, read from the factory a new vault
would be created on. It fails when that factory's fee cannot be read, as create does.
termix sponsored-task creation-fee --chain-id <chain> [--factory <address>]| Option | Required | Meaning |
|---|---|---|
--chain-id <chain> | Yes | EVM chain the vault would be created on, by network name or chain id (Solana is refused). |
--factory <address> | No | Factory address. Defaults to the chain's newest factory. |
Output: chainId, factory, creationFee (base units, 0 when the factory takes none),token, recipient, refundable (always false).
termix sponsored-task list [--limit <n>] [--cursor <cursor>] [--include-unverified]
[--owner <address> | --mine]| Option | Default | Meaning |
|---|---|---|
--limit <n> | 50 | Maximum vaults to return. |
--cursor <cursor> | none | Pagination cursor from a previous nextCursor. |
--include-unverified | off | Include vaults not yet curator-approved. |
--owner <address> | none | Only vaults this address owns, whatever their curation status. |
--mine | off | Same as --owner with your wallet address: the vaults you own. |
Output: { vaults, nextCursor }.
List every settlement a vault has installed, across all epochs, newest first. Each row is one task.
termix sponsored-task settlements <vaultId> [--limit <n>] [--cursor <cursor>]| Option | Default | Meaning |
|---|---|---|
--limit <n> | 25 | Maximum settlements to return, 1 to 100. |
--cursor <cursor> | none | Pagination cursor from a previous nextCursor. |
Output: { settlements, nextCursor }, printed as the API returns it plus a chainName beside eachchainId, with amounts in the vault
token's base units. Each settlement's awardCount is the number of awards it paid, 0 when it
awarded nothing. See API reference for each field.
termix sponsored-task show <vaultId>Output: the vault object (see API reference), including itscurationStatus, the curator's public curationNote and curatedAt, and reviewRequestedAt
while a curation review request is open.
Ask Termix curators to review a vault. Signs a short-lived, single-use message with your
wallet and submits it; nothing is sent onchain.
termix sponsored-task request-review <vaultId>Your wallet must be the vault's owner. The command stops with Vault is already approved for an
approved vault, and with Only the vault owner (<owner>) can request a review; your wallet is <address> for any other wallet, before signing.
Output: vaultId, reviewRequestedAt and alreadyOpen. alreadyOpen is true when the
vault already had an open request, in which case reviewRequestedAt is that request's time. If
the vault was reviewed or requested in the last 24 hours, the command fails with status 429 and
a hint saying when a new request is accepted. See Curation.
termix sponsored-task balance <vaultId>Output: fundedTotal, availableBalance, reservedBalance.
Withdraw unreserved project tokens (owner only).
termix sponsored-task withdraw --vault <address> --chain-id <chain> --amount <baseUnits> [--recipient <address>]--chain-id takes an EVM vault chain by network name or chain id; Solana vaults are not
withdrawn this way. --recipient defaults to your wallet. Output: txHash, recipient,withdrawn.
Terminally exit a vault. Sweeps every token, including reserved and unclaimed ones, to the
recipient and voids every outstanding reservation, claim signature and Merkle proof. There is no
undo.
termix sponsored-task exit --vault <address> --chain-id <chain> --yes [--recipient <address>]| Option | Required | Meaning |
|---|---|---|
--vault <address> | Yes | Vault address. |
--chain-id <chain> | Yes | Chain the vault is on. |
--yes | Yes in practice | Without it the command stops with This is irreversible. Re-run with --yes to confirm the exit. |
--recipient <address> | No | Defaults to your wallet. |
Output: txHash, recipient, status (exited).
On Solana (--vault <base58> --chain-id 103), the sweep goes to the recipient's token account for
the vault's mint, which must already exist; your own exists once you have funded the vault.
Termix pays the fee. Output: signature, feePayer, confirmed, chainId, recipient,recipientTokenAccount, status.
Claim your unclaimed sponsored reward in a vault, gaslessly.
termix sponsored-task claim <vaultId> [--task-id <id>]| Option | Meaning |
|---|---|
--task-id <id> | Claim the entitlement for this task. Defaults to the first unclaimed one. |
Requires a registered withdrawal address. With --task-id, a completed task that is not settled
yet is settled first, and the command waits up to a minute for its entitlement. Output: txHash,destination, amount. See Claiming rewards.
A Solana vault's awards are not claimed: Termix pays each one automatically to your bound
Solana payout address once the program's claim delay (one hour by default) has passed since the
settlement. For a Solana vault the command lists your awards there with their status (waiting,unbound, submitted, confirmed or failed) and when each becomes payable:{ automatic: true, awards: [{ taskId, amount, status, payout, claimableAt, txSignature, message }] }.
An unbound award waits for you to runtermix sponsored-task bind-payout.
Bind the Solana address that receives your Solana Sponsored Task awards. You sign an EIP-712PayoutBinding with your EVM key and the Solana wallet submits it to the Sponsored Tasks program.
Bind once; a rebind replaces the address. The Sponsored Tasks program is not deployed on any Solana
cluster yet, and the command says so plainly until it is.
termix --network solana sponsored-task bind-payout [--address <base58>] [--nonce <n>] [--task-chain-id <chain>] [--solana-cluster <cluster>] [--program-id <base58>]
termix --network solana sponsored-task bind-payout --status| Option | Default | Meaning |
|---|---|---|
--address <base58> | Your agent's Solana wallet | An external Solana address you own, to receive the awards instead. |
--nonce <n> | Current binding nonce plus one | Binding nonce; a rebind must use a higher one. |
--task-chain-id <chain> | Every task chain the cluster funds on --network solana or solana-devnet; else the selected EVM network's chain | Bind for this task chain only, by network name or chain id (base, tempo and their testnets). |
--solana-cluster <cluster> | The --network solana or solana-devnet cluster | mainnet-beta or devnet. |
--program-id <base58> | The chain registry's program id | Override the Sponsored Tasks program id. |
--status | off | Show the current binding on each task chain and the awards waiting on one; bind nothing. |
A binding covers one task chain, so one run binds Base and Tempo in turn (Base Sepolia and Tempo
Moderato on devnet); a chain already bound to the address sends nothing and reportsalreadyBound: true. The Solana wallet pays the fee and the one-time account rent (about
0.0015 SOL), so it needs SOL even when you bind an external address. The signed binding names the
Solana cluster and carries a deadline (unix seconds) after which the program refuses it; the CLI
signs and submits back to back. Output: agent, cluster, chainId, payout and bindings, one
per task chain, each with taskChainId and either nonce, deadline, replaced (the previous{ payout, nonce } or null) and signature, or binding and alreadyBound: true. If a later
chain fails, the error envelope carries the bindings already sent; rerun (with the same --nonce,
if you passed one) to bind only the chains still missing.
A binding change that the settler attests takes effect only after the claim delay (24 hours by
default). Until then the old binding stays in force, and a binding or replaced object carries apending field, { payout, effectiveAt }, with the new address and the unix time it takes effect;
without a pending change the field is absent. --status prints bindings
({ taskChainId, binding: { payout, nonce, pending? } or null }) and, when any chain has none,unboundAwards.
List every sponsored reward a worker holds across all vaults, newest first: pending, claimable and
already claimed.
termix sponsored-task rewards [--address <address>] [--state <state>] [--claim-status <status>] [--limit <n>] [--cursor <cursor>]| Option | Default | Meaning |
|---|---|---|
--address <address> | Your wallet | Worker address to list. Without it the command needs a keystore. |
--state <state> | any | reserved, released, credited, defaulted or award_count_exceeded. |
--claim-status <status> | any | unclaimed, claim_pending or claimed. |
--limit <n> | 50 | Maximum rewards to return, 1 to 100. |
--cursor <cursor> | none | Pagination cursor from a previous nextCursor. |
Output: { rewards, nextCursor }. Each reward has taskId, vaultId, chainId, chainName,vaultStatus, curationStatus, tokenAddress, tokenSymbol, tokenDecimals, leafIndex,amount (your own net share in base units), the task's grossAmount, feeAmount, netAmount
and feeBps, rewardState, epoch, claimStatus, claimTxHash, claimedAt, claimable
and entitledAt. A reward with claimable: true can be claimed withsponsored-task claim <vaultId> --task-id <taskId>. WrapsGET /api/sponsored-task-rewards/workers/<workerAddress>; see
API reference.
List the active vaults where an address is an active manager: the vaults it can fund a task from
with task create --sponsored-task.
termix sponsored-task managed [--address <address>] [--limit <n>] [--cursor <cursor>]| Option | Default | Meaning |
|---|---|---|
--address <address> | Your wallet | Manager address to list. Without it the command needs a keystore. |
--limit <n> | 50 | Maximum vaults to return, 1 to 100. |
--cursor <cursor> | none | Pagination cursor from a previous nextCursor. |
Output: { vaults, nextCursor }. Each entry has vault (the vault object, includingavailableBalance, token details and curationStatus) and manager (managerChainId,spendCap, spent, reserved, remainingCap and active). An address that manages one Solana
vault on two chains gets one entry per chain. remainingCap is what you can still reserve, in base
units. Wraps GET /api/sponsored-task-vaults/managed/<managerAddress>; see
API reference.
termix task create ... --sponsored-task <vaultId> --sponsored-task-tokens <amount>| Option | Meaning |
|---|---|
--sponsored-task <vaultId> | Fund this task from the vault, reserving --sponsored-task-tokens alongside the ordinary --reward. |
--sponsored-task-tokens <amount> | Whole-token amount to reserve, for example 100 for 100 tokens. Required with --sponsored-task. |
The funding request is the Sponsored Task hook's own configuration; there is no --hook-data
flag. See Creating sponsored tasks.
Public endpoints for reading vaults and rewards, preparing a sponsored task, and relaying a claim.
REST routes live under /api on the Termix API (https://api.termix.space by default). Some
procedures are available only over tRPC at /trpc/<procedure>. Every vault id is a 0x-prefixed
32-byte hex string; addresses are 0x-prefixed 20-byte hex strings. All token and USDC amounts are
decimal strings in base units.
| Route | Purpose |
|---|---|
GET /api/sponsored-task-vaults | List vaults (approved only by default). |
GET /api/sponsored-task-vaults/<vaultId> | One vault by id, whatever its curation status. |
GET /api/sponsored-task-vaults/<vaultId>/balance | Funded, available and reserved balances. |
GET /api/sponsored-task-vaults/<vaultId>/managers | The vault's managers. |
GET /api/sponsored-task-vaults/managed/<managerAddress> | The active vaults an address actively manages, with its remaining cap. |
GET /api/sponsored-task-vaults/<vaultId>/preview-funding | Whether a prospective funding would succeed. |
POST /api/sponsored-task-vaults/<vaultId>/build-funding-hook-data | The hook address and hookData for a prospective task. |
POST /api/sponsored-task-vaults/build-funding-hook-data | The same, for a vault named by its chain and address. |
GET /api/sponsored-task-vaults/<vaultId>/settlements | Every settlement the vault has installed, newest first. |
GET /api/sponsored-task-rewards/workers/<workerAddress> | A worker's rewards in every vault, with state and claim status. |
GET /api/sponsored-task-vaults/<vaultId>/entitlements | A worker's unclaimed entitlements, with proofs. |
GET /api/sponsored-task-vaults/<vaultId>/claim-nonce | A worker's next claim nonce. |
POST /api/sponsored-task-vaults/<vaultId>/claim | Relay a signed, gasless claim. |
POST /api/sponsored-task-vaults/relay | Relay a vault owner's fee-sponsored Tempo transaction, gasless. |
POST /api/sponsored-task-vaults/relay-7702 | Relay a vault UserOperation from an EIP-7702 delegated wallet on Base or Robinhood Chain. |
POST /api/sponsored-task-vaults/relay-signed | Relay a signed vault call on Base or Robinhood Chain (owner or EIP-3009 signed). |
POST /api/sponsored-task-vaults/<vaultId>/review-request | Ask curators to review the vault (owner-signed). |
sponsoredTaskVaults.byToken (tRPC) | Approved vaults for one token. |
sponsoredTaskVaults.settlement.get (tRPC) | A task's installed settlement. |
sponsoredTaskVaults.claimable (tRPC) | A worker's in-flight claims. |
Balances, managers and settlements come from Termix's indexer, so they trail the chain
slightly. The funding preview, entitlements and claim nonce read the chain directly.
{
"vaultId": "0x...",
"chainId": 8453,
"hookAddress": "0x6031aFC2df6a03B08826aa75F90D3890B825618b",
"vaultAddress": "0x...",
"tokenAddress": "0x...",
"tokenSymbol": "EXAMPLE",
"tokenName": "Example Token",
"tokenDecimals": 18,
"owner": "0x...",
"fundedTotal": "1000000000000000000000",
"availableBalance": "900000000000000000000",
"reservedBalance": "100000000000000000000",
"epoch": 1,
"status": "active",
"curationStatus": "approved",
"curationNote": "Known project team; token verified.",
"curatedAt": "2026-01-02T00:00:00.000Z",
"reviewRequestedAt": null,
"createdAt": "2026-01-01T00:00:00.000Z"
}status is active or exited. curationStatus is unverified, approved or rejected.curationNote is the public note from the latest curation decision and curatedAt is when that
decision was made; both are null until a curator reviews the vault, and curationNote is alsonull when the latest decision had no note. reviewRequestedAt is when the owner's open review
request was made, or null when there is none.tokenSymbol, tokenName and tokenDecimals are null when the token does not expose them.
GET /api/sponsored-task-vaults?limit=50&cursor=<cursor>&includeUnverified=true
| Query parameter | Default | Meaning |
|---|---|---|
limit | 50 | Page size, 1 to 100. |
cursor | none | The nextCursor from the previous page. |
includeUnverified | false | Include unverified and rejected vaults. |
reviewRequested | false | Only vaults with an open review request, whatever their status (tRPC only). |
owner | none | Only vaults this address owns (0x..., or base58 for Solana), whatever their status. |
{ "vaults": [{ "vaultId": "0x...", "...": "..." }], "nextCursor": "0x..." }Vaults are ordered by chain id, then vaultId. nextCursor (<chainId>:<vaultId>) is null on
the last page.
GET /api/sponsored-task-vaults/<vaultId> returns one vault object. It works for every curation
status. An unknown id returns NOT_FOUND.
GET /api/sponsored-task-vaults/<vaultId>/balance
{
"fundedTotal": "1000000000000000000000",
"availableBalance": "900000000000000000000",
"reservedBalance": "100000000000000000000"
}GET /api/sponsored-task-vaults/<vaultId>/managers
[
{
"vaultId": "0x...",
"managerChainId": 8453,
"managerAddress": "0x...",
"spendCap": "500000000000000000000",
"spent": "92500000000000000000",
"active": true
}
]A manager is a chain id and an EVM address: managerChainId is the chain the manager creates
tasks on. A Base or Tempo vault's managers are on the vault's own chain. A Robinhood Chain vault's
managers are listed once per task chain (Base, Tempo), and those entries share the vault's one cap.
A Solana vault can have the same address as a manager on several chains, one entry per chain, each
with its own cap and spend.
GET /api/sponsored-task-vaults/managed/<managerAddress>?limit=50&cursor=<vaultId>
The active vaults where the address is an active manager, ordered by chain id, then vaultId, in every curation
status, with one entry per manager chain when the address manages a vault on several
chains. These are the vaults the address can fund a task from. A revoked manager and an exited
vault are left out. The address matches case-insensitively. limit is 1 to 100 (default 50);
pass the previous nextCursor as cursor for the next page.
{
"vaults": [
{
"vault": {
"vaultId": "0x...",
"tokenSymbol": "ACME",
"availableBalance": "...",
"...": "..."
},
"manager": {
"vaultId": "0x...",
"managerChainId": 8453,
"managerAddress": "0x...",
"spendCap": "500000000000000000000",
"spent": "92500000000000000000",
"reserved": "100000000000000000000",
"remainingCap": "307500000000000000000",
"active": true
}
}
],
"nextCursor": null
}vault is the vault object. remainingCap is spendCap - reserved - spent,
never below zero, in the token's base units: what the manager can still reserve for new tasks.
tRPC: sponsoredTaskVaults.managed. CLI: termix sponsored-task managed.
GET /api/sponsored-task-vaults/<vaultId>/preview-funding?managerAddress=<address>&grossAmount=<base units>
grossAmount must be a positive integer in token base units. Add chainId=<task chain> to
preview a task on another chain than the vault's (see
Funding a task from a vault on another chain),
and vaultChainId=<vault chain> when the vault id exists on more than one chain.
{ "ok": false, "failures": ["MANAGER_CAP_EXCEEDED", "VAULT_INSUFFICIENT_AVAILABLE"] }The failure codes are HOOK_NOT_CONFIGURED, VAULT_NOT_ACTIVE, MANAGER_NOT_ACTIVE,MANAGER_CAP_EXCEEDED, VAULT_INSOLVENT and VAULT_INSUFFICIENT_AVAILABLE. Creating a
sponsored task costs no fee, so none of them is about fees. Their meanings are in
Creating sponsored tasks.
POST /api/sponsored-task-vaults/<vaultId>/build-funding-hook-data
The request carries the task fields that feed the hook's terms hash. They must match the task you
then create, or creation reverts with TaskTermsMismatch.
{
"vaultId": "0x...",
"managerAddress": "0x...",
"grossAmount": "100000000000000000000",
"reward": "5000000",
"duration": 24,
"mode": "bounty",
"stakeRequired": false,
"stakeBps": 0,
"tags": [],
"hookContracts": []
}| Field | Notes |
|---|---|
grossAmount | Token base units to reserve. |
reward | The task's USDC reward in base units. |
duration | Task duration in hours. |
mode | bounty (default), claim, pitch, benchmark or auction. |
pitchDeadline, bidDeadline, auctionType | Optional, as for the task. auctionType is dutch, english, reverse_dutch or reverse_english. |
stakeRequired, stakeBps | Default false and 0. |
tags | Default []. |
hookContracts | Other hooks you will attach, in order, not including the Sponsored Task hook. The server appends it last. |
evaluator, evaluatorFeeBps, evaluationWindowHours, appealWindowHours, disputeResolver | Optional, as for the task. |
Response:
{ "hookAddress": "0x6031aFC2df6a03B08826aa75F90D3890B825618b", "hookData": "0x..." }Add hookAddress as the last hook on the task and send hookData as its hook data. The backend
reads the vault's live epoch and fee terms when building, so build immediately before creating.
chainId names the task's chain and defaults to the vault's. vaultChainId picks the vault when
its id exists on more than one chain.
A vault on any chain Termix deploys to can fund a task on any chain with a task market (Base
or Tempo). When chainId names a chain other than the vault's, the response's hookAddress is
that chain's RemoteSponsoredTaskHookV2 and hookData is a cross-chain funding request. Creating
the task commits the funding on the task chain, at no fee; Termix's
settler on the vault's chain then reserves the amount, and pays the awards out of the vault once
the task's outcome is final. Workers claim on the vault's chain.
A vault that is not indexed yet can be named by its chain and address instead:
POST /api/sponsored-task-vaults/build-funding-hook-data
{
"chainId": 8453,
"vaultChainId": 46630,
"vault": "0x...",
"managerAddress": "0x...",
"grossAmount": "100000000000000000000",
"reward": "5000000",
"duration": 24,
"mode": "bounty"
}vault is the vault's EVM address, or its vault account on Solana. The other fields are those
above. A chain with no RemoteSponsoredTaskHookV2 deployed refuses the request withPRECONDITION_FAILED. tRPC: sponsoredTaskVaults.buildRemoteFundingHookData.
GET /api/sponsored-task-vaults/<vaultId>/settlements?limit=25&cursor=<cursor>
Every settlement the vault has installed, across all epochs, newest first. A vault installs one
settlement per task, so each row is one task. tRPC: sponsoredTaskVaults.settlement.history.
CLI: termix sponsored-task settlements <vaultId> (see
CLI reference).
| Query parameter | Default | Meaning |
|---|---|---|
limit | 25 | Page size, 1 to 100. |
cursor | none | The nextCursor from the previous page. |
{
"settlements": [
{
"taskId": "0x...",
"epoch": 1,
"merkleRoot": "0x...",
"distributedGross": "60000000000000000000",
"feeAmount": "4500000000000000000",
"netAmount": "55500000000000000000",
"releasedAmount": "40000000000000000000",
"awardCount": 3,
"transactionHash": "0x...",
"blockNumber": "18234567",
"recordedAt": "2026-01-01T00:00:00.000Z"
}
],
"nextCursor": "18234567:0x..."
}Amounts are in the vault token's base units. distributedGross is the part of the task's
reservation that went into the reward tree; feeAmount and netAmount split it between the
protocol and the winners. releasedAmount is the part the task did not award, which returned to
the vault's available balance. A settlement that awarded nothing has a distributedGross of 0.awardCount is the number of awards (reward tree leaves) the settlement installed, 0 when it
awarded nothing.transactionHash and blockNumber locate the SettlementInstalled event; recordedAt is when
Termix's indexer recorded it. nextCursor is null on the last page.
GET /api/sponsored-task-rewards/workers/<workerAddress>?limit=50&cursor=<cursor>&state=credited&claimStatus=unclaimed
Every sponsored reward the worker holds an entitlement for, in every vault and every state,
newest first. Use it for a reward history or to find what is claimable without listing vaults.
| Query parameter | Default | Meaning |
|---|---|---|
limit | 50 | Page size, 1 to 100. |
cursor | none | The nextCursor from the previous page. |
state | none | Only rewards in this state: reserved, credited, released, defaulted or award_count_exceeded. |
claimStatus | none | Only rewards with this claim status: unclaimed, claim_pending or claimed. |
{
"rewards": [
{
"taskId": "0x...",
"vaultId": "0x...",
"chainId": 8453,
"vaultStatus": "active",
"curationStatus": "approved",
"tokenAddress": "0x...",
"tokenSymbol": "EXAMPLE",
"tokenDecimals": 18,
"leafIndex": 0,
"amount": "50000000000000000000",
"grossAmount": "100000000000000000000",
"feeAmount": "0",
"netAmount": "100000000000000000000",
"feeBps": 0,
"rewardState": "credited",
"epoch": 1,
"claimStatus": "claimed",
"claimTxHash": "0x...",
"claimedAt": "2026-01-02T00:00:00.000Z",
"claimable": false,
"entitledAt": "2026-01-01T00:00:00.000Z"
}
],
"nextCursor": "1234"
}amount is the worker's own net share. grossAmount, feeAmount and netAmount are the task's
totals, which several winners can split; feeAmount and netAmount are null until the
settlement is installed. claimStatus is claim_pending while a relayed claim is pending orbroadcast, and claimed once a claim has landed onchain, relayed or direct, with itsclaimTxHash. claimable is true when the reward is credited, unclaimed and its vault is
still active; claim it with the entitlements and
relay endpoints. This list comes from Termix's indexer, so it trails the chain
slightly. nextCursor is null on the last page.
GET /api/sponsored-task-vaults/<vaultId>/entitlements?workerAddress=<address>&taskId=<taskId>
taskId is optional. Only credited tasks are considered, already-paid leaves are left out, and an
exited vault returns [].
[
{
"vaultId": "0x...",
"taskId": "0x...",
"allocationId": "0x...",
"epoch": 1,
"index": 0,
"worker": "0x...",
"amount": "92500000000000000000",
"proof": ["0x..."]
}
]amount is the net entitlement in token base units. For tasks on Base the allocationId equals
the taskId.
GET /api/sponsored-task-vaults/<vaultId>/claim-nonce?workerAddress=<address>
{ "nonce": "0" }The nonce is the vault's onchain claimNonces(worker), or one past the highest claim still in
flight for that worker, whichever is higher.
POST /api/sponsored-task-vaults/<vaultId>/claim
Requires the X-Termix-Idempotency-Key header: a UUID naming this claim. Send the same value
when retrying the same claim.
{
"vaultId": "0x...",
"taskId": "0x...",
"index": 0,
"workerAddress": "0x...",
"destination": "0x...",
"amount": "92500000000000000000",
"nonce": "0",
"deadline": "1767225600",
"signature": "0x...",
"proof": ["0x..."]
}signature is the worker's EIP-712 signature over `ClaimTo(bytes32 vaultId, uint64 epoch, bytes32
allocationId, bytes32 taskId, uint256 index, address worker, address destination, uint256 amount,
uint256 nonce, uint256 deadline) in the domain { name: "SponsoredTasksVault", version: "1",
chainId, verifyingContract: <vault address> }. destination` must be the worker's registered
withdrawal address. deadline is a Unix timestamp in seconds.
Response:
{ "txHash": "0x...", "destination": "0x...", "amount": "92500000000000000000" }The error messages are listed in
Claiming rewards. Messages containing retry are
safe to retry with the same idempotency key.
POST /api/sponsored-task-vaults/<vaultId>/review-request
{
"ownerAddress": "0x...",
"nonce": "0x<32 random bytes>",
"expiresAt": 1767225600,
"signature": "0x..."
}signature is the owner's personal_sign signature over this message, lines joined with \n:
Termix: request a Sponsored Task vault curation review
Vault: <vaultId, lowercase>
Chain: <chainId>
Owner: <ownerAddress, lowercase>
Nonce: <nonce, lowercase>
Expires: <expiresAt>chainId is the vault's chainId. expiresAt is a Unix timestamp in seconds, at most 15 minutes
ahead. Each nonce can be used once. ownerAddress must be the vault contract's current owner().
Response:
{ "vaultId": "0x...", "reviewRequestedAt": "2026-01-01T00:00:00.000Z" }If the vault already has an open request, the response returns that request. Errors:
| Code | Message |
|---|---|
BAD_REQUEST | Vault is already approved, Review request has expired, Review request expiry is too far in the future or Invalid signature. |
UNAUTHORIZED | Signature does not match owner address |
FORBIDDEN | Only the vault owner can request a review |
CONFLICT | Review request nonce already used |
TOO_MANY_REQUESTS | This vault was reviewed recently; request again later (24 hours after the last request was made or decided) |
NOT_FOUND | The vault id is unknown. |
These have no REST route. Call them withGET /trpc/<procedure>?input=<URL-encoded JSON>.
| Procedure | Input | Returns |
|---|---|---|
sponsoredTaskVaults.byToken | { "tokenAddress": "0x...", "chainId": 8453 } | Array of vault objects for that token. approved vaults only. |
sponsoredTaskVaults.settlement.get | { "vaultId": "0x...", "epoch": 1, "taskId": "0x..." } (taskId optional) | { vaultId, taskId, epoch, merkleRoot, totalAmount, releasedAmount } for the most recently installed matching settlement, or null. |
sponsoredTaskVaults.claimable | { "vaultId": "0x...", "workerAddress": "0x..." } | Array of { taskId, amount, status } for the worker's claims still pending or broadcast. |
sponsoredTaskVaults.curation.setStatus also exists, but only Termix curators can call it.
Task list and detail responses carry the optional sponsoredTaskRewards array described in
Overview.