Soroswap icon

Soroswap

Interact with Soroswap DEX on Stellar network

Overview

This node enables interaction with the Soroswap decentralized exchange (DEX) on the Stellar blockchain network. It supports multiple operations such as querying protocols, getting asset prices, building and sending transactions, managing liquidity pools, and retrieving user positions.

The Send Transaction operation specifically allows users to submit a signed Stellar transaction (in XDR format) to the network, optionally using a service called Launchtube for submission.

Practical scenarios include:

  • Submitting pre-signed Stellar transactions to execute swaps or liquidity changes.
  • Automating transaction submissions in workflows that prepare and sign transactions externally.
  • Using Launchtube as an alternative submission method for potentially improved reliability or speed.

Properties

Name Meaning
Network Selects the Stellar network to use: "Mainnet" or "Testnet".
Transaction XDR The signed transaction encoded as an XDR string, required for submission.
Use Launchtube Boolean flag indicating whether to submit the transaction via Launchtube service.

Output

The node outputs a JSON object representing the response from the Soroswap SDK's send method after submitting the transaction. This typically includes details about the transaction submission status, such as success confirmation or error information.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the Soroswap SDK to authenticate requests.
  • Depends on the Soroswap SDK (@soroswap/sdk) for interacting with the Soroswap DEX and Stellar network.
  • Network selection affects which Stellar network the transaction is submitted to (Mainnet or Testnet).

Troubleshooting

  • Invalid or malformed XDR string: Ensure the transaction XDR is correctly signed and properly formatted before submission.
  • Network mismatch errors: Confirm the selected network matches the network for which the transaction was signed.
  • API authentication failures: Verify that the provided API key credential is valid and has necessary permissions.
  • Launchtube submission issues: If using Launchtube, check its availability and any related configuration or network restrictions.
  • Unknown operation error: Occurs if the operation parameter is not set to "send" when attempting to send a transaction.

Links and References

Discussion