Get $AGUNG tokens
This guide explains how to request the $AGUNG tokens (testnet tokens) from the faucet bot on Discord and connect your funded wallet to a local environment.
Prerequisite
Substrate (SS58) address. (e.g. polkadot.js or Talisman wallets)
Join the peaq server
Getting $AGUNG
Obtaining the tokens is incredibly simple. Join the Discord channel and underneath goto the #get-roles channel. Please click on the 🏗️ (crane) image to claim your role as a developer. After doing so the #agung-faucet channel will appear. Now you have access to send a formatted message with your wallet address. The bot will then send 1.0 $AGUNG to your wallet.
Message format:
!send <your-wallet-address-here>
For example, here's a message requesting the bot to send $AGUNG tokens to 5HZ89ZMLw1QTFKtE4iegxQUoB452418J4vSXYuebjcNcKNVm
wallet.
!send 5HZ89ZMLw1QTFKtE4iegxQUoB452418J4vSXYuebjcNcKNVm
After sending the message you should see a success message from the bot:
$AGUNG confirmation
After the test tokens have been sent to your wallet, you will need to confirm that have been sent properly. You can confirm by going to the accounts tab in the agung block explorer page. Connect your wallet(s) to the page to see the agung balance as shown below.
Connecting Tokens to Local Env
Once it has been confirmed that your wallet has agung, the wallet's seed phrase must be connected to the SDK to perform write operations. To abstract away the seed phrase download the dot.env secret resource manager for safe local storage. Create a .env file in your root repository and add an appropriately named variable (e.g. MNEMONIC). Assign your seed phrase that is affiliated with your wallet to this variable to properly fund write transactions.
Example .env file
MNEMONIC="YOUR SECRET SEED PHRASE"
Import into local .js file
import dotenv from 'dotenv';
dotenv.config();
const MNEMONIC = process.env.MNEMONIC;
Now you have a global variable that can be used as the seed to fund write transactions using the SDK, and to fund deployment of EVM Contracts or WASM contracts.