> For the complete documentation index, see [llms.txt](https://tcset.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tcset.gitbook.io/docs/platform-structure-and-use-cases/smart-contract-examples.md).

# Smart Contract Examples

### Example 1: Bidirectional Trade Contract

* Buyer requests “Product A”
* Suppliers place bids
* System automatically matches with the lowest price or highest-rated supplier
* Upon meeting conditions, payment is executed automatically via smart contract
* Settlement and rating updates are processed automatically

### Example 2: Staking Contract

* User stakes 10,000 TC for 90 days
* Earnings are distributed automatically based on platform revenue at the predetermined rate
* Profits are credited to the wallet on the settlement date
