TradeFlows
  • TradeFlows
    • What is the Core Protocol?
    • Benefits of using TradeFlows
    • Innovations
    • Flows - Programmed Liquidity
    • Dharma - Collaborative Ratings
    • Smart Contracts
  • Guides
    • Getting Started
      • Assets
        • Minting
        • Agreeing
        • Composing
      • Payment Streams
        • Create
        • Pause
      • Escrows
        • Increase Collateral
        • Decrease Collateral
      • Ratings
      • Withdraw Funds
  • Use Cases
    • Web3
      • DAO Management
    • Web2
      • Building & Construction
      • Gig Economy
      • Small Business
  • Links
    • Website
    • Twitter
    • Discord
Powered by GitBook
On this page
  1. Guides
  2. Getting Started
  3. Payment Streams

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.

PreviousCreateNextEscrows

Last updated 2 years ago