Required packages:
Transaction rejection implies the creation and execution of a new transaction with the same nonce
of the one we want to reject.
Once the rejection transaction is created, it must be approved and executed according to the threshold currently set to the safe.
For instance, if the current threshold is set to 2, rejecting a transaction will require:
As long as the rejection transaction isn’t executed, the initial transaction could still be approved and executed by other owners.
It creates a new transaction, rejectionTx
, that must be approved and executed in order to invalidate the original one.
Parameters:
safe: Safe
- the safe previously createdtransaction: SafeTransaction
- the transaction to be rejected.import { rejectTx } from '@rsksmart/safe-transactions-sdk'
const rejectionTx = await rejectTx(safe, transaction)
IMPORTANT: With the previously mentioned method, we are creating the rejection transaction, but we are not executing it. The rejection is successful only once it’s signed (according to the safe threshold) and executed. Please refer to transaction execution for further instructions.
Go to top