Skip to content

Feature Request: Add a unified hook for tracking onchain action status across components #2579

@quit09-wrass

Description

@quit09-wrass

Describe the solution you'd like

OnchainKit actions often move through several states such as preparing, awaiting signature, submitting, pending confirmation, and completed. Today, developers usually need to stitch together multiple signals from hooks or callbacks to track this lifecycle consistently.

Problem Description

Without a unified way to observe action status, developers may duplicate logic across components or end up with slightly different interpretations of the same action state. This can lead to inconsistent UI behavior, duplicated loading indicators, and harder-to-maintain code.
Developers should be able to rely on a single, well-defined source of truth that represents the current status of an onchain action throughout its lifecycle.

Describe alternatives you've considered.

Introduce a first-class hook (for example, useOnchainActionStatus) that exposes a normalized action state and relevant metadata, allowing components to react consistently to progress, success, or failure without reimplementing state logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions