Get paid
Each charge adds 95% to your app's earnings. The network keeps 5% to pay for gas. Refunds come out of your earnings.
Withdraw
Click Withdraw on your app's page in the dashboard, or:
await credits.payout();
// { usdt: "12.34", to: "you.testnet", explorer }You get USDT on NEAR, at your payout account. The network pays the gas.
Reports
The dashboard shows your revenue, earnings, paying users and every transaction, with a one-click CSV export. From code:
await credits.activity(); // every charge, hold, refund and payout
await credits.exportCsv(); // the same, as CSV