createRejectionTransaction
Returns a Safe transaction ready to be signed by the owners of the connected Safe that invalidates the pending Safe transactions with a specific nonce.
Usage
_10import {_10 MetaTransactionData,_10 OperationType_10} from '@safe-global/types-kit'_10import { protocolKit } from './setup.ts'_10_10const nonce = 123_10_10const rejectionTransaction = await protocolKit.createRejectionTransaction(nonce)
Parameters
nonce
- Type:
number
The nonce of the transaction that will be rejected.
_10const rejectionTransaction = await protocolKit.createRejectionTransaction(_10 123_10)
Returns
Promise<SafeTransaction>
The Safe transaction that invalidates the pending Safe transaction.