Build a swap instruction.Documentation Index
Fetch the complete documentation index at: https://docs.hadron.fi/llms.txt
Use this file to discover all available pages before exploring further.
| Param | Type | Description |
|---|---|---|
user | PublicKey | The user’s wallet |
params.isX | boolean | Direction: true = X→Y, false = Y→X |
params.amountIn | bigint | Input amount in token atoms |
params.minOut | bigint | Minimum output (slippage protection) |
params.feeRecipient | PublicKey | Address to receive fees |
params.expiration? | number | Optional slot expiration |
Hadron does not currently support custom matching across multiple propAMMs for the same asset natively. For multi-prop matching, please use one of our supported aggregators or reach out to us to discuss more.
.png?fit=max&auto=format&n=pH37fL0GL14scVCH&q=85&s=5749b485c8c5b2386a4cca404e97d6be)