/v1/launch-token/calculate-funding
Calculate required XRP funding (400 on invalid params)
Request
https://api.xrpl.to/v1/launch-token/calculate-funding| Query parameter | Value | Description |
|---|---|---|
| amm_xrp_amount | float (1-100000000000) | |
| anti_snipe | bool | |
| token_supply | float (positive) | |
| user_check_amount | float (>=0) | |
| bundle_count | int (max 10) | |
| bundle_percent | float (max 50 per recipient) | |
| vesting_tranches | int (0-12) | |
| platform_retention_percent | float (0-10) |
curl 'https://api.xrpl.to/v1/launch-token/calculate-funding'
Response
https://api.xrpl.to/v1/launch-token/calculate-funding{ "success": true, "network": "mainnet", "requiredFunding": 15, "breakdown": { "issuerReserve": 1, "platformFee": 2, "antiSnipeFee": 0, "bundleFee": 0, "bundleReserves": 0, "holderReserve": 1, "ammLiquidity": 10, "ownerReserves": 0.6, "transactionFees": 0.2, "vestingReserves": 0, "vestingTrancheCount": 0, "devAllocationPercent": 0, "feeBreakdown": { "baseFee": 2, "allocationSurcharge": 0 }, "platformTokenRetentionPercent": 3, "ammMinPercent": 5 }, "actualUserCheckAmount": 0, "userCheckReduced": false, "antiSnipe": false, "antiSnipeNote": null, "authWindowDurationMs": null, "feeInfo": { "noDevFee": 2, "devFee": 5, "highDevFee": 10, "maxDevFee": 15, "maxDevPercent": 95, "formula": "2 XRP (0% dev) | 5 XRP (1-30%) | 10 XRP (31-60%) | 15 XRP (61-90%)" }, "platformTokenRetention": { "percent": 3, "note": "Platform retains 3% of token supply directly" }, "bundleInfo": { "baseFee": 6, "feePerRecipient": 1, "reservePerRecipient": 0.2, "maxRecipients": 10 } }
What it does
Calculate required XRP funding (400 on invalid params)