Prepare
Install
Integrate aoffp into the project.
npm install aoffpInstall dependencies.
npm install
# or
yarn installSetup config
Create a wallet and save it to the wallets folder:
mkdir wallets
node ./generate.jsConfigure WALLET1 and WALLET2 as environment variables in the .env.local file:
export $(cat .env.local | xargs)Claim test tokens
The example supports $HELLO and $KITTY as test tokens, which can be obtained using the following commands:
node ./airdrop.jsCheck Balances:
node ./balance.js --address=$WALLET1The output result is similar:
address: wBn7-31aDtChhLfUk_eXNG9Nbafa_ghT29XRxk7osiM
$HELLO balance: 100000000000000
$KITTY balance: 100000000000000Last updated
Was this helpful?