hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
171 stars 108 forks source link

Name is not returned by the `/addresses/stacks/` endpoint #1995

Open pradel opened 3 weeks ago

pradel commented 3 weeks ago

Describe the bug

https://api.mainnet.hiro.so/v1/addresses/stacks/SP3V8TBGSRDW8TA4TJ7MW32AA2KH485CDNB6W9YAM returns an empty array while it should be returning polydeuces.id.stx as a name owned by SP3V8TBGSRDW8TA4TJ7MW32AA2KH485CDNB6W9YAM.

This can be verified by querying the name directly with https://api.mainnet.hiro.so/v1/names/polydeuces.id.stx which shows that the name is owned by SP3V8TBGSRDW8TA4TJ7MW32AA2KH485CDNB6W9YAM. The corresponding on chain tx for the name registration is https://explorer.hiro.so/txid/0x28d55d53a70dbfcaa8b2937f896f51c415c648bf9d122eaa0b77cb6b0dec96db?chain=mainnet.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://api.mainnet.hiro.so/v1/addresses/stacks/SP3V8TBGSRDW8TA4TJ7MW32AA2KH485CDNB6W9YAM
  2. See that the returned name array is empty

Expected behavior

The name polydeuces.id.stx should be returned for that address.