Check BNS name expiration
How can I check the expiration block of a BNS name using the explorer sandbox?
Last updated
How can I check the expiration block of a BNS name using the explorer sandbox?
Last updated
This guide will help you find out the expiration block for a BNS name so you can renew it on time. The namespace you registered in dictates the frequency with which you have to renew the name. Some examples: in the .id space renewal is required yearly, in the .btc namespace it is required every 5 years and in the .stx namespace the names never expire. This guide is valid for Stacks 2.4.
Visit explorer.hiro.so
Click sandbox in the top right
Sign in with any address
Go to the second tab on the left to get the contract interface for BNS
Select the BNS contract
Select "name-resolve" (read only function)
add namespace (id), and name (1), see result by clicking "call function": lease ending at Stacks block 181323
Check current block height on explorer.hiro.so: 181323-130283 = 51040 blocks difference
In this case the the domain was recently renewed and is valid for about 50k blocks, which is about a year because we expect about 144 blocks per day.