getNftAssets

Retrieves the list of NFT assets owned by the client on a specific blockchain.

Behavior on 400 (changed in v9.0.0):

  • Genuine HTTP 400 responses now surface as Result.failure(HttpBadRequest), propagated naturally from the transport layer.

  • The defensive block below still handles the rare "200 OK with error envelope" case by returning Result.success(empty + error) for backward compatibility with callers that branch on response.error. This is intentional defense-in-depth, not the primary failure path.

Return

A Result containing GetNftAssetsByChainResponse; or Result.failure(PortalException.Api.HttpBadRequest) for a 400 transport error; or Result.success(empty + error) for the rare 200-with-error-envelope case.

Parameters

chainId

The blockchain identifier.