Documentation Index Fetch the complete documentation index at: https://docs.sequence.xyz/llms.txt
Use this file to discover all available pages before exploring further.
import { useCancelOrder } from '@0xsequence/marketplace-sdk/react' ;
## Into your React component :
const { cancelOrder } = useCancelOrder ({
chainId ,
collectionAddress
});
const onClickCancel = () => {
cancelOrder ({
marketplace ,
orderId ,
});
};
return < button onClick ={ onClickCancel }> Cancel Order </ button > ;
interface UseCancelOrderArgs {
collectionAddress : string ;
chainId : number ;
onSuccess ?: ({ hash , orderId } : {
hash ?: string ;
orderId ?: string ;
}) => void ;
onError ?: ( error : Error ) => void ;
}
cancelOrder
(args: CancelOrderArgs) => void
interface CancelOrderArgs {
orderId : string ;
marketplace : MarketplaceKind ;
}