Pendle
Supported Chains
Available on Arbitrum, Base, Binance Smart Chain, Ethereum and Optimism
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getmarkettokens
GET
-Returns all the tokens in the specified market address./getmarketdata
GET
- Returns the data for the specified market ./getbalance
GET
-Returns the balance of particular address of the specified market ./transferliquidity
POST
- Initiate the transfer liquidity from source market address to destination market address ./mint
POST
-Initiates a mint transaction within a yield aggregator protocol, converting deposited assets into yield-bearing tokens (or share tokens)./swap
POST
- Initiates a swap transaction within a yield aggregator protocol, enabling users to exchange deposited tokens for another asset via the yield aggregation mechanism./addliquidity
POST
- Initiate the transaction to add liquidity from a specified market ./removeliquidity
POST
- Initiate the transaction to remove liquidity from a specified market.
Yield Aggregator IDs
Pendle
Ethereum
5200
Pendle
Arbitrum
5201
Pendle
Base
5202
Pendle
Optimism
5203
Pendle
Binance Smart Chain
5204
Endpoint Details
/getmarkets
Returns the list of the pendle market .
GET
https://api.expand.network/yieldaggregator/getmarkets
Query Parameters
rpc
String
Remote procedural call URL.
yieldAggregatorId*
String
includeInactive
Boolean
If true,
return the Market with expiry also.
By default, false
/getmarkettokens
Returns all the tokens in the specified market address.
GET
https://api.expand.network/yieldaggregator/getmarkettokens
Query Parameters
rpc
String
Remote procedural call URL.
marketAddress*
String
Address of the specific market.
yieldAggregatorId*
String
/getmarketdata
Returns the data for the specified market .
GET
https://api.expand.network/yieldaggregator/getmarketdata
Query Parameters
rpc
String
Remote procedural call URL.
marketAddress*
Boolean
Address of the specific market.
yieldAggregatorId*
String
/getbalance
Returns the balance of particular address of the specified market .
GET
https://api.expand.network/yieldaggregator/getbalance
Query Parameters
rpc
String
Remote procedural call URL.
marketAddress*
String
Address of the specific market.
yieldAggregatorId*
String
address*
String
Public address of the user.
/transferliquidity
Initiate the transfer liquidity from source market address to destination market address .
POST
https://api.expand.network/yieldaggregator/transferliquidity
Query Parameters
rpc
String
Remote procedural call URL.
marketAddress*
String
Source market address.
yieldAggregatorId*
String
from*
String
Public Address of the user.
dstMarketAddress*
String
destination market address.
lpAmount*
String
LP token amount. The minimum valuation is 0.01 USD
ptAmount*
String
Principal token amount. The minimum valuation is 0.01 USD
ytAmount*
String
Yield token amount. The minimum valuation is 0.01 USD
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
redeemRewards
Boolean
Redeem accrued rewards.
zeroPriceImpact
Boolean
Zero price impact mode.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
/redeem
Initiates a redeem transaction within a yield aggregator protocol, converting yield-bearing tokens back into their underlying asset.
Note: Redeem PT & YT to tokens. If called before YT's expiry, both PT & YT of equal amounts are needed and will be burned.Else, only PT is needed and will be burned. User can redeem standard yield token by providing syAddress, similarly user can redeem yield token address by providing ytAddress.
POST
https://api.expand.network/yieldaggregator/redeem
Query Parameters
rpc
String
Remote procedural call URL.
tokenOut*
String
Address of token to be redeemed.
yieldAggregatorId*
String
from*
String
Public Address of the user.
amountIn*
String
Amount to be redeemed.
syAddress*
String
Standard yield address.
ytAddress*
String
Yield token address.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
/mint
Initiates a mint transaction within a yield aggregator protocol, converting deposited assets into yield-bearing tokens (or share tokens).
Note: User can mint standard yield token by providing syAddress, similarly user can mint yield token address by providing ytAddress.
POST
https://api.expand.network/yieldaggregator/mint
Query Parameters
rpc
String
Remote procedural call URL.
tokenIn*
String
Address of token to be mint.
yieldAggregatorId*
String
from*
String
Public Address of the user.
syAddress*
String
Standard yield address.
ytAddress*
String
Yield token address.
amountIn*
String
Amount to be mint.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
/swap
Initiates a swap transaction within a yield aggregator protocol, enabling users to exchange deposited tokens for another asset via the yield aggregation mechanism.
POST
https://api.expand.network/yieldaggregator/swap
Query Parameters
rpc
String
Remote procedural call URL.
enableAggregator
Boolean
If true, enable swap aggregator to swap between tokens that cannot be natively converted from/to the underlying asset.
yieldAggregatorId*
String
from*
String
Public Address of the user.
path*
String
Comma-separated values of token pair.
amountIn*
String
Amount to be swapped.
marketAddress*
String
Address of the market.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
/addliquidity
Initiate the transaction to add liquidity from a specified market .
POST
https://api.expand.network/yieldaggregator/addliquidity
Query Parameters
rpc
String
Remote procedural call URL.
tokenIn*
String
Address of the token to be added.
yieldAggregatorId*
String
from*
String
Public Address of the owner.
marketAddress*
String
Address of the market.
amount*
String
If user is initiating single side liquidity provisioning .
amountPtIn*
String
If user is initiating dual liquidity provisioning .
zeroPriceImpact
Boolean
Zero price impact mode.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
/removeliquidity
Initiate the transaction to remove liquidity from a specified market .
POST
https://api.expand.network/yieldaggregator/removeliquidity
Query Parameters
rpc
String
Remote procedural call URL.
tokenOut*
String
Address of token to be removed.
yieldAggregatorId*
String
from*
String
Public Address of the owner.
marketAddress*
String
Address of the market.
amountIn*
String
Amount to be removed
enableAggregator
String
If true, enable swap aggregator to swap between tokens that cannot be natively converted from/to the underlying asset
isDual
Boolean
If true, then dual-token removal mode will be initiated and user will get back both tokens and PT
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value < 100
gas*
String
Maximum gas limit provided by the sender, for the transaction.
gasPriority
String
Low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With ofacCheck:
Last updated