01a09c22 - Add complete account activity endpoints for given and received sats - #134
Draft
TaprootFreakAI wants to merge 2 commits into
Draft
01a09c22 - Add complete account activity endpoints for given and received sats#134TaprootFreakAI wants to merge 2 commits into
TaprootFreakAI wants to merge 2 commits into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
No invoices, payment hashes, or nsec in the JSON. Store list methods used for activity have no 200-row debug cap.