Writing the Solana Escrow in Anchor — Make, Take, Refund | Part 2
Автор: 100xSOL
Загружено: 2026-07-28
Просмотров: 58
Описание:
In Part 1 we mapped out the escrow architecture. Now we write it.
This is Part 2 of the Solana escrow series — a line-by-line code walkthrough of the escrow program in Rust using Anchor:
🔹 The make instruction — depositing tokens into the vault and initializing escrow state
🔹 The take instruction — completing the swap between maker and taker
🔹 The refund instruction — returning tokens and closing the escrow
🔹 PDAs, the vault ATA, seeds, event emit and bumps in practice
Watch Part 1 first if you haven't (concept + architecture, no code): • Solana Escrow Architecture Explained — Mak...
💻 Source code: https://github.com/princedotrs/escrow...
📌 Part 3 coming soon — subscribe so you don't miss it!
⏱️ Timestamps:
0:00 – Recap of Part 1
1:10 – state.rs — the escrow account
2:30 – events.rs
5:56 – make.rs
16:05 – take.rs
28:45 – refund.rs
35:22 – lib .rs
#Solana #Anchor #Rust #SmartContracts #Web3 #SolanaDevelopment #Escrow #Blockchain
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: