Minting DRC-20 Tokens Environment
Setup Your Getblock.io Account
To facilitate transactions on the Dogecoin network, you'll need to set up an account on Getblock.io. Here's how to get started:
Register on Getblock.io
Visit Getblock.io and sign up for a new account.
Generate Your API Key
Once you've successfully registered and logged into your account, navigate to the user interface to generate your Dogecoin API key.
Select 'Dogecoin' as the protocol and 'Mainnet' as the network, then click on 'Get'.
A new entry will appear under 'My endpoints', formatted like so:
https://doge.getblock.io/PRIVATE-KEY-DO-NOT-SHARE/mainnet/
. 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:
Copy the
.env.example
file to a new file named.env
in the same directory.Open the
.env
file with the nano text editor:nano .env
.Fill in the following information:
Replace
PRIVATE-KEY-DO-NOT-SHARE
with your actual API key from Getblock.io. Leave theNODE_RPC_USER
andNODE_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:
Generate Wallet
Now it's time to create a new .wallet.json
file. To do this, use the following command:
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:
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:
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