Skip to content

Add structured log for each successful creator key buy including buyer wallet, creator, amount, and new supply #699

Description

@Chucks1093

Summary

Buy transactions are the core activity of the AccessLayer marketplace but are not logged at a structured level. An info-level log on each confirmed buy would give operators full visibility into marketplace volume and help correlate on-chain events with server activity.

Scope

  • Emit an info-level log on each confirmed buy with fields: buyer_wallet, creator_wallet, key_amount, xlm_paid, new_supply, tx_hash, confirmed_at
  • Log emitted after the transaction is confirmed on-chain, not on submission
  • xlm_paid should be the net amount including fees, formatted as XLM (not stroops)
  • Do not log private key material or signing secrets

Acceptance Criteria

  • Info log emitted on each confirmed buy with all seven fields
  • Log emitted after on-chain confirmation, not submission
  • xlm_paid formatted as XLM string (not stroops)
  • No key material or secrets in the log

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions