lst_swap
Swap between two LSTs via the Sanctum router (non-custodial).
from_lst/to_lst are mints; amount in base units. Returns an UNSIGNED base64 tx + output amount. The technology service fee is charged on the input-LST notional past the daily free tier (x402 payment_header). The acquired LST (to_lst) is authenticity-verified first; set allow_unverified=true to swap into an unverified LST at your own risk.
idempotency_key (optional): a client-generated UUID.
Retrying with the same key + same args replays the original result instead
of re-swapping. Reuse the SAME key across the build call and its
signed_transaction completion call -- see liquid_stake;
the two legs dedupe independently, so this never raises
IDEMPOTENCY_CONFLICT.
signed_transaction / verify (two-phase execution):
see liquid_stake -- re-call with the signed tx and Crank broadcasts it,
confirms it on-chain, and re-reads both LST balances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| to_lst | Yes | ||
| verify | No | ||
| from_lst | Yes | ||
| caller_id | No | ||
| pay_in_crank | No | ||
| payment_header | No | ||
| wallet_address | Yes | ||
| idempotency_key | No | ||
| allow_unverified | No | ||
| signed_transaction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||