POST/v3/sdk/{chainId}/convert
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 freeRead-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
| name | in | type | description | |
|---|---|---|---|---|
chainId | path | str | required | Numeric chain ID or canonical name (e.g. 1/ethereum, 42161/arbitrum, 8453/base, 56/bsc, 999/hyperevm). example: 1 |
receiver | body | str | required | Target receiver address for route simulation. example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
slippage | body | float | required | Slippage tolerance fraction (e.g. 0.01 = 1%). default: 0.01example: 0.01 |
enableAggregator | body | bool | optional | Allow external DEX aggregator routing. default: Falseexample: False |
inputs | body | list[dict] | required | Input token and raw base-unit amount pairs. example: [{"token":"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0","amount":"1000000000000000000"}] |
outputs | body | list[str] | required | Desired output token addresses (PT, YT, LP, SY, or underlying). example: ["0xb253eff1104802b97ac7e3ac9fdd73aece295a2c"] |
Response
type: object
pagination: none
sample: {
"action": "swap",
"inputs": [],
"routes": []
}