How to cancel your pending limit orders directly from the smart contract — UniTrade.
First thing first you will need to get your unique Order ID number from your TxHash, we will use the following Tx as an example:
Binance Transaction Hash (Txhash) Details | BscScan
0xd1ca1ddcc3fe3782cf851e1ec37b3547bbdfaecff168f496ce057a2e60d46410 6791801 3322418 Block Confirmations 117 days 1 hr…
Finding the Order ID number
Click on Logs (the tab next to overview), which should bring you to 👉 this page.
Then, scroll down and you will see the number 171 (that’s the order ID number for this TxHash)!
Please note that this number changes for each order, so yours will be a different number.
Cancelling the pending order
First thing first you will need to go to our orderBook contract:
- For BSC pending orders: https://bscscan.com/address/0x381980616e7cba73b1c264929cd8cde1a4318797#writeContract
- For ETH chain pending orders: https://etherscan.io/address/0xc1bf1b4929da9303773ecea5e251fdec22cc6828#writeContract
Click on “Connect to Web3” and connect your metamask wallet, and please make sure that it’s the same wallet address that you previously used to place the limit order you want to cancel.
Once your Metamask is connected, see where it says cancelOrder ( it’s the first row ), you will notice it has a fillable field just below it named orderid uint256, in that field enter the order ID number of the pending limit order that you want to cancel.
Last but not least, click on the write button and Metamask will prompt you to pay gas to process your request to cancel the pending order.
— — —
Need more assistance? Contact the UniTrade team at https://t.me/UniTradeApp