Skip to main content

send_gift_wrap

Function send_gift_wrap 

Source
pub async fn send_gift_wrap<'u, I, U, T>(
    client: &Client,
    relays: I,
    receiver: &PublicKey,
    rumor: UnsignedEvent,
    extra_tags: T,
) -> Result<SendEventOutput, String>
where I: IntoIterator<Item = U>, U: Into<RelayUrlArg<'u>>, T: IntoIterator<Item = Tag>,
Expand description

Seal, wrap and publish a rumor to receiver.

Stands in for 0.44’s Client::gift_wrap / gift_wrap_to, which went away with the client’s signer. An empty relays publishes pool-wide, matching gift_wrap; a non-empty one targets those relays, matching gift_wrap_to.