Bitfinity BTC Domains
Bitfinity Domains are a namespace for Bitcoin Layer2 domains, allowing for the extensions .btc .bitfinity .btcx and .bft
Introduction
Bitfinity Domains are a namespace for Bitcoin Layer2 domains, allowing for the following extensions:
A single domain, for instance hello.btc will resolve to a JSON object with several fields:
A P2WSH address
A Taproot (P2TR) address
An EVM address
An IC principal address
Metadata to store vanity URLs for instance
These fields are all optional and enable multiple address types to be associated with your domain, so that you can use the same address for Bitcoin as for the EVM. A user may have a P2TR address as well as a P2WSH address.
The Rust struct underpinning the data ius given to show which fields are optional.
Bitfinity domains are hosted on the Internet Computer, a decentralised web-server. In future, there will be an option to migrate your domain to the Bitcoin base-layer for an additional fee.
Installation
You can download the javascript sdk from here:
Resolving Domains
This JavaScript code snippet demonstrates how to use the Bitfinity Network's DNS SDK to resolve a domain name and retrieve its associated information. The SDK provides a resolve function, which is used to retrieve the records for a specific domain. The resolve function is asynchronous and returns a Promise that resolves to the domain information if the domain exists, or null if the domain does not exist.
Availability
This JavaScript code snippet uses the Bitfinity Network's DNS SDK to check the availability of a domain name across multiple suffixes.
This object returned contains key-value pairs where the keys are domain suffixes and the values are booleans indicating whether 'mycooldomain' is available with that suffix.
Registration
Registration is not available from the CLI, please visit: https://docs.google.com/forms/d/e/1FAIpQLSdYQpWCovoJ0x1mQkBHyVyEL8FAKUWtziCMwlHcYy7FJujcjw/viewform
Last updated