Type Alias nostr_types::ZapData
source · pub type ZapData = ZapDataV2;
Expand description
Data about a Zap
Aliased Type§
struct ZapData {
pub zapped_event: EventReference,
pub amount: MilliSatoshi,
pub payee: PublicKey,
pub payer: PublicKey,
pub provider_pubkey: PublicKey,
}
Fields§
§zapped_event: EventReference
The event that was zapped. If missing we can’t use the zap receipt event.
amount: MilliSatoshi
The amount that the event was zapped
payee: PublicKey
The public key of the person who received the zap
payer: PublicKey
The public key of the person who paid the zap, if it was in the receipt
provider_pubkey: PublicKey
The public key of the zap provider, for verification purposes