Skip to content

Chainhook v2: contract_log filter shows blank on re-edit, events intermittently dropped #2470

@Rapha-btc

Description

@Rapha-btc

Bug Description

When creating/editing a Chainhook v2 via the Hiro Platform dashboard, the contract identifier filter for contract_log events appears blank when revisiting the "Edit Chainhook" page — even though the filter was previously set and the hook is partially working.

Steps to Reproduce

  1. Go to Hiro Platform → Chainhooks → Create/Edit
  2. Under Smart Contracts, select contract_log
  3. Set the contract identifier to a specific contract (e.g. SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace)
  4. Save the chainhook
  5. Go back to edit the same chainhook
  6. The contract identifier field now shows blank/empty — as if no filter was set

Expected Behavior

The contract identifier should persist and display the previously saved value when editing.

Observed Behavior

  • The field appears blank on re-edit, suggesting "Any" contract
  • Despite this, the hook does receive some events from the correct contract (we confirmed nft-unlisted events were delivered to our webhook)
  • However, other events (nft-listed) from the same contract in the same time window are silently dropped — unclear if related to the blank filter display or a separate delivery issue

Webhook Logs

Our webhook endpoint (/api/chainhook/record-nft-marketplace) shows:

All three events were emitted by the same contract (SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace) and confirmed successful on-chain via the Hiro explorer.

Impact

  • Cannot verify or confirm the current filter configuration through the dashboard
  • Unclear whether the blank display is a UI-only bug or if the filter is actually being reset/corrupted
  • Events are being intermittently lost, making it unreliable for production indexing

Environment

  • Chainhook v2 API (hosted): api.mainnet.hiro.so/chainhooks/me
  • Network: Stacks mainnet
  • Hook name: nft-marketplace-pepe
  • Contract: SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.pepe-nft-marketplace
  • Event type: contract_log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions