USIC integrates with Coinbase Developer Platform (CDP) SDK to provide enhanced blockchain operations including automated artist payouts, gasless transactions, and efficient batch operations on Base network.
Automatically process artist earnings and send USDC payments in batches using server-side wallets.
Sponsor transactions for users via Paymaster, eliminating gas fees for better UX.
Efficiently process multiple payouts in a single operation, reducing costs and complexity.
Server-side wallet with secure key management for automated operations.
Visit the Coinbase Developer Platform portal to create a project and generate API credentials.
Open CDP PortalCDP_API_KEY_NAME=your_api_key_name
CDP_API_KEY_PRIVATE_KEY=your_private_key
CDP_SERVER_WALLET_DATA={...}On first run, the system will create a server wallet. Copy the wallet data from logs and add it to your environment variables.
curl -X POST /api/admin/payoutsTransfer USDC to the server wallet address to enable automated payouts.
/api/admin/payoutsTriggers artist payout processing. Should be called via cron job or admin panel.
/api/admin/payoutsReturns CDP configuration status and readiness.
import { processArtistPayouts } from "@/lib/cdp/payouts"
const result = await processArtistPayouts()
// Returns: { success: 10, failed: 0, totalAmount: "1250.50" }import { payoutArtist } from "@/lib/cdp/payouts"
const result = await payoutArtist("0x1234...")
console.log(`Paid ${result.amount} USDC, tx: ${result.txHash}`)import { batchSendTokens } from "@/lib/cdp/client"
const recipients = [
{ address: "0x1234...", amount: "100.50" },
{ address: "0x5678...", amount: "250.75" }
]
const txHashes = await batchSendTokens(recipients, "usdc")