Alias System

From Nxtwiki
Jump to: navigation, search

Description

The Alias System feature of Nxt essentially allows one piece of text to be substituted for another, so that keywords or keyphrases can be used to represent other things – names, telephone numbers, physical addresses, web sites, account numbers, email addresses, product SKU codes... almost anything you can think of.

For example, you could ask Nxt to associate "search" with "www.google.com". Once this is done, all you have to do to get to Google is type "nxt:search" into a Nxt-capable browser, and it will translate your request in one for "www.google.com".

Immediate applications are simple: you can create an easy-to-remember alias for your Nxt account number, for example. But since the Alias System is open-ended, it can be used to implement a decentralized DNS system, shopping cart applications, and more.

Creating aliases is

  1. A user sends a transaction that states "ThisText = ThatText"
  2. If the alias is to be changed, just send another transaction with a new definition. Only the account that created an alias can change it.

Details

The alias can be any string of latin-character numbers and letters. The address can be anything like:

There are 2 main ways to use Nxt aliases without having to rely on third-party plugins for your browser:

  1. Server-side. A web server analyses the Nxt blockchain and replaces "nxt-links" with corresponding addresses before sending HTML documents to users.
  2. Client-side. A web browser runs javascript code that connects to Nxt bootstrapping nodes and replaces "nxt-links" with their addresses. This requires to embedding a small script which is executed in an "onload" event. The script will do all the work via CORS, JSON, or other techniques.

Alias Transfer/Sale

Aliases can be transferred for a 1 NXT fee.

Alias can be sold to either specific NXT Accounts or to the general public. To sell an alias, you can set the price to sell for every alias.

How To

See our Alias System How-To page

FAQ

See the Alias System section in our main Faq.

Release Date

The Alias System was implemented with block 22000. Software version 0.4.0 or later is required to use Alias features.

External Links