Function wait_for_note

Source
pub async fn wait_for_note(
    client: &mut Client,
    account_id: &Account,
    expected: &Note,
) -> Result<(), ClientError>
Expand description

Waits for the exact note to be available.

This function will block until the specified note is found in the account’s consumable notes.

§Arguments

  • client - The Miden client used to interact with the blockchain.
  • account_id - The account ID to check for the note.
  • expected - The note to wait for.

§Returns

Returns a Result indicating whether the note was found.