Pause

Full control of the payment stream

The payer can at any time pause the flow of tokens from the escrow account to the seller.

let tokenId = toUint256WithFelts("0")

await account0.invoke(
    txEscrowContract, 
    'pause', 
    { 
        tokenId: tokenId, 
        paused: 1 
    }, 
    { maxFee: FEE}
  )

The key variable is here is in line 9. Pause = 1 pauses all streams linked to a trade, while Pause = 0 unpauses them.

Next we will discuss escrows.

Last updated