API reference
rein_history
rein_history(limit?, offset?)
Returns a paginated list of Receipt PDAs for your vault — each containing the full on-chain spend record. Useful for cost-per-task reporting and audit exports.
Parameters
limitnumberMaximum receipts to return. Defaults to 20. Max 100.
offsetnumberNumber of receipts to skip for pagination. Defaults to 0.
Returns
Array of SpendReceipt objects, newest first. See rein_spend for the full receipt shape.
Example
const receipts = await rein.history({ limit: 10 });
for (const r of receipts) {
console.log(r.amount_usdc, r.recipient_hash, r.timestamp);
}