Function orao_solana_vrf::wait_fulfilled

source ·
pub async fn wait_fulfilled<C: Deref<Target = impl Signer> + Sync + Send + 'static + Clone>(
    seed: [u8; 32],
    orao_vrf: Arc<Program<C>>
) -> impl Future<Output = Result<[u8; 64], WaitFulfilledError>>
Available on crate feature sdk only.
Expand description

Waits for the given randomness request to be fulfilled.

Note:

  • it will use client’s commitment level,
  • it will use WS subscription to wait for the events::Fulfill event,
  • it will fetch the randomness account to check whether it is already fulfilled
  • this async function returns another future that one need to await