openagents_sdk::profile_earnings
Private earnings previews and explicit publication of individual receipts.
| Item | What it does |
|---|---|
Earning struct | A private preview of one verified credit and its publication choice. |
EarningsSource enum | The private credit identity selected for publication; never include it in public copy. |
HiddenReceipt struct | Confirmation that a credit is hidden from the public profile. |
ProfileEarnings struct | Private earnings for an account's verified Nostr identity. |
PublishedEarnings struct | Selected public receipts and the service issuers trusted for this response. |
PublishedReceipt struct | One service-signed earnings receipt. |
Earning
pub struct Earning {
pub source: EarningsSource,
pub receipt: Receipt,
pub published: bool,
}
A private preview of one verified credit and its publication choice.
EarningsSource
pub enum EarningsSource {
Ledger { sequence: i64, role: String },
Tip { payment_hash: String },
}
The private credit identity selected for publication; never include it in public copy.
HiddenReceipt
pub struct HiddenReceipt {
pub hidden: bool,
}
Confirmation that a credit is hidden from the public profile.
ProfileEarnings
pub struct ProfileEarnings {
pub rows: Vec<Earning>,
}
Private earnings for an account's verified Nostr identity.
PublishedEarnings
pub struct PublishedEarnings {
pub events: Vec<Event>,
pub issuers: BTreeSet<String>,
}
Selected public receipts and the service issuers trusted for this response.
PublishedReceipt
pub struct PublishedReceipt {
pub event: Event,
}
One service-signed earnings receipt.