axie-tools
Version:
TypeScript library and CLI tool for interacting with Axie Infinity marketplace and NFTs on Ronin network. Features marketplace operations (buy/sell/delist), batch transfers, and wallet information.
27 lines (20 loc) • 873 B
Markdown
# Example: Axie Marketplace
You only need Node.js to use this tool. You can install it from [here](https://nodejs.org/en/download/prebuilt-binaries/).
Then, copy the `.env.example` file to `.env` and fill in your account access token and private key. Please do not share your private key with anyone.
## Install dependencies
```bash
npm install
```
### Run the scripts
```bash
# This will buy the $AXIE_ID
node buy.js $AXIE_ID
# This will create a sale for the $AXIE_ID for 0.1 ETH
node list-for-sale.js $AXIE_ID 0.1
# This will create an auction for the $AXIE_ID from 0.1 ETH to 0.5 ETH with a duration of 24 hours
node list-for-sale-auction.js $AXIE_ID 0.1 0.5 24
# This will cancel the sale for the $AXIE_ID
node delist-from-sale.js $AXIE_ID
# This will transfer all Axies from the account to the $RECIPIENT_ADDRESS
node batch-transfer.js $RECIPIENT_ADDRESS
```