Skip to content

Incorrect units on Namespace price API #1621

Open
@bilalanees98

Description

@bilalanees98

Describe the bug
The response returned by the API dictates that units=STX, however the actual amount returned is in Micro Stacks.
To Reproduce
Steps to reproduce the behavior:

  1. Hit the API: https://api.mainnet.hiro.so/v2/prices/namespaces/something
  2. Check response

Expected behavior
I think the response should return 'uSTX' as the unit and the documentation should be updated to reflect this.

Screenshots
Screenshot 2023-04-19 at 1 57 02 PM

Additional context
Link to documentation: https://hirosystems.github.io/stacks-blockchain-api/#tag/Names/operation/get_namespace_price

Metadata

Metadata

Labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions