Guides
Documentation
Everything you need to launch, gate, and govern a DAO on Shadow DAOs.
Getting started
What Shadow DAOs is and how to take your first steps.
Shadow DAOs is a privacy-first governance platform. You can launch a DAO, gate its membership, raise funds, and run proposals where every ballot is a secret ballot — the tally is public, but nobody (including us) can see how an individual member voted. It works across Midnight, Cardano, and XRPL/Xahau wallets.
Here's the five-minute path from landing here to casting your first vote:
- Connect a wallet. Use Connect in the top bar. We support Midnight (Lace), Cardano (any CIP-30 wallet), and XRPL via Xaman. See Connecting a wallet for details — your wallet is your identity here; there are no accounts or passwords.
The connect menu: pick your wallet — Xaman for XRPL/Xahau, Lace for Midnight, or any CIP-30 Cardano wallet. - Join a DAO — or launch your own. Browse the public directory to find a community, or launch a new DAO from the dashboard. DAOs go live instantly; Midnight launches pay a small one-time fee on-chain. The free plan lets you join unlimited DAOs and create one of your own — paid plans raise the cap and unlock treasury tools (see the pricing page).

The directory: join a community or launch your own DAO. - Vote on proposals. Open your dashboard to see every active vote across your DAOs in one place, and cast your ballot right from there. How windows, quorum, and outcomes work is covered in Proposals and Voting. If you trust someone else's judgment, you can delegate your vote weight to them at any time.

Active votes on the dashboard — every ballot is secret. - Stay on schedule. The dashboard calendar shows every voting deadline, community event, and funding deadline across your DAOs, and each DAO page has its own calendar where members can schedule voice chats and meetings.

The calendar: deadlines and community events across your DAOs. - Earn your reputation. Every vote and proposal earns XP toward your activity level, and the most active participants appear on the leaderboard — under an alias you choose, never your wallet address.

Your activity: levels, XP, and the alias-only leaderboard.
Running a community on Discord? The Shadow DAOs bot brings proposals and voting straight into your server — see Discord bot.
Connecting a wallet
Supported wallets (Midnight, Cardano, XRPL) and how to connect.
Your wallet is your account on Shadow DAOs — there's no email signup and no password. The address you connect with is your identity for joining DAOs, voting, and creating proposals. Click Connect in the top bar and pick your wallet:
- XRPL / Xahau — Xaman (XUMM). No browser extension needed: choose Xaman, scan the QR code with the Xaman app on your phone, and approve the sign-in. Works for both XRPL and Xahau accounts.
- Midnight — Lace. Install the Lace wallet extension with Midnight support. Lace also brings its own proof server, which is what generates the zero-knowledge proofs for private actions — all in your browser, never on our servers.
- Cardano — any CIP-30 wallet. Eternl, Lace, and other CIP-30 browser extensions are detected automatically and listed in the menu.

Good to know:
- Lace chain switching: Lace exposes both Cardano and Midnight. Once connected, open the wallet menu in the top bar to flip between the two chains without reconnecting.
- Wallet not showing? Extensions inject themselves a moment after the page loads — the menu rescans for a few seconds, so reopen it if your wallet didn't appear at first. Make sure the extension is unlocked and has at least one account.
- Disconnecting: click your address in the top bar and choose Disconnect. You can also copy your full address from the same menu.
Creating a DAO
Launching your DAO with the one-time fee and the launch form, field by field.
Launching a DAO is instant: fill in one form, pay a small one-time launch fee, and your DAO goes live with governance open right away. There's no funding phase to wait through — you can add an optional funding pool later from the treasury. Here's the launch form, field by field:

- Name & Description. The DAO's public identity — the name appears in the directory and on every proposal; the description should say what the DAO governs.
- Logo & links (optional, editable later). A logo image URL plus website, X, Discord, and GitHub links. These show on your DAO's public profile so members can find your community.
- Tags (optional, up to 3). Categories like DeFi, Gaming, or Community — they organize and filter the public DAO directory so the right people find you.
- Currency. The DAO's native asset (e.g. XRP or NIGHT) — used for the launch fee and the optional funding pool later. This also determines which chain your DAO lives on.
- Visibility. Public lists the DAO in the directory where anyone can view and fund it; Private keeps it invite-only, hidden from listings and visible only in members' dashboards.
- Membership type & name. The membership asset minted to your community (e.g. an NFT) and what it's called — like "Founding Member." This is the on-chain proof that someone belongs to your DAO.
- Creator. The connected wallet shown at the bottom becomes the DAO's first admin automatically.
Hit Create DAO and pay the launch fee from your wallet — once the payment is detected on-chain, the DAO deploys and goes live. NIGHT (Midnight) launches pay the fee up front; other chains currently launch free and go live immediately.
After launch: invite members or open up self-join rules (see Gating the DAO), create your first proposal (see Proposals), and note that your plan sets how many DAOs you can create — Free covers your first, paid tiers raise the cap.
Gating the DAO
Join policies: invite-only, open, and token / NFT / proof-gated membership.
Every DAO controls how wallets become members. Admins set the join policy from the Membership settings card on the DAO page:
- Invite-only (the default). Admins add members by wallet address from the Invite member card, choosing a role for each: admin (full control), member (can vote), or observer (read-only, no vote).
- Open. Anyone with a connected wallet can self-join from the DAO page with one click.
- Gated. Anyone may join — if their wallet satisfies all of the requirements you configure. Requirements are verified on-chain at the moment they join.

Gate requirement types (you can combine several — applicants must pass every one):
- Token holding. The wallet must hold at least a minimum balance of a token — identified by issuer + currency on XRPL/Xahau, or policy id (+ optional asset name) on Cardano.
- NFT holding. The wallet must own at least N NFTs from an issuer (XRPL, with an optional taxon filter) or a policy id (Cardano).
- Midnight proof. For shielded assets that can't be read on-chain: the applicant's browser generates a zero-knowledge proof against their own proof server attesting they hold the required asset. Only the opaque proof hash ever leaves their machine — the balance itself stays private.
Changing the policy later never removes existing members — it only changes how new ones get in. Roles can be adjusted per member at any time from the member list.
Want to charge for membership instead of (or on top of) holdings? See Paid membership subscriptions.
Paid membership subscriptions
Charge a monthly USD fee to join your DAO, with a transparent revenue split.
On top of the join policies above, a DAO can put its membership behind a paid subscription. This is billed in real USD through PayPal — not crypto — using the same billing rails as the platform's own plans. Members pay a monthly price the organizer sets, and every payment is split three ways:
- 5% platform fee — fixed, taken automatically by the platform (which collects the PayPal payment).
- Organizer fee — the DAO creator's pay, set anywhere from 0% to 95% with a slider. Paid out to the PayPal email the organizer configures.
- DAO treasury — everything left over. Only the organizer fee is stored; the treasury share is always derived (100% − 5% − organizer fee), so the split can never be misstated.
Setting it up (admins). Open the Membership subscription (USD) card on your DAO page, enable the gate, set the monthly price and your organizer fee, and add your PayPal payout email. Saving provisions a PayPal billing plan for your DAO. Requires the $50/mo Community plan (Tier 2), and the server must have PayPal billing configured.
Joining (members). The DAO's join panel shows the monthly price and the full split before you pay — the revenue share is always transparent. Subscribe with the PayPal button; once PayPal approves, you're enrolled as a member automatically. Renewals are handled by PayPal each month, and cancelling keeps your membership access until the end of the period you already paid for.
Good to know:
- Changing the organizer fee or price only applies to future payments — every settled payment keeps a record of the split that was in force when it was made.
- Changing the price creates a new PayPal plan; existing subscribers keep billing at the price they signed up for.
- The organizer and treasury shares accrue on a revenue ledger (visible on the admin card) and are disbursed by the platform — organizer payouts go to the configured PayPal email.
- The subscription gate can be combined with the token/NFT requirements above: an active subscription is the entry ticket for self-joining, and admins can still invite anyone manually.
Discord bot
Inviting the Shadow DAOs bot, binding it to your DAO, and every slash command.
The Shadow DAOs bot brings governance into your Discord server: members link their wallets once, then create proposals, vote, and get new-proposal announcements without leaving Discord. It also runs Shadow Polls — quick private polls that work in any server, no DAO or wallet required. Everything is a slash command; the bot's replies are private (only you see them) unless a command says otherwise.
1. Invite the bot to your server
- Open your DAO's page as an admin and find the Discord bot card. Click Invite bot to your server — this opens Discord's standard install screen.
- Pick the server (you need Manage Server permission on it) and approve the requested permissions. The bot needs View Channel and Send Messages in any channel where it should post announcements or polls.
- Back in Discord, type
/in any channel — the Shadow DAOs commands should appear in the picker. If they don't show up after a minute, kick and re-invite the bot.

2. Bind the server to your DAO
/setup project_id:<id>(server admins) — links this server to one DAO. The ready-made command with your id filled in is on the Discord bot card (one click to copy); you can also paste the DAO's display name instead of the id. The DAO must already be live./announce-here(server admins) — run it in the channel that should receive new-proposal announcements./disconnect(server admins) — unbinds the server so you can/setupa different DAO. The same button lives on the bot card.
One server binds to one DAO. The card shows which guild is bound once setup succeeds.
3. Members link a wallet
Voting from Discord uses your wallet, so each member links one once per server. Use the command matching the DAO's chain:
/link-xrpl— XRPL / Xahau. The bot replies with a Xaman QR code; scan and approve the sign-in. Addresses are never pasted — ownership is proven by signature so nobody can impersonate a member./link-cardano— Cardano. The bot sends a link to a sign page where you sign a short message with your CIP-30 wallet (no transaction, no fee)./link-midnight— Midnight. Open the private link and sign a one-time message with Lace or 1AM to prove control of your unshielded wallet. No transaction is sent and no funds move./unlink— remove your wallet link from this server.
Linking also enrolls you in the DAO when its join policy allows it: open DAOs add you immediately, gated DAOs verify your token/NFT holdings first, and invite-only DAOs need an admin to add your address before the link completes (see Gating the DAO). The link is stored encrypted, keyed to your Discord user — your Discord id never touches the chain or the vote record.
4. Governance commands
/status— overview of the bound DAO: chain, member count, treasury, and open votes./proposals— privately list the active proposals with their ids and deadlines./proposals-publicposts the same list to the channel for everyone./propose title:… description:… [days:1–90] [hours:1|4|12] [quorum_percent:1–100]— create a proposal and open it for voting.daysdefaults to 7;hoursoverrides it for rapid votes. The DAO's proposal policy (admins only vs. all members) is enforced against your linked wallet's role, exactly as on the site./vote proposal_id:… choice:Yes|No|Abstain— cast your secret ballot. One vote per wallet; the bot confirms privately and never reveals how you voted./treasury— live on-chain balances of the treasury addresses an admin is tracking, plus the donation address.
New proposals created on the site or via /propose are announced in the /announce-here channel with a deep link to the proposal page.
5. Shadow Polls (no DAO needed)
Polls work in any server the bot is in — no /setup, no wallet link. Anyone in the server can vote; one vote per Discord account, and individual choices stay private.
/poll-create question:… options:Pizza | Sushi | Tacos [description:…]— 2 to 8 options separated by|or commas. The bot posts the poll with voting buttons in the current channel and privately gives you the poll id. Opening a poll can take a moment (on-chain polls generate a zero-knowledge proof)./poll-latest— pull up the most recent open poll and post its voting buttons in this channel so anyone can vote (no poll id needed)./poll-show poll_id:…— re-post the voting buttons in this channel./poll-results poll_id:…— show the running (or final) tally./poll-close poll_id:…— close the poll and post the final results. Only the poll's creator or a server admin can close it.
Voters simply click an option button; the bot confirms privately. Clicking again does nothing — only the first vote counts.
If something doesn't work
- "This application did not respond" — the bot's server is unreachable. If you self-host, check that the public URL in
APP_PUBLIC_URLis live and set as the Interactions Endpoint URL in the Discord Developer Portal. - Commands missing from the picker — they haven't been registered for your server. Self-hosters: run
npm run scripts:discord:register. - "Couldn't post the poll / announcement" — grant the bot View Channel + Send Messages on that channel (Edit Channel → Permissions), then run
/poll-showor/announce-hereagain. - "That wallet doesn't meet the membership requirements" — the DAO is gated; top up the required asset in the wallet you're linking and retry.
Discord bot access is part of the Starter plan and up — see the pricing page.
Proposals
Creating, activating, and managing proposals.
Proposals are how a DAO decides things. Each one has a title, a description of what's being decided, a voting window, and a quorum — and every ballot cast on it is secret.
Who can create proposals is a DAO setting (the proposal policy): admins only (the default), or any member except observers. It applies everywhere — the site and the Discord /propose command enforce the same rule.

A proposal moves through a simple lifecycle:
- Draft. Created but not yet open for voting. When it's created, the DAO's voting power is frozen in a snapshot — each member's weight and the total — so the goalposts can't move after the fact.
- Active. Activation opens the voting window: a number of days (up to 90), or a rapid 1 / 4 / 12-hour window for quick decisions. The deadline appears on the DAO calendar automatically.
- Passed or failed. When the window closes, the proposal is finalized: it passes if participation met the quorum and yes outweighs no. After finalize, the per-voter records are purged — only the aggregate tally remains.
Quorum — the minimum participation for a valid result:
- Automatic (default): a majority (>50%) of the snapshot's total voting weight — member headcount in equal mode, token weight in weighted mode (see Token-weighted voting).
- Custom: the proposer can set a specific percent (1–100) of the total circulating weight for this proposal only. The DAO's own auto-quorum percent can also be configured by admins in governance settings.
Two proposal types exist: general (any decision) and treasury (backs a spend request — the spend can only execute if the proposal passes; see Treasury). Members can also discuss each proposal in its comment thread while the vote runs. For how ballots themselves work — choices, secrecy, delegation — see Voting.
Voting
Casting votes, quorum, and how results are decided.
Every proposal vote on Shadow DAOs is a secret ballot: the running tally is public, but no one — other members, admins, or the platform — can see how you voted. You can cast a ballot from the proposal page, from the Active votes panel on your dashboard, or with /vote in Discord.
Casting a ballot
- Choices: Yes, No, or Abstain. Abstaining counts toward participation (quorum) without pushing the result either way.
- Who can vote: members with the admin or member role. Observers can read and comment but not vote.
- One ballot per voter, final once cast. You can't change a vote after submitting it, so double-check before you confirm. In token-weighted DAOs the one-ballot rule is enforced per stake key on Cardano, so splitting a balance across payment addresses doesn't grant extra ballots.
- Instant confirmation. Your ballot is recorded the moment you submit it; any on-chain mirroring happens afterwards in the background and never delays you.
How a result is decided
When the voting window closes, the proposal is finalized. It passes if both conditions hold:
- Quorum is met — total participation (yes + no + abstain) reaches the proposal's quorum. By default that's a majority (>50%) of the voting power frozen in the snapshot when the proposal was created; admins can set a different auto-quorum percent for the DAO, and a proposer can set a custom percent for a single proposal.
- Yes outweighs No — a strict majority of the yes/no weight.
Otherwise it fails. A proposal with an expired deadline is finalized automatically the next time anyone opens it; admins can also end an active proposal early with End. Finalization is instant, and only the aggregate tally is kept afterwards — see Privacy on Midnight for what gets purged.
Delegation
From the Delegation card on a DAO page you can name another member as your delegate (and revoke it any time), and each member's profile shows who has delegated to them. Delegation is currently an off-chain record: it's visible in the UI and the DAO's analytics, but it does not yet add weight to the delegate's ballot — every member's vote still counts with their own weight. Weighted delegation will switch on once the on-chain delegation circuit ships.
Voting earns XP toward your activity level (the fact that you voted — never how), and the DAO's participation metrics are updated the same way.
Token-weighted voting
Equal vs. weighted mode and configuring a governance asset per chain.
Each DAO picks how ballots are weighted in its Governance settings (admins only):
- Equal voting (the default) — one wallet, one vote. Quorum is a share of the member headcount.
- Token-weighted — one token, one vote. A voter's weight is their whole-token balance of the DAO's governance asset, rounded down. Holding less than one whole token means you can't vote. Quorum becomes a share of the total eligible token weight.
Choosing the governance asset
Switching to token-weighted asks for the asset that defines weight, per chain:
- Cardano: the policy id (plus an optional asset name — leave it blank to count every asset under the policy) and the token's decimals so base units convert to whole tokens. Balances are aggregated by stake key, so a member's whole wallet counts regardless of which payment address they connect with.
- XRPL / Xahau: the token issuer account and currency code (3-character or 40-hex). Weight is the trustline balance.
- Midnight: shielded balances can't be read by the server, so in weighted mode every eligible member still weighs 1 — membership itself is the gate. The asset label is display-only here.
You can give the asset a friendly label (e.g. "GOV") that voters see in weight and error messages.
Snapshots and quorum
When a proposal is created, every member's weight and the total circulating weight are frozen in a snapshot. Quorum is computed from that snapshot — either the DAO's auto-quorum percent (default: strict majority) or the proposer's custom percent — so buying or selling tokens after creation can't move the bar. Balances are read on the same network the membership gate verifies on (mainnet by default).
Changing the voting mode or asset affects future proposals only; proposals already created keep their snapshot.
Treasury
Tracked treasury addresses, live holdings, and governance-gated spending.
The Treasury card on a DAO page is a watch-only view of the DAO's funds. Shadow DAOs never holds your keys — admins register the public addresses the DAO actually uses (a multisig, a grants wallet, a donation account) and everyone can see what's in them.
Tracking addresses
- Admins add an XRPL or Cardano address with an optional label (e.g. "Grants multisig"). Addresses can be removed at any time.
- Each tracked address shows a QR code for donations, its native balance, issued-token balances, NFTs held, and a holdings breakdown chart.
- Recent payments are aggregated into donors (who is funding the treasury) and recipients (who is drawing it down), with a detailed flow list and explorer links.
- The same balances are what
/treasuryreports in Discord.
Spending with governance
Treasury spends go through a spend request backed by a treasury-type proposal (see Proposals): the request names an amount, a recipient, a purpose, and a privacy mode (public, hybrid, or private). It is approved automatically when the proposal passes, and only approved requests can be executed by an admin — a failed proposal leaves the request pending. Every deposit, spend, and refund lands on the treasury ledger.
Treasury features require the Community plan (Tier 2); tracking addresses across XRPL + Cardano + Midnight at once (the multichain treasury) requires Growth (Tier 3). If the card reads Under maintenance, the treasury is temporarily offline while custody flows are tested — proposals, voting, and membership keep working as normal.
Funding campaigns
Raising funds for a live DAO: two-week pools, contributions, membership, refunds.
A live DAO can open a crowdfunding round to seed its treasury. Rounds are deliberately simple: one goal, one fixed 14-day window, one deposit address.
Starting a round (admins)
- Set a goal in the DAO's currency (XRP, NIGHT, …). The window starts immediately and the deadline is placed on the DAO calendar.
- On XRPL/Xahau the goal is topped up by the account reserve, which stays locked in the deposit account — so the amount actually released still meets your target.
- Requires the Community plan (Tier 2), and is subject to the same maintenance gate as the Treasury.
Contributing
- While a round is open the DAO appears under Seeking funding in the public directory (private DAOs stay dashboard-only).
- Contributors send funds from their own wallet to the deposit address (scan the QR or copy it), then press Sync so the on-chain payment is recorded. Progress toward the goal updates as contributions arrive.
- Contributing at least the minimum amount auto-enrolls you as a member of the DAO and, where configured, mints the membership asset to your wallet.
Outcomes
- Goal met — the creator activates the round; raised funds are released to the DAO's treasury (minus any locked reserve).
- Goal missed at the deadline — the round is marked failed and the creator triggers Refund contributors, returning each recorded contribution to the wallet it came from. The round moves through refunding to refunded.
Note that launching a DAO itself is not a funding campaign anymore: launches are instant with a small one-time fee (see Creating a DAO). Funding rounds are optional and happen after the DAO is live.
Privacy on Midnight
Shielded balances, holding proofs, and what stays private.
Shadow DAOs is built so that participation is public but choices are private. Midnight's zero-knowledge stack is what makes the strongest guarantees possible, but the privacy model applies to every DAO regardless of chain.
Secret ballots
- Your choice is encrypted at rest the moment you vote; the API only ever exposes private as the per-voter choice. Members, admins, and the Discord bot see the aggregate tally only.
- For DAOs with an on-chain ShadowDAO contract, each ballot is mirrored as a zero-knowledge vote commitment — the chain can verify the voter was eligible and voted once without learning the choice. Observers only ever see an opaque per-ballot receipt.
- In token-weighted DAOs the double-vote check uses a dedup key that is salted per proposal, so nobody can correlate the same voter across proposals from stored data.
- When a proposal finalizes, the per-voter records are purged: wallet addresses, encrypted choices, receipts, and dedup keys are all deleted. What remains is the tally, the participation count, and each ballot's weight for aggregate auditing.
Shielded holdings and proof gates
Midnight balances are shielded — the server cannot read them. That has two consequences:
- Membership gating uses a Midnight proof requirement: your browser, talking to your own proof server (bundled with Lace), generates a ZK proof that you hold the required asset. Only the opaque proof hash reaches Shadow DAOs — the balance never leaves your machine. See Gating the DAO.
- Token-weighted voting can't weigh shielded balances, so in a Midnight DAO every eligible member weighs 1. See Token-weighted voting.
What's public
- DAO names, descriptions, member lists and roles (for members), and proposals.
- Aggregate tallies, participation counts, and the final outcome of each vote.
- That you voted and when — used for XP and participation metrics — but never how. Leaderboards show the alias you choose, not your address.
- Treasury addresses an admin chooses to track, and their on-chain activity (which is already public on-chain).
In Discord, wallet links are encrypted and keyed to your Discord user; your address is never shown in a channel and your Discord id never touches the chain or the vote record. Shadow Polls go further — the voter identity is a derived device id, so not even the poll store knows which Discord account voted.
Plans & subscriptions
Free vs. paid tiers and managing your subscription.
Plans are billed monthly in USD through PayPal and bound to your connected wallet — not to an email account. Voting, joining DAOs, and Shadow Polls are always free; paid tiers raise how many DAOs you can create and unlock organizer tools.
- Free — $0. Join unlimited DAOs, vote on proposals, delegate, and create 1 DAO.
- Starter — $10/mo. Create up to 2 DAOs, the Discord bot, and the DAO calendar with event scheduling.
- Community — $50/mo. Up to 5 DAOs, the on-chain treasury, two-week crowdfunding rounds, paid membership subscriptions, token / NFT / proof-gated membership, advanced DAO analytics, and Developer API access with 50 units/day included.
- Growth — $250/mo. Unlimited DAOs, the multichain treasury (XRPL + Cardano + Midnight), confidential treasury management, Developer API access with 500 units/day included, and priority support.
The gate is checked against the DAO creator's plan — members of your DAO never need a paid plan to use the features you've unlocked.
Subscribing
- Open Pricing with your wallet connected and pick a tier. The page shows your current plan and renewal date.
- Prove wallet ownership — a one-time signature so the plan can be bound to your address: sign a message with your CIP-30 wallet on Cardano, approve a Xaman QR on XRPL/Xahau, or confirm the attestation on Midnight. No transaction or fee.
- Complete checkout with the PayPal button. Once PayPal approves, the server verifies the subscription directly with PayPal and your tier updates within a few seconds.
Managing your subscription
- Upgrading is the same flow — subscribe to the higher tier from the pricing page.
- Cancelling: cancel from your PayPal account (Settings → Payments → Automatic payments). Access continues until the end of the period you already paid for, then drops to Free. Lifecycle changes sync automatically from PayPal.
- Dropping below a cap: DAOs you already created stay intact and members keep voting; you just can't create new ones above the Free limit or change gated settings until you re-subscribe.
- Your plan follows the wallet you subscribed with — connect that same wallet to use it.
Separate from platform plans, DAOs can charge their own members a monthly fee — see Paid membership subscriptions.
Developer API
API keys, metered usage, and prepaid credit packs for integrations.
Everything the web app does goes through the same HTTP API under /api/*, and you can call it from your own scripts, bots, games, or AI agents with an API key. Keys are available on the Community plan and up and are created from the Developer API card on your dashboard.
Keys
- A key looks like
sdk_ab12cd34ef56.…and is shown once; only a hash is stored. Send it as thex-api-keyheader on every request. - A key acts as the wallet that minted it — the same permissions as if you were connected in the browser, no more. It cannot act as any other address, and it cannot create further keys or buy credits.
- You may hold up to 3 active keys; revoke from the dashboard at any time (takes effect immediately).
- If your plan lapses below Community the key stops working — except for calls covered by prepaid credits, which keep working.
Metering
Requests are counted in units against your wallet, per UTC day:
- 1 unit — ordinary reads and writes (list polls, create a proposal, add a member, …).
- 5 units — operations that submit a Midnight transaction / zero-knowledge proof: creating, activating, closing or voting in a Shadow Poll, and casting proposal votes.
Included allowance: Community 50 units/day, Growth 500 units/day. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (seconds to UTC midnight) and X-API-Credits. When the day's allowance is spent, calls draw from your prepaid credits; when those are gone you get 429 API_QUOTA_EXCEEDED with a Retry-After. A wallet below Community with no credits gets 402 API_ACCESS_REQUIRED.
Prepaid credits (pay as you go)
Buy a credit pack from the dashboard with a one-time PayPal payment. Credits never expire, are used only after the day's included units, and the server verifies every order directly with PayPal before crediting — a replayed or partial order is never counted twice.
Rate limits
Independently of unit metering, every mutating request is rate-limited: sensitive routes have their own per-minute caps (e.g. 5 DAO launches, 10 proposal creations, 20 poll votes per minute per caller) and all writes together are capped per IP. API-key callers are bucketed per key at a higher ceiling, so a bot proxying many users from one host is not throttled as a single IP. Over the limit you get 429 RATE_LIMITED with Retry-After.
Agent tokens (Legion)
For AI agents and MCP servers that should act on behalf of a specific user, the user mints an agent token (agt_…) from the Legion Agents card on the dashboard and hands it to their agent. One active token per wallet; re-issuing revokes the previous one; minting is wallet-session only (an API key cannot mint tokens).
GET /api/agent-tokens— the caller's current token metadata (no secret).POST /api/agent-tokens— mint (body: optionalagentId,label,roles,orgId); returns the plaintext once.DELETE /api/agent-tokens/<id>— revoke (owner only).POST /api/agent-tokens/introspect— for the integration: authenticate with yourx-api-key, send{ "token": "agt_…" }, receive{ "active": true, "walletAddress", "chain", "agentId", "roles" }or{ "active": false }. The plaintext token must be presented, so tokens cannot be enumerated.
Connecting the Shadow Policy MCP
The hosted MCP server lives at https://shadow-policy-mcp-production.up.railway.app/mcp. Present the agent token as an Authorization: Bearer agt_… header on the /mcp endpoint — it is not accepted as a URL query param or path segment. When you mint a token from the Legion Agents card, it shows a ready-to-paste client config with the token already in place:
{
"mcpServers": {
"shadow-policy": {
"url": "https://shadow-policy-mcp-production.up.railway.app/mcp",
"headers": { "Authorization": "Bearer agt_…" }
}
}
}Example
curl -X POST https://<host>/api/polls \
-H 'content-type: application/json' \
-H 'x-api-key: sdk_ab12cd34ef56.…' \
-d '{"title":"Lunch?","options":["Pizza","Sushi"]}'Errors always have the shape { "success": false, "error": { "code", "message" } }; successes are { "success": true, "data": … }.
Troubleshooting & FAQ
Common issues (network mismatches, wallet errors) and where to get help.
Wallets
- My wallet isn't in the connect menu. Extensions inject a moment after page load — close and reopen the menu. Make sure the extension is unlocked, has an account, and (for Lace) that Midnight support is enabled.
- Lace shows the wrong chain. Lace exposes Cardano and Midnight; use the wallet menu in the top bar to switch chains without reconnecting.
- Network mismatch. Your wallet and the app must be on the same network (e.g. both on Midnight Preview). If a gate or balance check reports zero for an asset you hold, check the wallet's network first.
- Xaman QR times out. Run the command or click Connect again to get a fresh QR — each one is single-use and short-lived.
Voting
- "You have already voted" — ballots are final. In token-weighted Cardano DAOs this also fires if another payment address under the same stake key already voted.
- "You need at least 1 whole <token> to vote" — the DAO is token-weighted and your balance rounds down to zero. Top up, or ask an admin to check the asset's decimals setting.
- The proposal says Active but the deadline passed. Finalization runs when the proposal is next opened — refresh the page.
Membership & plans
- "Doesn't meet the membership requirements" — the DAO is gated; the message lists which requirement failed. Holdings are checked at the moment you join.
- I paid but still see the Free plan. Plans are bound to the wallet you subscribed with — connect that wallet. If it still hasn't updated after a minute, reopen the pricing page; the server re-checks with PayPal.
- Treasury card says "Under maintenance". Treasury and funding rounds are temporarily offline for testing; everything else works.
Discord
See the troubleshooting list at the end of Discord bot for "application did not respond", missing commands, and permission errors.
Getting help
Reach us at shadowlabz.io/contact. Include your DAO id, the exact error text, and the chain/network you're on — never your seed phrase or private keys; we will never ask for them.
Updating these docs
How to write, edit, and reorganize the sections on this page.
Everything on this page lives in one file: app/docs/content.tsx. Each section is an object in the DOC_SECTIONS array, and this page renders them in order.
Writing a section
- Open
app/docs/content.tsxand find the section by itstitleorid. - Replace
body: nullwith JSX wrapped in a fragment, e.g.body: (<> <p>Your text…</p> </>). Paragraphs, bullet lists (<ul><li>), numbered steps (<ol><li>), sub-headings (<h3>), links, and<code>snippets are all styled automatically. - Save — the page hot-reloads in dev; no other file needs to change.
Adding, removing, or reordering sections
- Add: copy an existing object, give it a unique
id(this becomes the URL anchor, e.g./docs#voting), atitle, an icon fromlucide-react, and a one-linesummary. - Reorder: move the object within the array — the sidebar and page follow the array order.
- Remove: delete the object. Any links to its anchor simply scroll to the top of the page.
Sections with body: null show a "coming soon" placeholder, so you can sketch the outline first and fill content in later.