Skip to content

megabyte0x/encode_bitcoin

Repository files navigation

Cit

Cit is the Citrea Naming Service.

Steps to Claim your .cit name

If you have ENS name set on your EVM address

Just call the registerWithoutFee function on the Payment contract.

Parameters:

  1. You will need to pass your EVM wallet address.
  2. namehash of your name. For Example: If you have megabyte.cit name, then run the following script to get the namehash of your name.
    const ethers = require('ethers');
    
    const name = 'megabyte.cit';
    const namehash = ethers.namehash(name);
    console.log(namehash);
  3. URI your token is pointing to. Following the NFT metadata standard.

If you don't have ENS name set on your EVM address

You will need to call the registerWithFee function on the Payment contract and pay 0.005 cBTC as one time fee.

Parameters:

  1. You will need to pass your EVM wallet address.
  2. namehash of your name. For Example: If you have megabyte.cit name, then run the following script to get the namehash of your name.
    const ethers = require('ethers');
    
    const name = 'megabyte.cit';
    const namehash = ethers.namehash(name);
    console.log(namehash);
  3. URI your token is pointing to. Following the NFT metadata standard.

Contracts on Citrea Testnet

Cit

0x6C27b8604e7DAe0D7e319a9C45006BAd71EaB7a9

This is the ERC721 contract for .cit names.

Registry

0x9846575bB1185D42C7A2AafB6963ED5bcc02670e

This is regsitry for the .cit names, storing the owners with respect to the tokenId and vice versa.

Payment

0xba4C071bb83dCC799311b7BF1077D837212FeA3d

This is the contract for handling the payments for .cit names and interacting with frontend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •