Skip to main content

Overview

The Mayan Explorer API provides a powerful interface to track and monitor cross-chain swaps executed on the Mayan protocol. It delivers comprehensive transaction data for users and developers seeking detailed insights into swap lifecycle and status.

Interactive API Documentation

For users and developers who want to explore and test the Mayan API endpoints directly, we provide a Swagger UI portal. This user-friendly interface allows you to view all available endpoints, try out queries in real-time, and understand request and response formats without writing any code.

Swagger UI

Querying Transaction Status

Using the Explorer API, you can query transaction progress and details by providing the swap transaction hash. The API returns current statuses reflecting each step of the swap process.

Real-Time Monitoring and Auditing

This API enables real-time visibility into the entire swap journey, supporting auditing, error handling, and enriched user experience for frontends or backend integrations.

Example API Request

Hereโ€™s a sample request illustrating how to retrieve swap details using a transaction hash:

Detailed Swap Information

The API response includes all relevant fields such as swap status, involved tokens and chains, amounts transferred, timestamps, fees, and verification receipts. Every field is always present, and fields that do not apply to the swapโ€™s route are null. The example below is a Swift swap of USDT on BSC to SOL on Solana. It is abridged to the fields most integrations read; the full response has over a hundred fields.
Build your interface on clientStatus, which is INPROGRESS until the swap reaches a final state. fulfillTxHash is the destination-chain transaction that delivered the output, and txs lists every transaction in the swap with a block explorer link in scannerUrl. See Track Transactions for how to handle each status.