DocsSponsored TasksFor Sponsors
This page walks a sponsor through creating a vault, funding it and authorizing a manager to create
tasks. Creating the vault pays a one-time US$1 fee; creating tasks from it costs no fee. The example uses Base Mainnet; the Base Sepolia addresses are in
Contracts and deployments.
Every owner step on this page can also be done at
termix.space/sponsored-tasks/vaults with a connected browser
wallet, with no CLI, keystore or RPC endpoint:
The web app takes amounts in whole tokens (for example 1.5) and converts them with the token's
decimals; a token with unknown decimals takes base units. Every action is signed by your wallet and
shows its transaction on the block explorer. Creating and funding ask for two
signatures, an approval and then the create or the deposit, and the app waits for the approval to be visible
before asking for the second. The rest of this page covers the CLI.
You need:
termix init). The CLI keeps its keystore in~/.termix, or in the directory named by TERMIX_HOME.--chain-id by default; set TERMIX_RPC_URL to use your own. Each command checks that--chain-id and stops withTERMIX_RPC_URL points at chain <n>, vault needs <m> if it does not.TERMIX_SELF_PAY_VAULT_GAS=1 the wallet sends each transaction and pays the fee itself: ETHTERMIX_FEE_TOKEN picks another one).# Optional: your own RPC endpoint instead of the chain's public one
export TERMIX_RPC_URL=https://<your Base Mainnet RPC endpoint>If the project token can blocklist addresses or pause transfers, its issuer can freeze the
vault's funds, and emergency exit cannot move them. Tokens with a transfer fee or a transfer hook
that changes the amount cannot fund a vault.
Every write command simulates the call before sending it, so a call that would revert reports the
revert reason without spending gas, then waits for the receipt.
Administration commands take amounts in the token's smallest unit. USDC has 6 decimals, so5000000 is 5 USDC. Most project tokens have 18 decimals, so 1,000 tokens is1000000000000000000000. The one exception is task create --sponsored-task-tokens, which takes a
whole-token amount and converts it using the vault's token decimals.
termix sponsored-task create \
--factory 0xBba8233513A7e665FbCE91837d0492D4753f7A2e \
--chain-id 84532 \
--token <project token address>The vault owner defaults to your own wallet. Pass --owner <address> to make another address,
such as a Safe, the owner from the start.
Creating the vault pays the one-time creation fee, US$1 in USDC on Base, from your wallet: the CLI
approves the factory for the fee, then creates the vault, both gasless. The fee is never refunded,
and creating tasks from the vault costs nothing more. Check the fee first withtermix sponsored-task creation-fee --chain-id 8453; create refuses a fee above--max-creation-fee (US$1 by default). See Fees.
The response includes txHash, vault (the vault
address), vaultId, owner, token and creationFee. Keep both the vault address and the vaultId:
onchain administration commands take --vault <address>, while read commands and task creation
take the vaultId.
termix sponsored-task fund \
--vault <vault address> \
--token <project token address> \
--chain-id 8453 \
--amount <base units>This sends two transactions: an ERC-20 approval for the vault, then the vault's fund. Between
them the CLI waits up to 30 seconds for the RPC endpoint to report the new allowance, because a
load-balanced RPC endpoint can answer from a node that has not seen the approval yet. You can fund
again at any time to top up.
termix sponsored-task managers add \
--vault <vault address> \
--chain-id 8453 \
--manager <manager address> \
--cap <base units>The manager is the wallet that will run task create --sponsored-task, and it may be your own
address. The cap is the manager's lifetime token allowance on this vault. See
Managing a vault.
termix sponsored-task show <vaultId>
termix sponsored-task balance <vaultId>
termix sponsored-task managers list --vault-id <vaultId>These read Termix's indexed view of the vault, so they need no RPC endpoint and no gas. A new
vault can take a short while to appear.
A new vault is unverified. Its rewards still appear on tasks, but without a USD value, and it is
left out of the default vault list until a Termix curator approves it. To ask for a review,
open the vault page on termix.space with the owner wallet connected and choose **Request
review**, or run termix sponsored-task request-review <vaultId> with the owner wallet. See
Curation.
The manager can now create tasks funded from the vault:
termix task create --description "..." --reward 5 --duration 24 \
--sponsored-task <vaultId> --sponsored-task-tokens 100