subdomain-registrar icon indicating copy to clipboard operation
subdomain-registrar copied to clipboard

refactor requests to use a modern node requests library instead of `node-fetch`

Open rafaelcr opened this issue 2 years ago • 0 comments

There are newer request libraries such as undici that are much more easy to work with when it comes to JSON parsing, request/response schema validation, status code and headers handling, etc.

The registrar should be updated to use one of these librares so it can abstract away this logic when calling the Stacks API. Another option is to use the Stacks Blockchain API client to issue these calls.

rafaelcr avatar Nov 06 '23 20:11 rafaelcr