Contents

testingCorruptWithdrawalCoinSel#

Corrupt the denomination selection of a withdrawal transaction by replacing the first selected denomination’s public key hash with a random value, in order to test the wallet’s error handling.

Request:

The request must be a TestingCorruptWithdrawalCoinSelRequest object.

Response:

On success, the result is an empty object.

Side effects:

Intentionally corrupts the withdrawal’s coin selection in the wallet database (test failure injection).

Details:

The transactionId must identify a withdrawal transaction. Withdrawal groups without a denomination selection are left unchanged.

interface TestingCorruptWithdrawalCoinSelRequest {
  transactionId: TransactionIdStr;
}