Query Flowns domain info by Cadence scripts
Cadence scripts for integrating domains and query domain data
Overview
There are two core contracts in Flowns service:
- Domains —— Define a NFT contract of Domains, store domain records, expired data, deprecate data,implement the subdomain and nest resource for each Flowns domain.
- Flowns —— Define the Root domain and admin resources for manage Domain, open the register and renew functions to users, manage price, vault for Flowns.
Mainnet vs. Testnet
Flowns deployed on two networks of Flow: Mainnet and Testnet. They have different contract address
Mainnet contracts address
- Domains: 0x233eb012d34b0070
- Flowns: 0x233eb012d34b0070
- FlowToken: 0x7e60df042a9c0868
- FungibleToken: 0x9a0766d93b6608b7
- NonFungibleToken: 0x631e88ae7f1d7c20
Testnet contracts address
- Domains: 0xb05b2abb42335e88
- Flowns: 0xb05b2abb42335e88
- FlowToken: 0x1654653399040a61
- FungibleToken: 0xf233dcee88fe0abe
- NonFungibleToken: 0x1d7e57aa55817448
Query domain scripts
Calculate namehash
Flowns use namehash as domain’s unique id in order to avoid duplicate domain, Flowns calculate the namehash on-chain with Cadence Crypto
module