@gluwa/transaction-cancel-tool
v0.0.1
Published
Tool to cancel transactions on a blockchain
Downloads
2
Readme
Transaction-Retry Tool
This Hardhat plugin add task and function to cancel transaction
Tasks
npx hardhat cancel
Task: cancel
Usage: hardhat [GLOBAL OPTIONS] cancel --tx-hash --signer-key
OPTIONS:
- --tx-hash The transaction hash of the transaction to cancel
- --signer-key The signer private key (or type hardhat to use hardhat.config private key)
- --gas-price Specify a gas price to cancel the transaction with (default: current network gas price) (default: "")
Functions
Function allow you to use the transaction cancel tool
const { transactionCancel } = require('hardhat');
transactionCancel.cancel(
txHash: string,
signerKey: string,
gasPrice?: string
)