See the canonical spec:
.TypeScriptimport { Client, Wallet } from 'xrpl'; async function cancelCheck(): Promise<void> { const client = new Client('wss://honeycluster.dev'); await client.connect(); const wallet = Wallet.fromSeed('s...'); const prepared = await client.autofill({ TransactionType: 'CheckCancel', Account: wallet.address, CheckID: 'ABC...', }); const signed = wallet.sign(prepared); const res = await client.submitAndWait(signed.tx_blob); console.log(res); await client.disconnect(); } cancelCheck().catch(console.error);
| Field | Type | Required | Description |
|---|---|---|---|
Account | String | Yes | The address of the account cancelling the check |
CheckID | String | Yes | The unique identifier of the check to cancel |
CheckID:
Unique identifier returned from CheckCreate
The check will be cancelled and removed from the ledger
Note:
Can be executed by either the check creator or destination
Cancelled checks cannot be recovered
Reserved funds are returned to the creator's account
Cancels a previously created check
Can only be executed by the check creator
CheckID identifies the specific check to cancel
Reserved funds are returned to the creator's account
Always use autofill to set fees and sequence safely when using the XRPL client library