📚Guides and Tutorials for Users and Developers

Empowering the AID Token Community with Knowledge and Skills

For Users

How to Buy AID Tokens

  1. Create a Wallet: Create a cryptocurrency wallet that supports Binance Smart Chain (BSC). MetaMask is a popular choice.

  2. Fund Your Wallet: Buy BNB tokens from a cryptocurrency exchange and transfer them to your wallet.

  3. Connect to Tarmex: Go to Tarmex.io's website and connect your wallet.

  4. Swap BNB for AID: In Tarmex.io, select BNB as the input token and AID as the output token, then click on 'Swap'.

How to Stake AID Tokens

  1. Go to the AID Platform: Navigate to the AID platform's website and connect your wallet.

  2. Go to the Staking Section: Click on 'Staking' in the menu.

  3. Select Amount to Stake: Enter the amount of AID Tokens you want to stake.

  4. Confirm the Transaction: Review the details and confirm the transaction.

For Developers

Interacting with the AID Token Contract

To interact with the AID Token contract, you'll first need to instantiate it in your code using its contract address. Here's how you can do that with Web3.js:

// Some code
const Web3 = require('web3');
const web3 = new Web3('https://bsc-dataseed.binance.org/');

const aidTokenABI = [...] // Insert AID Token contract ABI here
const aidTokenAddress = '0x...'; // Insert AID Token contract address here

const aidTokenContract = new web3.eth.Contract(aidTokenABI, aidTokenAddress);

You can then call the contract's methods like this:

// Some code
const totalSupply = await aidTokenContract.methods.totalSupply().call();
console.log('Total supply of AID Tokens:', totalSupply);

Developing a DApp on the AID Platform

When developing a decentralized application (DApp) on the AID platform, you can leverage its smart contracts to integrate features such as token transfers, staking, and lending. Here's a simplified example of how you could implement a staking feature in your DApp:

// Some code
const amountToStake = web3.utils.toWei('100', 'ether'); // Stake 100 AID Tokens

await aidTokenContract.methods.approve(aidStakingAddress, amountToStake).send({ from: userAddress });
await aidStakingContract.methods.stakeTokens(amountToStake).send({ from: userAddress });

This is just the tip of the iceberg when it comes to the possibilities opened up by the AID platform. As you delve deeper into the platform's capabilities, you'll discover numerous ways to create innovative DeFi applications that benefit users and contribute to the AID ecosystem.

Last updated