Minting DRC-20 Tokens Environment

Setup Your Account

To facilitate transactions on the Dogecoin network, you'll need to set up an account on Here's how to get started:

Register on

  1. Visit and sign up for a new account.

Generate Your API Key

  1. Once you've successfully registered and logged into your account, navigate to the user interface to generate your Dogecoin API key.

  2. Select 'Dogecoin' as the protocol and 'Mainnet' as the network, then click on 'Get'.

  3. A new entry will appear under 'My endpoints', formatted like so: This is your personal API key—do not share this with anyone.

Configure Your Environment

After acquiring your API key, you'll need to add this information to your environment. Here's how to do that:

  1. Copy the .env.example file to a new file named .env in the same directory.

  2. Open the .env file with the nano text editor: nano .env.

  3. Fill in the following information:

  1. Replace PRIVATE-KEY-DO-NOT-SHARE with your actual API key from Leave the NODE_RPC_USER and NODE_RPC_PASS fields empty.

Instead of copying .env.example, you can just run nano .env command, it'll create the file without any copy.

Bitcore-lib-doge installation

Run the following command:

npm install bitcore-lib-doge

Generate Wallet

Now it's time to create a new .wallet.json file. To do this, use the following command:

node . wallet new

This will generate a new Dogecoin address, which will be used for registering and sending transactions.

Funding Your Wallet

To start minting tokens, you'll need to send funds to the newly created Dogecoin address. We recommend sending 200 DOGE if you plan on minting tokens rapidly. (refer to our dedicated guide for quick minting)

Split Your UTXOs (Optional)

If you plan to mint a large number of tokens, consider splitting your Unspent Transaction Outputs (UTXOs). UTXOs are the outputs of previous transactions that can be spent as input in new transactions.

Splitting UTXOs allows you to process multiple transactions concurrently, enhancing the efficiency of the minting process.

To split your UTXOs, use the command:

node . wallet split <count>

Replace <count> with the number of splits you want to make. We recommend splitting into 50 UTXOs for optimal results.

Sync Your Wallet

After funding your wallet and optionally splitting your UTXOs, synchronize it using the command:

node . wallet sync

You should be able to see the amount of Dogecoin received by your wallet. In case of a 502 error, try running the command again.

Now, you're all set to start minting! Proceed to the next step.

Last updated