127 lines
4.7 KiB
Plaintext

---
title: "Introduction"
description: "Split any transaction into fractions on Solana with automated revenue distribution"
---
## What is Fraction?
Fraction is a Solana program that automatically splits all incoming SPL tokens (e.g., USDC, SOL, or any SPL token) among recipients according to pre-configured percentage shares. Built for autonomous agents and applications, Fraction enables seamless revenue distribution without manual intervention.
<img
className="block dark:hidden"
src="./assets/header.png"
alt="Fraction Protocol Overview"
/>
<img
className="hidden dark:block"
src="./assets/header.png"
alt="Fraction Protocol Overview"
/>
## Program Information
<CodeGroup>
```text Mainnet
FracVQuBhSeBvbw1qNrJKkDmcdPcFYWdneoKbJa3HMrj
```
```text Devnet
FracVQuBhSeBvbw1qNrJKkDmcdPcFYWdneoKbJa3HMrj
```
</CodeGroup>
<Card title="View Fraction Program IDL" icon="code" href="/docs/v2/fraction/sdk#program-idl">
Complete Interface Description Language for direct program integration
</Card>
## How It Works
### 1. Create Configuration
You create a `fraction_config` that defines:
- **Recipients**: Who receives funds and their percentage shares
- **Authority**: Who can update the configuration
- **Agent**: Automated bot that triggers distributions
### 2. Receive Funds
Anyone can send tokens directly to your fraction configuration address. All tokens accumulate in a treasury account until distribution.
### 3. Automatic Distribution
An authorized agent (cranker) monitors the treasury and initiates `claim` transactions that:
- Distribute all accumulated funds according to configured percentages
- Transfer the agent's 0.05% protocol fee
- Complete all transfers atomically in a single transaction
- Empty the treasury completely
## Key Features
<CardGroup cols={2}>
<Card title="Atomic Distribution" icon="atom">
All transfers happen in a single transaction, ensuring consistency and preventing partial distributions.
</Card>
<Card title="Zero Manual Steps" icon="robot">
Once configured, distributions happen automatically when triggered by authorized agents.
</Card>
<Card title="Multi-Token Support" icon="coins">
Works with any SPL token - USDC, SOL, project tokens, or custom mints.
</Card>
<Card title="Flexible allocations" icon="users">
Support upto 5 participants with customizable percentage allocations.
</Card>
</CardGroup>
## Distribution Mechanics
When an authorized agent executes distribution:
1. **Protocol Fee**: Agent receives 0.05% as incentive
2. **Participant Split**: Remaining funds distributed per configured percentages
3. **Atomic Execution**: All transfers occur in single transaction
4. **Complete Drainage**: Treasury is emptied entirely
5. **No Manual Steps**: Recipients automatically receive their shares
## Real-World Use Cases
<AccordionGroup>
<Accordion title="Consumer Applications">
**Revenue Splitting**: Automatically split subscription revenue, sales proceeds, or service fees among team members, investors, and operational wallets.
**Payroll Automation**: Set up automated salary distributions for employees with different percentage allocations.
</Accordion>
<Accordion title="Autonomous Agents">
**Agent Revenue Share**: Instantly split revenue generated by AI agents running tasks, with automatic distribution to human operators and infrastructure costs.
**Service Commissions**: Distribute commissions from agent-facilitated transactions to multiple stakeholders.
</Accordion>
<Accordion title="Token Launchpads">
**Sale Proceeds**: Automatically allocate token sale proceeds between team, marketing, development, and treasury wallets.
**Treasury Management**: Split ongoing protocol revenue among different operational buckets.
</Accordion>
<Accordion title="DeFi Protocols">
**Fee Distribution**: Split protocol fees among liquidity providers, governance token holders, and development funds.
**Yield Farming**: Distribute farming rewards across multiple participant categories.
</Accordion>
</AccordionGroup>
## Security & Audits
<Note>
All contracts are open-source with reproducible builds. Code is formally verified and independently audited by Sec3.
</Note>
- **Open Source**: All code is publicly available and auditable
- **Sec3 Audited**: Independently audited by leading Solana security firm
- **Reproducible Builds**: Anyone can verify the deployed bytecode matches the source
- **Battle Tested**: Used in production by multiple applications
## Getting Started
Ready to integrate Fraction into your application? Check out our SDK documentation to start building with automated revenue distribution.
<Card title="SDK Documentation" icon="code" href="/docs/v2/fraction/sdk">
Learn how to integrate Fraction SDK into your TypeScript application
</Card>