Skip to main content

New Token Swap Transactions API

· 2 min read

We’re excited to announce the launch of the Token Swap Transactions API for both EVM and Solana networks!

These APIs empower you to fetch detailed swap data for wallets, tokens, and token pairs, enabling seamless integration into trading, analytics, or notification platforms.

What’s New?

EVM APIs

NameDescriptionAPI ReferenceURL
Get Swaps by Pair AddressFetch swaps by pair addressMethod Documentationhttps://deep-index.moralis.io/api/v2.2/pairs/:address/swaps
Get Swaps by Token AddressFetch swaps by ERC20 token addressMethod Documentationhttps://deep-index.moralis.io/api/v2.2/erc20/:address/swaps
Get Swaps by Wallet AddressFetch swaps by wallet addressMethod Documentationhttps://deep-index.moralis.io/api/v2.2/wallets/:address/swaps

Solana APIs

NameDescriptionAPI ReferenceURL
Get Swaps by Pair AddressFetch swaps by pair addressMethod Documentationhttps://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/swaps
Get Swaps by Token AddressFetch swaps by token addressMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:tokenAddress/swaps
Get Swaps by Wallet AddressFetch swaps by wallet addressMethod Documentationhttps://solana-gateway.moralis.io/account/:network/:walletAddress/swaps

What Can You Do?

With these APIs, you can:

  • Track Token Swaps: Retrieve swap transactions for specific wallets, token pairs, or token addresses on both EVM and Solana chains.
  • Build Notification Systems: Power applications like Telegram bots or dashboards to monitor and alert users about token swaps.
  • Analyze Market Activity: Gather and analyze token swap data to understand market dynamics or build trading algorithms.

Example Use Cases:

  • Trading Dashboards: Monitor swap activity for specific tokens or wallets in real-time.
  • Analytics Platforms: Provide insights into swap volumes and token flow across wallets and pairs.
  • Notification Systems: Alert users about large swaps or specific swap events for tokens they are tracking.

Resources: