New rpc command name_filter (branch fastindex)

Namecoin, NMControl
Post Reply
khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

New rpc command name_filter (branch fastindex)

Post by khal »

New rpc command name_filter (regexp, max age, from, to, stat)
Syntax : namecoind name_filter [regexp] [maxage=36000] [from=0] [nb=0] [stat]

Allow to filter names :
- with regexp on names
- on name height : get names modified last 150 blocks ofr example
- get a fraction of names with from and nb values, like name_scan
- or get stats (only the number of names for now)

* list all unexpired names
namecoind name_filter

* list all names in the d/ namespace
namecoind name_filter "^d/" 0

* list names modified last 150 blocks
namecoind name_filter "^d/" 150

* count names modified last 150 blocks
namecoind name_filter "^d/" 150 0 0 stat

* list 20 names from number 100
namecoind name_filter "" 0 100 20

Patch : https://github.com/khalahan/namecoin/co ... be2acd8101
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: New rpc command name_filter (branch fastindex)

Post by phelix »

sweeet!
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

Post Reply