Jupiter icon

Jupiter

Jupiter token swap operations

Overview

This node interacts with the Solana blockchain to perform various token-related operations, specifically focusing on getting swap routes between tokens. It is useful for users who want to find possible token swap paths on Solana, such as decentralized exchange routes for swapping one token to another. For example, a user can input the mint addresses of two tokens and retrieve the available routes for swapping between them.

Use Case Examples

  1. Finding swap routes between two tokens on Solana to optimize token exchange.
  2. Retrieving token swap paths to integrate with a decentralized exchange or liquidity aggregator.

Properties

Name Meaning
Input Mint The mint address of the token to swap from, used to specify the source token in the route search.
Output Mint The mint address of the token to swap to, used to specify the destination token in the route search.

Output

JSON

  • routes - An array of possible swap routes between the input and output tokens, detailing the paths available for token exchange.

Dependencies

  • Requires connection to Solana blockchain via RPC URL and WebSocket endpoint.
  • Needs a private key credential for signing transactions or requests.

Troubleshooting

  • Ensure the Solana RPC URL and WebSocket endpoint are correctly configured and accessible.
  • Verify the private key is valid and correctly formatted in base58 encoding.
  • Check that the input and output mint addresses are valid Solana token mint addresses.
  • Common errors may include connection timeouts, invalid credentials, or invalid token mint addresses.

Links

  • Solana Documentation - Official documentation for Solana blockchain, useful for understanding RPC and token mint addresses.
  • Jupiter Aggregator Documentation - Documentation for Jupiter, a Solana-based liquidity aggregator, relevant for understanding token swap routes.

Discussion