Skip to main content

create_public_p2any_note

Function create_public_p2any_note 

Source
pub fn create_public_p2any_note(
    sender: AccountId,
    assets: impl IntoIterator<Item = Asset>,
) -> Note
Expand description

Creates a public P2ANY note.

A P2ANY note carries assets and a script that moves the assets into the executing account’s vault.

The created note does not require authentication and can be consumed by any account.