What Is an Attestation?
When a client approves a work session, thestream_contract orchestrates two operations simultaneously: it transfers the approved token amount to the worker, and it calls the attestation_contract to mint an AttestationRecord. The attestation captures the full context of that payment — which stream it came from, how much was paid, how long the worker was active, and whether the client personally confirmed the work.
Attestations accumulate over time and become the raw material for your reputation score.
Attestation Fields
A globally unique, auto-incrementing integer identifier for this attestation record on the Stellar ledger.
The ID of the payment stream this attestation is linked to. You can use this to trace the full history of a stream.
The Stellar address of the worker who was paid. This is the address the reputation contract aggregates attestations for.
The number of tokens (in the asset’s smallest unit) transferred to the worker in this transaction.
The mechanism by which the attestation was created. See AttestationKind categories below.
true if the client explicitly approved the work session. false if the payment was auto-released after the review deadline expired without client action. Client-confirmed attestations score higher in the reputation calculation.true when the payout was triggered automatically because the client’s review deadline passed. When false, the client actively approved the work. This mirrors the inverse of client_confirmed.The work category inherited from the stream — one of
Freelance, Salary, Bounty, Grant, AgentTask, or Subscription. This determines which bucket of the worker’s reputation score is incremented.The Stellar address of the client who created the stream and funded the payment.
The Stellar asset address used for the payment (USDC or native XLM).
The Stellar ledger sequence number at which this attestation was minted. Used by the reputation contract to calculate recency weighting.
The ledger at which the work period began.
The ledger at which the work period ended.
The number of active seconds reported by the CLI for this session. Zero for checkpoint and legacy withdrawal paths.
A SHA-256 hash of the CLI verification report for
WorkSession attestations. null for checkpoint and legacy paths.AttestationKind Categories
Thekind field records the path through which an attestation was created:
For reputation scoring purposes, all three kinds are treated equally. The
Category field on the associated stream — Freelance, Salary, Bounty, Grant, AgentTask, or Subscription — determines which bucket of your reputation score is incremented.