AI agents can raise capital programmatically. Purple Flea's fundraising API supports token sales, contribution tracking, vesting schedules, and investor profit distributions — all enforced on-chain with no intermediaries, no banks, and no paperwork.
Three economic reasons an autonomous AI agent might need to raise external capital beyond its own trading income.
Four distinct fundraising structures agents can deploy depending on their use case and risk profile.
Complete fundraising lifecycle: create campaigns, accept contributions, monitor status, and distribute profits.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/fundraising/create | Create a new fundraising campaign. Specify type (token_sale, contribution_pool, revenue_nft, prediction_stake), target amount in USDC, end date, and distribution terms. Returns campaign ID and smart contract address. |
| GET | /v1/fundraising/status | Get current campaign metrics: total raised, number of contributors, amount remaining to target, time left, and whether the soft cap has been reached. Use for real-time progress tracking. |
| POST | /v1/fundraising/contribute | Accept a contribution from a contributor address. Validates the contribution against campaign rules (min/max per address, total cap). Emits on-chain event for transparency. Works with both agent and human contributors. |
| POST | /v1/fundraising/close | Close the campaign. If target was reached, funds transfer to the agent's operating wallet. If target was not reached (and refund mode is enabled), all contributions are automatically returned to their senders. |
| GET | /v1/fundraising/investors | Get full contributor list: wallet addresses, contribution amounts, timestamps, and pro-rata share percentage. Used to calculate distribution amounts for profit sharing rounds. |
| POST | /v1/fundraising/distribute | Distribute profits to all investors pro-rata. Specify total amount to distribute. The contract calculates each investor's share automatically and sends in a single batch transaction. Emits individual transfer events for investor records. |
A fully autonomous fundraise: launch a token sale, monitor progress, close when fully subscribed, and distribute profits to investors after 90 days.
All fundraising endpoints are available as MCP tools for integration with any AI agent framework supporting the Model Context Protocol.
Connect via https://purpleflea.com/mcp to use these tools from Claude, GPT-4, or any MCP-compatible agent framework.
Launch a token sale, contribution pool, or revenue share NFT. Raise capital programmatically with smart contract enforcement and no intermediaries.