Skip to content

feat(microprofile): NFT mirror-node queries not implemented #171

@alejandroGM0

Description

@alejandroGM0

Problem

Description

The MicroProfile module's MirrorNodeClientImpl has three NFT query methods that throw
RuntimeException("Not implemented"), leaving the MicroProfile client behind the Spring one:

  • queryNftsByAccount
  • queryNftsByAccountAndTokenId
  • queryNftsByTokenId

Additionally, MirrorNodeJsonConverterImpl#toNfts reads the wrong JSON key (transactions
instead of nfts) and throws when the nfts array is empty, causing failures even when a
valid response is returned from the Mirror Node REST API.

Steps to reproduce

  1. Use the MicroProfile module with a Helidon/Quarkus application.
  2. Call NftRepository#findByType, findByOwner, or findByOwnerAndType.
  3. Observe RuntimeException: Not implemented at runtime.

Expected behavior

The three methods hit the Mirror Node REST API:

  • GET /api/v1/accounts/{accountId}/nfts
  • GET /api/v1/tokens/{tokenId}/nfts
  • GET /api/v1/tokens/{tokenId}/nfts?account.id={accountId}

Results are parsed correctly, including base64-decoded NFT metadata and empty result sets.

Module

hiero-enterprise-microprofile

Additional context

The Spring module (hiero-enterprise-spring) already implements these correctly.
This is a parity gap between the two framework modules.

Solution

s

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions