Loading...
Loading...
Automated revenue distribution with basis-point (1/100th of 1%) precision. Create agreements, add participants, and process distributions automatically.
Original content creator with primary revenue share.
Collaborators who contributed to the content.
Third-party licensors of included assets.
Platform fees and service charges.
import { DRD } from '@drd/sdk';
const drd = new DRD({ apiKey: process.env.DRD_API_KEY });
// Create a royalty agreement (10000 = 100%)
const agreement = await drd.royalty.createAgreement({
name: 'AI Training Dataset v2',
totalShares: 10000,
currency: 'USD',
});
// Add participants with basis-point shares
await drd.royalty.addParticipant({
agreementId: agreement.id,
name: 'Original Creator',
role: 'creator',
sharesBasisPoints: 6000, // 60%
payoutMethod: 'bank_transfer',
});
await drd.royalty.addParticipant({
agreementId: agreement.id,
name: 'Data Annotator',
role: 'contributor',
sharesBasisPoints: 2500, // 25%
payoutMethod: 'paypal',
});
await drd.royalty.addParticipant({
agreementId: agreement.id,
name: 'DRD Platform',
role: 'platform',
sharesBasisPoints: 1500, // 15%
payoutMethod: 'hold',
});await drd.royalty.processDistribution({
agreementId: agreement.id,
periodStart: '2026-01-01T00:00:00Z',
periodEnd: '2026-01-31T23:59:59Z',
totalRevenue: 15000,
});
// Result:
// Creator: $9,000 (60%)
// Annotator: $3,750 (25%)
// Platform: $2,250 (15%)When revenue is generated from protected content -- licensing fees, training usage fees, or settlement payments -- DRD automatically splits the amount among all registered stakeholders.
Revenue Event
A licensing fee, settlement, or training usage payment is received for a content item.
Split Lookup
DRD looks up the split rules attached to the content item in the provenance ledger.
Calculate Shares
Each stakeholder's share is computed using basis-point allocations. Rounding uses banker's rounding.
Settlement
Funds are distributed to each stakeholder's payout account. Settlement is atomic -- all or nothing.
Reporting
A royalty statement is generated and sent to all parties. The event is logged in the audit trail.
Splits are defined in basis points (bps), where 10,000 bps = 100%. This allows precise allocations down to 0.01% per stakeholder.
| Stakeholder | Basis Points | Percentage | On $1,000 Revenue |
|---|---|---|---|
| Primary Creator | 5000 | 50.00% | $500.00 |
| Co-Creator | 2500 | 25.00% | $250.00 |
| Publisher | 1500 | 15.00% | $150.00 |
| Platform Fee | 500 | 5.00% | $50.00 |
| Collection Agent | 300 | 3.00% | $30.00 |
| Reserve Fund | 200 | 2.00% | $20.00 |
Split Validation
Total basis points for a content item must equal exactly 10,000 (100%). DRD rejects split configurations that do not sum to 10,000. The minimum allocation per stakeholder is 1 basis point (0.01%).
Revenue events are generated automatically when content generates income. You can also submit manual revenue events via the API.
Licensing Fee
AutoRevenue from content licensing agreements
Training Usage
AutoFees collected from AI training data usage
Settlement
ManualCopyright infringement settlement payments
Subscription
AutoRecurring subscription revenue allocation
Marketplace Sale
AutoDirect content sales on marketplaces
Manual Entry
ManualExternal revenue reported via API
// Submit a manual revenue event
// POST /api/v1/royalties/revenue
{
"contentId": "019content-...",
"amount": 100000, // Amount in cents ($1,000.00)
"currency": "USD",
"type": "settlement",
"description": "Copyright settlement - Case #2026-0142",
"reference": "INV-2026-0142"
}
// Response: settlement calculation
{
"ok": true,
"data": {
"revenueId": "019rev-...",
"totalAmountCents": 100000,
"distributions": [
{ "stakeholder": "Alice Smith", "basisPoints": 5000, "amountCents": 50000 },
{ "stakeholder": "Bob Jones", "basisPoints": 2500, "amountCents": 25000 },
{ "stakeholder": "Acme Publishing", "basisPoints": 2000, "amountCents": 20000 },
{ "stakeholder": "Platform Fee", "basisPoints": 500, "amountCents": 5000 }
],
"settlementStatus": "scheduled",
"scheduledSettlementDate": "2026-02-21T00:00:00Z"
}
}DRD generates royalty statements for each stakeholder. Statements are available via API, dashboard, and email delivery.
// Get royalty statement for a stakeholder
// GET /api/v1/royalties/statements?stakeholderId=019user-alice&period=2026-Q1
{
"ok": true,
"data": {
"stakeholder": "Alice Smith",
"period": "2026-Q1",
"summary": {
"totalRevenueCents": 450000,
"totalPayoutCents": 225000,
"averageBasisPoints": 5000,
"contentItemCount": 12,
"revenueEventCount": 34
},
"byContent": [
{
"contentId": "019content-...",
"title": "Quarterly Report Q1",
"revenueCents": 100000,
"payoutCents": 50000,
"basisPoints": 5000
}
],
"settlementHistory": [
{
"date": "2026-01-07",
"amountCents": 75000,
"method": "bank_transfer",
"status": "completed"
}
]
}
}Audit Trail
Every royalty calculation, distribution, and settlement is recorded in the immutable audit trail. Stakeholders can independently verify their payouts against the provenance ledger. The audit trail satisfies SOC 2 and regulatory requirements for financial record-keeping.
DRD supports multiple payout methods with configurable settlement schedules.
| Method | Settlement Time | Minimum Payout | Currencies |
|---|---|---|---|
| Bank Transfer (ACH) | 1-3 business days | $1.00 | USD, EUR, GBP |
| Wire Transfer | Same day | $100.00 | 40+ currencies |
| PayPal | Instant | $0.50 | 25+ currencies |
| Stripe Connect | 2 business days | $1.00 | USD, EUR, GBP |
| Crypto (USDC) | < 5 minutes | $0.01 | USDC on Ethereum |