hirosystems / hirosystems/stacks-blockchain-api

Incorrect units on Namespace price API

Open
#1,621 3 comments 0 reactions 1 assignee Claimed by @LakshmiLavanyaKasturi View on GitHub
icebox
Dominant language
TypeScript
Stars
193
Forks
127
Avg merge
16h 35m
Merged PRs (30d)
46

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.