POST/v3/sdk/{chainId}/convert

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute POST /run/pendle/v3/sdk/{chainId}/convertCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Read-only swap, mint, redeem, or add/remove liquidity preview quote for Pendle PT/YT/LP/SY tokens.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/pendle/v3/sdk/1/convert" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"chainId": "1", "receiver": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "slippage": 0.01, "enableAggregator": false, "inputs": [{"token": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0", "amount": "1000000000000000000"}], "outputs": ["0xb253eff1104802b97ac7e3ac9fdd73aece295a2c"]}'

Parameters

nameintypedescription
chainIdpathstrrequiredNumeric chain ID or canonical name (e.g. 1/ethereum, 42161/arbitrum, 8453/base, 56/bsc, 999/hyperevm).
example: 1
receiverbodystrrequiredTarget receiver address for route simulation.
example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
slippagebodyfloatrequiredSlippage tolerance fraction (e.g. 0.01 = 1%).
default: 0.01
example: 0.01
enableAggregatorbodybooloptionalAllow external DEX aggregator routing.
default: False
example: False
inputsbodylist[dict]requiredInput token and raw base-unit amount pairs.
example: [{"token":"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0","amount":"1000000000000000000"}]
outputsbodylist[str]requiredDesired output token addresses (PT, YT, LP, SY, or underlying).
example: ["0xb253eff1104802b97ac7e3ac9fdd73aece295a2c"]

Response

type: object
pagination: none
sample: {
  "action": "swap",
  "inputs": [],
  "routes": []
}