Function create_exact_p2id_note

Source
pub fn create_exact_p2id_note(
    sender: AccountId,
    target: AccountId,
    assets: Vec<Asset>,
    note_type: NoteType,
    aux: Felt,
    serial_num: Word,
) -> Result<Note, NoteError>
Expand description

Creates a public-to-ID (p2id) note for a specified sender and target account.

§Arguments

  • sender - The account ID of the sender.
  • target - The account ID of the target.
  • assets - The assets associated with the note.
  • note_type - The type of the note (e.g., public).
  • aux - Auxiliary data for the note.
  • serial_num - The serial number of the note.

§Returns

Returns the created Note.