> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cách theo dõi giao dịch Solana

> Tìm hiểu cách sử dụng Orb, một trình khám phá khối Solana mới, để nghiên cứu giao dịch, bao gồm phần tóm tắt, số dư, chỉ thị nội bộ và JSON thô.

Hầu hết mọi người sử dụng trình khám phá khối Solana để xem và phân tích giao dịch, qua đó biết được điều gì đang diễn ra trên chuỗi.

Các ví và ứng dụng DeFi tích hợp với trình khám phá khối để người dùng có thể xác nhận trạng thái giao dịch, xem lịch sử giao dịch và hiểu rõ hơn điều gì đang diễn ra trên chuỗi.

Để [tra cứu một giao dịch Solana trên Orb](https://orbmarkets.io/), chỉ cần sao chép chữ ký giao dịch từ giao diện người dùng của ví hoặc ứng dụng rồi dán vào thanh tìm kiếm của Orb.

Hãy xem xét một giao dịch hoán đổi token điển hình.

Trong ví dụ này, [USDC được hoán đổi lấy ORE](https://orbmarkets.io/tx/52Vrdcyxp9TsfWByYdJ6nrufSBNi17oX6EmkftVcLd9YV2o4A86n8ZQCQpkvm68UyFX5eKUFfAm9PqPk5Pa7ZhXa?cluster=mainnet-beta\&tab=summary) thông qua Jupiter.

## Tổng quan và tóm tắt bằng AI

Nếu chỉ cần thông tin giao dịch cơ bản, hãy đọc phần tóm tắt hoặc nhấp vào nút "Explain with AI" để xem tổng quan cấp cao về những gì đã xảy ra trong giao dịch này.

Ví dụ: khi nhấp vào nút **Explain with AI**, bạn sẽ thấy giao dịch này đã hoán đổi \$83,188 \$USDC lấy 546.97 \$ORE bằng [chương trình Jupiter Aggregator v6](https://orbmarkets.io/address/JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4/history?cluster=mainnet-beta).

<Frame caption="AI summary explains this transaction as a multi-hop token swap routing ORE for USDC via Jupiter.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/solana-transaction-summary-explained-with-ai-on-the-orb-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=de4636feace5dabb4df714a33f691644" alt="AI summary explaining a complex multi-hop token swap routing ORE for USDC via Jupiter" title="" className="mx-auto" width="2880" height="1620" data-path="images/orb/explore-transactions/solana-transaction-summary-explained-with-ai-on-the-orb-explorer.jpg" />
</Frame>

## Tóm tắt và chi tiết chỉ thị

Khi cuộn xuống trang, phần **Instruction Summary** hiển thị tất cả các bước trung gian, chẳng hạn như chuyển \$USDC từ ví của chủ sở hữu sang tài khoản Jupiter Aggregator Authority.

<Frame caption="Summary list of instructions involved in the multi-hop swap on Jupiter.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/solana-transaction-instruction-summary-on-orb.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=6a9b8e8bc0fa42fd0c57a3cfb412a263" alt="Instruction summary showing intermediate transaction steps" className="mx-auto" width="2720" height="1530" data-path="images/orb/explore-transactions/solana-transaction-instruction-summary-on-orb.jpg" />
</Frame>

Tiếp theo là phần **chi tiết** của bản tóm tắt:

<Frame caption="Solana transaction details, including base fees, priority fees, fee payer, compute units consumed, confirmation, timestamp, and slot.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/solana-transaction-details-summary-on-orb-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=c57d4456a7834833dcf3cca4837b0dcc" alt="Solana transaction details, including fees, fee payer, compute units consumed, confirmation, timestamp, and slot" className="mx-auto" width="2282" height="1214" data-path="images/orb/explore-transactions/solana-transaction-details-summary-on-orb-explorer.jpg" />
</Frame>

## Số dư giao dịch

Khi nhấp vào tab **Balances**, chúng ta có thể xem bản tóm tắt rõ ràng về các thay đổi số dư token của từng địa chỉ và thị trường.

Có thể thấy ví ban đầu `3AWDT…WgBCu` đang hoán đổi USDC lấy ORE trên nhiều thị trường, bao gồm Orca, Goonfi và Meteora DLMM, mỗi thị trường xử lý một phần giao dịch.

<Frame caption="Balance summary changes, including the owner’s wallet, liquidity pools, and prop AMMs (e.g., Goonfi) involved in the transaction.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/solana-transaction-token-summary-on-the-orb-blockchain-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=fb65617c50f9118877808128902875b5" alt="Các thay đổi trong phần tóm tắt số dư, bao gồm ví của chủ sở hữu, các bể thanh khoản và prop AMM tham gia giao dịch" width="2278" height="1302" data-path="images/orb/explore-transactions/solana-transaction-token-summary-on-the-orb-blockchain-explorer.jpg" />
</Frame>

## Chỉ thị giao dịch

Khi nhấp vào tab **Instructions**, chúng ta có thể thấy giao dịch này bao gồm việc gọi Compute Budget Program và chương trình Jupiter Aggregator v6.

Khi mở rộng chương trình Jupiter, chúng ta thấy hơn 15 chỉ thị nội bộ, bao gồm việc gọi chương trình token của Solana, Whirlpool Program của Orca, DLMM Program của Meteora và chương trình GoonFi (một [Solana Prop AMM](https://www.helius.dev/blog/solanas-proprietary-amm-revolution)).

<Frame>
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/list-of-solana-inner-instructions-for-a-jupiter-swap-on-the-orb-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=c12aeea7c4c0277f25b8e9f1f3bd09e7" alt="Các chỉ thị nội bộ hiển thị những lần gọi chương trình" width="3424" height="1926" data-path="images/orb/explore-transactions/list-of-solana-inner-instructions-for-a-jupiter-swap-on-the-orb-explorer.jpg" />
</Frame>

Khi xem một chỉ thị nội bộ cụ thể (3.2), chúng ta thấy hành động Swap V2 từ Orca Whirlpool Program liên quan đến 19945154880 token và danh sách các tài khoản tham gia giao dịch, bao gồm tài khoản 6 (token \$ORE) và tài khoản 7 (token \$USDC).

<Frame caption="The second inner instruction involves Jupiter’s Aggregator v6 program, invoking a swap between $USDC and $ORE on Orca’s Whirlpool Program.">
  <img src="https://mintcdn.com/helius/G75QmETR3orvhFJK/images/orb/explore-transactions/inner-instructions-from-a-transaction-shown-on-the-orb-block-explorer-for-solana.jpg?fit=max&auto=format&n=G75QmETR3orvhFJK&q=85&s=1b17967ad55c0e86e421a7733839eb8e" alt="Chỉ thị nội bộ thứ hai liên quan đến chương trình Jupiter Aggregator v6, gọi một giao dịch hoán đổi giữa USDC và ORE trên Whirlpool Program của Orca" width="3104" height="1746" data-path="images/orb/explore-transactions/inner-instructions-from-a-transaction-shown-on-the-orb-block-explorer-for-solana.jpg" />
</Frame>

Khi xem chỉ thị 3.3, chúng ta thấy 19945154880 token tương ứng với \$19,945.154880 USDC (vì token \$USDC có 6 chữ số thập phân), còn chỉ thị 3.4 hiển thị lượng token là 132.03968385902 \$ORE.

<Frame caption="The third and fourth inner instructions show the Transfer Checked action from Solana's token program for USDC and ORE respectively.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/solana-transaction-inner-instruction-on-the-orb-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=a25f9d9541a83f351a23a609adc7c46f" alt="Chỉ thị nội bộ của giao dịch Solana trên Orb Explorer Jp" width="3200" height="1800" data-path="images/solana-transaction-inner-instruction-on-the-orb-explorer.jpg" />
</Frame>

## Nhật ký chỉ thị giao dịch

Để kiểm tra nhật ký giao dịch, hãy nhấp vào tab **Logs**. Tại đây, chúng ta có thể xem nhật ký do từng chương trình phát ra. Nhật ký thường hiển thị tên của chỉ thị được gọi, trạng thái (tức là thành công/thất bại) và số đơn vị tính toán đã sử dụng.

<Frame caption="View of the Orca Whirlpool Program SwapV2 instruction logs.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/solana-program-instruction-logs-on-the-orb-block-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=a0ff5d07927f62da3fa3b20244489872" alt="Chế độ xem nhật ký chỉ thị SwapV2 của Orca Whirlpool Program" width="2654" height="1494" data-path="images/orb/explore-transactions/solana-program-instruction-logs-on-the-orb-block-explorer.jpg" />
</Frame>

## JSON giao dịch thô

Để xem kết quả chi tiết nhất, hãy nhấp vào tab **Raw**.

Tại đây, bạn có thể xem từng chỉ thị dưới dạng đầu ra JSON thô. Có thể làm cho dữ liệu này dễ đọc hơn bằng cách bật nút chuyển "Helius Enhanced".

<Frame caption="Helius Enhanced JSON transaction outputs.">
  <img src="https://mintcdn.com/helius/GK_UEjIuMAXci0nx/images/orb/explore-transactions/enhanced-raw-json-instruction-details-for-a-solana-transaction-on-the-orb-block-explorer.jpg?fit=max&auto=format&n=GK_UEjIuMAXci0nx&q=85&s=14a228b281d53f057258369c04d168a7" alt="Đầu ra giao dịch JSON Helius Enhanced" width="1952" height="1098" data-path="images/orb/explore-transactions/enhanced-raw-json-instruction-details-for-a-solana-transaction-on-the-orb-block-explorer.jpg" />
</Frame>

<Tip>
  Nhật ký chỉ thị cấp thấp và đầu ra thô hữu ích nhất cho các nhà phát triển đang gỡ lỗi chương trình và các nhà phân tích muốn tìm hiểu cách chương trình hoạt động.
</Tip>

## Kết luận

Kiểm tra giao dịch Solana là một trường hợp sử dụng quan trọng của trình khám phá blockchain như [Orb](https://orbmarkets.io).

Từ trạng thái xác nhận cấp cao đến đầu ra JSON thô cấp thấp để gỡ lỗi giao dịch, các [trình khám phá khối hàng đầu](https://www.helius.dev/blog/top-solana-block-explorers) như Orb cung cấp cho mọi người những công cụ cần thiết để đọc và phân tích giao dịch trên Solana.
