UNPKG

axie-ronin-ethers-js-tools

Version:

A set of functions that make it easier for developers to interact with their Axies on the Ronin network and the maketplace.

47 lines (31 loc) 1.46 kB
# Installing and using the CLI tool After installation, you can run the interactive CLI tool: ```shell npm install axie-ronin-ethers-js-tools npx axie-ronin-ethers-js-tools ``` This will present an interactive menu with the following options: - Get account info - Refresh access token - Approve WETH - Approve marketplace - Buy axie - Delist axie - Delist all axies - List axie - List all axies - Transfer axie - Transfer all axies The CLI will guide you through the required inputs for each action. ## Using the library in your projects Install the dependencies ```shell npm install axie-ronin-ethers-js-tools ethers@5.7.0 dotenv ``` List and axie on the markeplace, example here [examples/marketplace-js](https://github.com/alexx855/axie-ronin-ethers-js-tools/tree/main/examples/marketplace-js/sale.js) Delist an axie from the marketplace, full example here [examples/marketplace-js](https://github.com/alexx855/axie-ronin-ethers-js-tools/tree/main/examples/marketplace-js/cancel.js) Buy an axie, full example here [examples/buy](https://github.com/alexx855/axie-ronin-ethers-js-tools/tree/main/examples/buy) ### How tog get marketplace access token Get it from <https://app.axieinfinity.com/marketplace/> login and copy from the network tab using the browser developer tools ![ConsoleScreenshot](./examples/accessTokenConsoleScreenshot.png) ### Contributing Feel free to open an issue or a pull request if you have any questions or suggestions.