Registering a name
What it costs
| Suffix | Price | Registrar |
|---|---|---|
.windpay | 1 WIND | 0xf0C8567f3073B11ec9ca3A5044032b4863782c93 |
.pay | 3 WIND | 0x7024c2fC50a01EcA2eD16Bd044f737887CE7570f |
Plus gas, which at the minimum gas price is a fraction of a WIND. Registration is a one-time payment — there is no renewal.
Checking availability first
const registrar = new ethers.Contract(
'0xf0C8567f3073B11ec9ca3A5044032b4863782c93',
[
'function available(bytes32 label) view returns (bool)',
'function price() view returns (uint256)',
],
provider,
)
const label = ethers.keccak256(ethers.toUtf8Bytes('windswap'))
console.log(await registrar.available(label)) // false — already taken
console.log(await registrar.price()) // 1000000000000000000nNote available takes the keccak hash of the label, not the label string.
Read price() rather than hardcoding the cost — it is a contract value and can change.
Registering
function registerName(string name, address owner) external payable;Pass the label only, not the full name
registerName("windswap", owner) registers windswap.windpay.
registerName("windswap.windpay", owner) tries to register a name calledwindswap.windpay under the suffix — which is not what you want. The chain contains at least one name registered this way by mistake.
The suffix comes from which registrar you call. Pass the bare label.
const registrar = new ethers.Contract(
'0xf0C8567f3073B11ec9ca3A5044032b4863782c93',
['function registerName(string name, address owner) payable'],
wallet,
)
await registrar.registerName('mylabel', await wallet.getAddress(), {
value: ethers.parseEther('1'), // or read price() first
})The owner parameter does not have to be the sender — you can register a name directly to another address.
Overpaying is safe: the contract refunds the excess.
For a .pay name
Identical, but call the .pay registrar at 0x7024c2fC50a01EcA2eD16Bd044f737887CE7570f and send 3 WIND.
Confirming it worked
The transaction emits:
event NameRegistered(bytes32 label, string name, address owner, uint256 paid);Within about 15 seconds the name appears in the public directory at explorer.windpay.org/name-domains — the directory caches for a short interval, so allow for a brief delay.
Choosing a label
The registrar does not impose the strict character rules that validator monikers have — those are a separate system with their own 3-to-9-character, must-start- uppercase constraint. See Becoming a validator if that is what you are after.
Still, keep labels to lowercase letters, digits and hyphens. Names registered with spaces or mixed case exist on-chain and are awkward to type, share and resolve consistently.
After registering
Owning the name is not the same as being known by it. Two further steps:
Point the name at an address so lookups of yourname.windpay resolve. The registrar sets a resolver record pointing at the owner at registration time.
Set a reverse record so the explorer and other tools display your name next to your address. This is a separate transaction and must be sent from the address being named. See Reverse records.
Skipping the reverse record is the usual reason someone registers a name and then finds the explorer still showing raw hex.
Next step
Verified 2026-10-22. Function signatures — registerName(string,address) payable, available(bytes32) view returns (bool), price() view returns (uint256) and the NameRegistered(bytes32,string,address,uint256) event — read from the PriceRegistrar's verified ABI as published on the explorer. price() called live returned 1 WIND on the .windpay registrar and 3 WIND on the .pay registrar. The full-name-instead-of-label mistake is visible in the live directory listing.

