FusionFi Protocol Docs
English
English
  • Overview
  • Basic Concepts
  • Architecture
    • Architectural Design
  • Architectural Roles
    • User
    • Agent
      • Agent Core Functions
      • Agent Application Scenarios
      • Agent Types
      • Conclusion
    • Note
      • Note Schema
      • Note Functions
      • Note Lifecycle
      • Note Application Scenarios
      • Conclusion
    • Settlement
      • Settlement Functions
      • Settlement Types
      • Conclusion
  • Development
    • Agent Blueprints
      • Basic Blueprint
        • Zero-Capital Arbitrage Agent
      • OrderBook Blueprint
      • AMM Blueprint
        • Custom Market-Making Algorithm
    • Use Case
      • Prepare
      • Basic Agent
      • OrderBook Agent
      • AMM Agent
    • JS-SDK
      • Basic Blueprint
      • OrderBook Blueprint
      • AMM Blueprint
  • resource
    • Links
Powered by GitBook
On this page
  • Install
  • Setup config
  • Claim test tokens

Was this helpful?

  1. Development
  2. Use Case

Prepare

Install

Integrate aoffp into the project.

npm install aoffp

Install dependencies.

npm install
# or 
yarn install

Setup config

Create a wallet and save it to the wallets folder:

mkdir wallets
node ./generate.js

Configure 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.js

Check Balances:

node ./balance.js --address=$WALLET1

The output result is similar:

address: wBn7-31aDtChhLfUk_eXNG9Nbafa_ghT29XRxk7osiM  
$HELLO balance: 100000000000000  
$KITTY balance: 100000000000000
PreviousUse CaseNextBasic Agent

Last updated 5 months ago

Was this helpful?