Rune Minting

Github

Rune Mint is the process of creating new runes on the Bitcoin blockchain using the Ordinals protocol.

Step 1: InstallCopied!

  1. Install bun.sh:
    Use the following command to install Bun:

    curl -fsSL https://bun.sh/install | bash

  2. Install dependencies:
    Run the command to install the required packages:

    bun i

Step 2: ConfigureCopied!

  1. Create a P2WPKH (SegWit) Address:
    Generate a Pay-to-Witness-Public-Key-Hash address to store your funds.

  2. Fund the Address:
    Deposit Bitcoin into the generated SegWit address.

  3. Set Parameters in Runes.ts:

    • PRIVATE_KEY: Add your private key for transaction signing.

    • FEE_RATE: Define the fee rate in satoshis per virtual byte (sat/vB) for mint transactions.

    • MINT_COUNT: Specify how many mint transactions to batch together. The initial deposit will be split into this number of parts for minting.

  4. Initial Setup:
    The project is preconfigured to mint the rune named NINTONDO with the ID 1:0. View the rune at: https://ord.nintondo.io/rune/NINTONDO

To mint a different rune, adjust the RuneId in the code as follows:

const mintstone = new Runestone([], none(), some(new RuneId(1, 0)), some(1));

  • RuneId: Identifies the rune. The first number represents the series (collection), and the second is a unique identifier within the series.

  • mintstone: Object responsible for minting the rune.


Step 3: RunCopied!

Execute the minting script:

bun runes.ts