Step 4 of 9

Step 4: Act as Buyer - Pay Deposit

For contracts where trader is buyer, they can pay deposits like any buyer.

📍 Page Location

URL: /dashboard/authenticated

📸 Visual Representation of the Page

Step 4: Act as Buyer - Pay Deposit
TRADER🔔 Notifications

My Contracts (Dual Role)

Contract IDMy RoleProductStatusActions
contract-001BUYERWheatPENDING DEPOSIT
contract-002SUPPLIERRicePENDING CONFIRMATION

🎨 Detailed Visual Description

Contracts with trader as buyer show "Pay Deposit" button. Same buyer workflow applies.

Key Visual Elements:

  • Buyer actions
  • Deposit payment
  • MetaMask support

⚙️ Backend Process

API Endpoint: POST /api/contracts/:contractId/deposit

Process Flow:
1. Validates trader is buyerEmail
2. Processes deposit payment
3. Updates contract status

Database Operations:

  • Table: database.contracts, database.wallets
  • Action: Process deposit as buyer

➡️ Next Action

Deposit paid, contract becomes active