@stacks/bns
A package for interacting with the Bitcoin Naming System on the Stacks blockchain.
What is BNS?
The Blockchain Naming System (BNS) is a network system that binds Stacks usernames to off-chain state without relying on any central points of control.
Installation
Example Usages
Check availability
Check if name can be registered
Get name price
Get price of name registration in microstacks
Steps to register name
Send two transaction to secure a name, preorder and then register.
- Preorder: Generates a name preorder transaction. First step in registering a name. This transaction does not reveal the name that is about to be registered. And it sets the amount of STX to be burned for the registration.
- Register: Generates a name transfer transaction. This changes the owner of the registered name.
Preorder
Register
Transfer name
Transfer the ownership to other address
Update name
Generates a name update transaction. This changes the zonefile for the registered name.
Renew name
Generates a name renew transaction. This renews a name registration.
Revoke name
Generates a name revoke transaction. This revokes a name registration.
Last updated on