Swing SDK supports two types of staking for both same-chain staking and cross-chain staking:
- native staking (Deposit)
- buying from a DEX (Swap)
Monetize your integration by collecting partner fees up to 10% of the transaction volume. Learn More
- Choose the staking contract
The Swing SDK provides a few utility methods to a list of all available contracts. You'll need the
contract.idto get a list of quotes before executing a staking transaction.
- Get available routes Swing searches across all available routes for native staking and buying LSD from DEXes.
- Execute staking transaction Once you have selected a route, you can execute your staking transaction.