import { createRaribleSdk } from "@rarible/sdk" import { toOrderId } from "@rarible/types" import type { BlockchainWallet } from "@rarible/sdk-wallet" export async function cancelOrder(wallet: BlockchainWallet) { const sdk = createRaribleSdk(wallet, "testnet") const cancelTx = await sdk.order.cancel({ orderId: toOrderId(""), }) await cancelTx.wait() }