A high-performance script for batch minting NFTs on the Sui blockchain.
- Multi-wallet support (batch processing)
- Optimized gas management
- Error handling and retry mechanism
- Detailed transaction reporting
- Install dependencies:
npm install @mysten/sui.js
- Configure wallets:
- Create
wallet.txt
in the project root - Add one private key per line (suiprivkey format)
- Configure settings in
config.js
:
- RPC URL
- Contract ID
- Mint arguments
node sui.js
Edit config.js
to customize:
RPC_URL
: Sui RPC endpointCONTRACT_ID
: Target contract addressMINT_TIMES
: Number of mints per walletARGUMENTS
: Contract-specific arguments
suiprivkey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
suiprivkey1yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
The script includes:
- Gas optimization
- Network retry mechanism
- Detailed error logging