Staking

Swing SDK supports two types of staking for both same-chain staking and cross-chain staking:

  • Native staking (Deposit)
  • Buying from a DEX (Swap)

Learn more about staking and supported routes

Monetize your integration by collecting partner fees up to 10% of the transaction volume. Learn More

Implementation steps:

  1. Choose the staking contract The Swing SDK provides a few utility methods to a list of all available contracts. You'll need the contract.id to get a list of quotes before executing a staking transaction.
  2. Get available routes Swing searches across all available routes for native staking and buying LSD from DEXes.
  3. Execute staking transaction Once you have selected a route, you can execute your staking transaction.