stardust-api-tester

Prerequisites

  • Node.js
  • Yarn or NPM

Install dependency

yarn

or

npm install

Configuration

  1. Copy .env-template and rename it to .env.
  2. Modify .env environment variables.
  • API_ENDPOINT: Specifies a API endpoint for testing.
  • SPAMMER_ADDRESS: Callers will trace the alias, foundry, and nft generated by the spammer, and use them to request the indexer. If you have multi address for spammer, specifies the array as a delimited string.
    SPAMMER_ADDRESS="tst1qqweu75ldpyann5jsthqsa6m0thx4tmqxncj6uqxf5q974pmqx30y5mcdp2, tst1qqweu75ldpyann5jsthqsa6m0thx4tmqxncj6uqxf5q974pmqx30y5mcdp2, tst1qqweu75ldpyann5jsthqsa6m0thx4tmqxncj6uqxf5q974pmqx30y5mcdp2"
    
  • ENABLE_EXPLORER: Specifies whether to enable the explorer API or not.
  • LOGGER_LEVEL: Specifies the logger level. You can see the API response at the debug level.

Start

yarn start

or

npm run start