Skip to main content

2. Run the CLI

npm run new-adapter

You'll be asked a series of questions to describe your DeFi product, such as:

  • Is the balanceOf(address) function used to query the asset balance in your product?
  • How many underlying tokens does your DeFi asset represent?

These questions help the library generate the necessary code, reducing the amount of custom code you need to write.

The first question gives you an overview of all the prompts:

CLI First Question