Skip to content

01a09c22 - Add complete account activity endpoints for given and received sats - #134

Draft
TaprootFreakAI wants to merge 2 commits into
developfrom
01a09c22-profile-activity
Draft

01a09c22 - Add complete account activity endpoints for given and received sats#134
TaprootFreakAI wants to merge 2 commits into
developfrom
01a09c22-profile-activity

Conversation

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
Profile activity now includes every attributable given and received sat: confirmed forum zaps, house gifts, and the visible ₿ amount on authored notes.
Three read-only endpoints expose that payload for the signed-in account, a member, and a public view key.
GET /gifts/stats stays house outbound only.

DE:
Die Profil-Aktivität zählt jetzt jeden zuordenbaren Satoshi als Gegeben und Erhalten: bestätigte Forum-Zaps, Haus-Gaben und den sichtbaren ₿-Betrag auf eigenen Notizen.
Drei nur-lese Endpunkte liefern das für den eigenen Account, ein Mitglied und einen öffentlichen View-Key.
GET /gifts/stats bleibt nur der Haus-Ausgang.

Details

Given is confirmed forum zaps this account paid (invoice result ok, matched to an indexed zap ingest by payment hash then unique messageId+amount), plus every outbound house gift when the account is the platform account.

Received is indexed zap ingests on messages this account authored, including hidden rows, unique by receiptId; plus any remainder so the total is at least the ₿ amount shown on those notes (dated at message.createdAt); plus house gifts whose recipient handle matches the account Lightning Address.

Unpaid invoices are omitted. Self-zaps count on both sides. Empty activity is 200 zeros without Coinbase. Missing FX is 503.

Endpoints:

  • GET /me/activity (Bearer, no rules gate)
  • GET /members/:accountId/activity (same auth as member GET)
  • GET /view/:viewKey/activity (public)

No invoices, payment hashes, or nsec in the JSON. Store list methods used for activity have no 200-row debug cap.

…ived sats

Count confirmed forum zaps, house gifts, and the visible sat amount on
authored notes so a profile card cannot show ₿ on a post above an empty chart.
…catalogs

Keep the Function handbook in line with GET /activity and the uncapped
list methods the activity payload reads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant