Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 884 Bytes

cancel-swap-request.md

File metadata and controls

53 lines (39 loc) · 884 Bytes

Cancel Swap Request

Obtaining

dexter.newCancelSwapRequest()
    ...

CancelSwapRequest API

forTransaction(string): CancelSwapRequest Set which transaction to cancel from, given the Tx hash.
Using
dexter.newCancelSwapRequest()
    .forTransaction('abc...')
    ...

forDex(string): CancelSwapRequest Set which DEX the transaction came from.
Using
dexter.newCancelSwapRequest()
    .forDex(VyFinance.identifier)
    ...

cancel(): DexTransaction Submit the transaction to cancel your order.

Transaction & DEX must be set beforehand.

Using
dexter.newCancelSwapRequest()
    ...
    .cancel()