See the canonical spec:
.TypeScriptimport { Client, Wallet } from 'xrpl'; async function cancelNFTokenOffer(): Promise<void> { const client = new Client('wss://honeycluster.dev'); await client.connect(); const wallet = Wallet.fromSeed('s...'); const prepared = await client.autofill({ TransactionType: 'NFTokenCancelOffer', Account: wallet.address, NFTokenOffers: ['ABC...', 'DEF...'], }); const signed = wallet.sign(prepared); const res = await client.submitAndWait(signed.tx_blob); console.log(res); await client.disconnect(); } cancelNFTokenOffer().catch(console.error);
| Field | Type | Required | Description |
|---|---|---|---|
Account | String | Yes | The address of the account cancelling the offers |
NFTokenOffers | Array | Yes | Array of offer IDs to cancel |
NFTokenOffers:
Array of strings containing offer IDs
Can cancel multiple offers in a single transaction
Maximum of 200 offers can be cancelled at once
Note:
Can only cancel offers that you created
Cancelled offers are removed from the ledger
Cancelled offers cannot be recovered
If an offer has been partially filled, only the remaining portion is cancelled
Cancels one or more NFToken offers that you created
Can cancel both buy and sell offers in a single transaction
Cancelled offers are removed from the ledger
Only the offer creator can cancel their offers
Always use autofill to set fees and sequence safely when using the XRPL client library