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. Assets

Agreeing

Cryptographic Signatures... not pictures of signatures on PDFs.

Once the seller mints a trade and a token id is generated, the buyer is able to agree to the asset's agreement terms.

Agreement to payment terms happens through a standard web3 command that requires a cryptographic signature. Interestingly, this methodology is much more secure than traditional digital signatures.

const txHash = await buyer.invoke(
    txAssetContract, 
    "agree", 
    { 
      tokenId: toUint256WithFelts("0")
    },
    { maxFee: FEE}
  )

The token id in the example above is "0".

PreviousMintingNextComposing

Last updated 2 years ago