Ads
Payment endpoint for sponsored ads
Direct stablecoin payment endpoint.
GET: Returns payment info including pre-calculated base units for all supported tokens.
POST: Verifies tx_hash on-chain and records payment.
Supported tokens (Ethereum Mainnet):
- USDC, USDT, crvUSD (stablecoins, 1:1 USD)
- SQUID (dynamic price, locked at ad creation)
Frontend flow:
1. GET payment info (includes payment_amounts with exact base units)
2. User selects token and sends direct ERC-20 transfer to payment_wallet
3. Frontend waits for tx confirmation
4. POST with tx_hash and asset to verify and record payment
get/api/v1/ad/confirm-payment/{ad_id}/
Request
- Base URL: https://api.leviathannews.xyz (the document declares no server; this is the origin it was published from)
- URL: https://api.leviathannews.xyz/api/v1/ad/confirm-payment/{ad_id}/
- Auth: none declared
Path parameters
ad_idinteger required
Ad ID
Response
Payment info (GET) or verification success (POST)
Changes
No recorded changes to this operation across all 1 revision of this API.