This script will cancel invalid sales on atomicmarket contract.
It will check for invalid sales every 60 seconds and cancel them if they are found.
This script requires Node.js >=20 and NPM.
Clone the repository with git clone and cd into the directory.
Install the required packages with npm ci.
Then run the script with npm run start.
The following environment variables are required:
ACTOR: The account to use for the transactionPERMISSION: The permission to use for the transactionCHAIN_ID: The chain IDCHAIN_URL: The chain URLPRIVATE_KEY: The private keyATOMIC_URL: The AtomicAssets API URL (must have atomicmarket enabled)
It is best to use a unique private key on a permission that can only call the atomicmarket::cancelsale action.
This project is licensed under the MIT License - see the LICENSE file for details.