• Extract the raw event payload bytes from the Genesis self-CPI EmitEvent inner instruction in a transaction.

    Genesis emits events by self-CPI-ing into its own EmitEvent instruction (discriminator 255). The remaining bytes after the discriminator are the serialized event payload.

    The signature may not be queryable until the transaction is confirmed, so callers should sendAndConfirm (or otherwise wait for confirmation) first.

    Parameters

    • umi: Umi
    • signature: Uint8Array

    Returns Promise<Uint8Array | undefined>

Generated using TypeDoc