cancel_transaction
Cancel a stuck pending transaction by sending a 0-value transaction to yourself with a higher gas price. Overrides the original nonce to clear it from the mempool.
Instructions
Cancel a pending transaction by sending a 0-value transaction to yourself with the same nonce but higher gas
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"originalTxHash": "<originalTxHash>",
"privateKey": "<privateKey>"
},
"name": "cancel_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| privateKey | Yes | Private key in hex format (with or without 0x prefix). SECURITY: This is used only for address derivation and is not stored. The private key will not be logged or displayed in chat history. | |
| originalTxHash | Yes | The hash of the pending transaction to cancel | |
| gasPriceMultiplier | No | Multiplier for gas price (2 = double gas, range: 1.1-10) |