Function create_public_note

Source
pub async fn create_public_note(
    client: &mut Client,
    note_code: String,
    account_library: Option<Library>,
    creator_account: Account,
    assets: Option<NoteAssets>,
    note_inputs: Option<NoteInputs>,
) -> Result<Note, Error>
Expand description

Creates a public note in the blockchain.

This function creates a public note using the provided note code, account library (if any), and other related parameters.

§Arguments

  • client - The Miden client used to interact with the blockchain.
  • note_code - The code for the note, typically written in MASM.
  • account_library - An optional library that might be used during note creation.
  • creator_account - The account creating the note.
  • assets - The assets associated with the note (optional).
  • note_inputs - The inputs associated with the note (optional).

§Returns

Returns a Result containing the created Note or an error.