Composer walkthrough
The composer is the page where you create a campaign. You build the whole configuration in your browser, sign it with your wallet, and send it to Altar. Altar creates the campaign in one step.
The composer is at https://altar.fund/#/compose.
How creation works
Section titled “How creation works”- The browser builds a complete campaign configuration from your choices.
- Your wallet signs it with a typed-data signature (EIP-712). The kind is
campaignImport. The signature covers the exact text of the configuration plus a timestamp. - The browser sends the signed configuration to
POST /admin/campaign/import. - Altar checks the configuration, recovers your address from the signature, and creates the campaign. The address that signs becomes the sole admin of the new campaign.
- The whole write happens in one all-or-nothing database transaction: the campaign, your admin role, every network, and every token price source.
Choose the signing wallet with care. It does not need an existing role and it does not need funds. It is the only wallet that can manage the campaign afterward, until it grants admin roles to others.
Before you start
Section titled “Before you start”Have these ready:
- A campaign identifier: short and unique. It becomes part of the campaign address and the database key. Altar refuses a duplicate with HTTP 409.
- The name, description, and the short and long terms texts.
- The start time, the inflection time, and optionally the end time. See Campaign lifecycle.
- The networks the campaign accepts, and a public root address for each. Deposit addresses are derived from it. It is a public value: you never enter a seed phrase or a private key. A wrong root address gives users deposit addresses you cannot sweep, so check each one twice.
- The tokens you accept, each with a price source.
Step 1: choose a starting mode
Section titled “Step 1: choose a starting mode”The “Start from” menu offers four modes:
- A preset. A ready-made template. Altar ships these:
| Preset | What it gives you | Networks |
|---|---|---|
Empty campaign empty | A blank campaign with the default points curve and no networks or tokens. Add chains and tokens after creating. | None |
Single-chain PulseChain pulsechain-single | A PulseChain-only campaign with the default points curve. Supply the PulseChain root address, then add tokens. | PulseChain |
Major EVM chains evm-majors | A multi-chain campaign across the major Ethereum-compatible networks with the default points curve. Supply each chain root address, then add tokens. | Ethereum, Base, BNB Smart Chain, Polygon, Arbitrum One, Optimism |
Blue-chip multi-chain blue-chips | A multi-chain campaign seeded with major-cap tokens from the curated catalog. Supply each chain root address before importing. | evm:1, evm:10, evm:56, evm:137, bip32:0, bip32:2, bip32:145, cardano:1852, evm:369 |
- Clone an existing campaign. Copies the configuration of a campaign that already exists.
- Import a file. Loads a configuration you exported earlier (a JSON file).
- From scratch. You pick chains and token groups with filters, and the composer resolves them against the token catalog.
Step 2: identity and schedule
Section titled “Step 2: identity and schedule”Fill in the identity fields (identifier, name, description, website, logo, tagline, banner, colors, terms texts, tags, social links) and the schedule. The composer also asks whether to count deposits made before the start time. When off, those deposits earn nothing. See Early deposits.
The composer starts with the default points curve. You change the curve after creation, in the admin page. See Campaign settings.
Step 3: root addresses
Section titled “Step 3: root addresses”Each network needs a root address. The format depends on the network family:
- Ethereum-compatible chains: one address.
- Bitcoin-style chains: the extended public key for the network.
- Cardano: the account extended public key.
- XRP and Stellar: one root account address. Users are told apart by a memo.
Step 4: review
Section titled “Step 4: review”Check the identifier, the networks and their root addresses, and every token’s price source. A token with no working price source is never priced, so its deposits do not earn points.
The composer checks the configuration before it asks for your signature. It lists every problem it finds. The checks include:
- The inflection time is not before the start time. The end time is not before the inflection time.
- No network appears twice, and every network has a root address.
- Every token price source points to a network of the campaign, and none is listed twice.
- A price source other than
stablenames a market. - For an onchain campaign, a valid registry address and a 32-byte registry key.
Step 5: sign and create
Section titled “Step 5: sign and create”Click Create campaign and approve the signature request. On success the app opens the admin view of the new campaign. If it fails, you see the reason. Common reasons are an identifier that already exists (409), a configuration error (400), or a declined signature.
After creation, the campaign appears in GET /projects. At the time its runbook was written, the collector read its list of campaigns once at startup, so an operator restarted the collector before it began to index a new campaign. Ask your operator whether this still applies.
Export and import
Section titled “Export and import”You can export a campaign configuration as a JSON file and import it into another Altar instance. The POST /admin/campaign/export route returns the configuration, and the POST /admin/campaign/import route creates a campaign from it.