navcoin-core icon indicating copy to clipboard operation
navcoin-core copied to clipboard

Add listnames rpc method

Open sakdeniz opened this issue 3 years ago • 11 comments

Currently, there is no rpc method where we can see the list of registered names. I think it is necessary to add the listnames rpc method.

sakdeniz avatar Feb 05 '22 13:02 sakdeniz

Just list all dotNAV names?

mxaddict avatar Feb 05 '22 17:02 mxaddict

List all dotNAV names with subdomains and key, value pairs like resolvename.

sakdeniz avatar Feb 05 '22 17:02 sakdeniz

listing all the names with their entries can be a lot of data to transmit, might be better to only do it with the names imo

aguycalled avatar Feb 05 '22 20:02 aguycalled

So, its better to add mine parameter for filtering user owned domains or restrict method to only user owned domains with their entries.

sakdeniz avatar Feb 06 '22 07:02 sakdeniz

I think even with the filter, it is more efficient to only show the names, letting the client to later resolve individually if needed.

aguycalled avatar Feb 06 '22 08:02 aguycalled

If it's going to be a serious performance issue, what you said might make sense. It would be better to be able to get all domains and subdomains information at once if there is no delay.

sakdeniz avatar Feb 06 '22 08:02 sakdeniz

@sakdeniz I'm working on this now along side the nftindex

mxaddict avatar Feb 13 '22 03:02 mxaddict

If it's going to be a serious performance issue, what you said might make sense. It would be better to be able to get all domains and subdomains information at once if there is no delay.

Might be a solution Why don't maintain a cookie in the local Storage in the client, and regularly update it after a interval?

prashantbarge22 avatar Apr 14 '22 07:04 prashantbarge22

This patch has been updated to only list your own domains/subdomains, so it won't be too many to list.

mxaddict avatar Apr 14 '22 08:04 mxaddict

This patch has been updated to only list your own domains/subdomains, so it won't be too many to list.

Can you please help me with starting this project in windows as i am unable to do it

prashantbarge22 avatar Apr 14 '22 09:04 prashantbarge22

I'm not sure windows will be a good Idea for compiling this project, I would suggest running a linux VM.

I would suggest either VM Ware Player or Virtual Box, then install Ubuntu 20.04

mxaddict avatar Apr 14 '22 14:04 mxaddict