Pendle Finance action reference
This page is generated from the plugin registry. Do not edit it by hand.
Pendle Finance: yield tokenization protocol for trading fixed and variable yield on DeFi assets
For guidance and examples see the Pendle Finance guide.
Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.
Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.
| Action | Action type |
|---|---|
| Pendle Finance: Mint PT and YT from SY | pendle/mint-py-from-sy |
| Pendle Finance: Redeem PT and YT to SY | pendle/redeem-py-to-sy |
| Pendle Finance: Get vePENDLE Balance | pendle/get-ve-pendle-balance |
| Pendle Finance: Get vePENDLE Total Supply | pendle/get-ve-pendle-total-supply |
| Pendle Finance: Get vePENDLE Lock Position | pendle/get-ve-pendle-position |
| Pendle Finance: Get Market Expiry | pendle/get-market-expiry |
| Pendle Finance: Is Market Expired | pendle/is-market-expired |
| Pendle Finance: Get LP Balance | pendle/get-lp-balance |
| Pendle Finance: Get Active LP Balance | pendle/get-active-lp-balance |
| Pendle Finance: Get PT Balance | pendle/get-pt-balance |
| Pendle Finance: Is PT Expired | pendle/is-pt-expired |
| Pendle Finance: Get YT Balance | pendle/get-yt-balance |
| Pendle Finance: Get SY Balance | pendle/get-sy-balance |
| Pendle Finance: Get SY Exchange Rate | pendle/get-sy-exchange-rate |
Pendle Finance: Mint PT and YT from SY
Action type: pendle/mint-py-from-sy. Connection: required (web3).
Split Standardized Yield tokens into Principal Tokens and Yield Tokens
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
receiver | address | Yes | Receiver Address (address). | ||
YT | address | Yes | YT Token Address (address). | ||
netSyIn | uint256 | Yes | SY Amount (wei) (uint256). | ||
minPyOut | uint256 | Yes | Minimum PT/YT Out (wei) (uint256). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Pendle Finance: Redeem PT and YT to SY
Action type: pendle/redeem-py-to-sy. Connection: required (web3).
Merge Principal Tokens and Yield Tokens back into Standardized Yield tokens
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
receiver | address | Yes | Receiver Address (address). | ||
YT | address | Yes | YT Token Address (address). | ||
netPyIn | uint256 | Yes | PT/YT Amount (wei) (uint256). | ||
minSyOut | uint256 | Yes | Minimum SY Out (wei) (uint256). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Pendle Finance: Get vePENDLE Balance
Action type: pendle/get-ve-pendle-balance. Connection: not required.
Check the vePENDLE voting power balance of an address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
user | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | vePENDLE Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get vePENDLE Total Supply
Action type: pendle/get-ve-pendle-total-supply. Connection: not required.
Get the stored total vePENDLE supply across all lockers
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. |
Outputs
| Output | Description |
|---|---|
result | Total vePENDLE Supply |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get vePENDLE Lock Position
Action type: pendle/get-ve-pendle-position. Connection: not required.
Get the lock position data for an address (amount and expiry)
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1 | Network. | |
user | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.amount | Locked PENDLE Amount |
result.expiry | Lock Expiry Timestamp |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get Market Expiry
Action type: pendle/get-market-expiry. Connection: not required.
Get the expiry timestamp of a Pendle market
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Pendle Market Address. |
Outputs
| Output | Description |
|---|---|
result | Expiry Timestamp |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Is Market Expired
Action type: pendle/is-market-expired. Connection: not required.
Check whether a Pendle market has passed its expiry date
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Pendle Market Address. |
Outputs
| Output | Description |
|---|---|
result | Is Expired |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get LP Balance
Action type: pendle/get-lp-balance. Connection: not required.
Check the LP token balance for a Pendle market position
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Pendle Market Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | LP Token Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get Active LP Balance
Action type: pendle/get-active-lp-balance. Connection: not required.
Check the active (non-expired) LP balance earning rewards in a Pendle market
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Pendle Market Address. | ||
user | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | Active LP Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get PT Balance
Action type: pendle/get-pt-balance. Connection: not required.
Check the Principal Token balance of an address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Principal Token (PT) Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | PT Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Is PT Expired
Action type: pendle/is-pt-expired. Connection: not required.
Check whether a Principal Token has passed its maturity date
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Principal Token (PT) Address. |
Outputs
| Output | Description |
|---|---|
result | Is Expired |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get YT Balance
Action type: pendle/get-yt-balance. Connection: not required.
Check the Yield Token balance of an address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Yield Token (YT) Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | YT Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get SY Balance
Action type: pendle/get-sy-balance. Connection: not required.
Check the Standardized Yield token balance of an address
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Standardized Yield (SY) Address. | ||
account | address | Yes | Wallet Address (address). |
Outputs
| Output | Description |
|---|---|
result | SY Balance |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Pendle Finance: Get SY Exchange Rate
Action type: pendle/get-sy-exchange-rate. Connection: not required.
Get the current exchange rate between SY and its underlying asset
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
contractAddress | string | Yes | Standardized Yield (SY) Address. |
Outputs
| Output | Description |
|---|---|
result | Exchange Rate |
success | Whether the operation succeeded |
error | Error message if the operation failed |
Contracts
| Contract | Chain ids |
|---|---|
| PendleRouter | 1, 10, 8453, 42161 |
| vePENDLE | 1 |
| Pendle Market | any (the address is set on the node) |
| Principal Token (PT) | any (the address is set on the node) |
| Yield Token (YT) | any (the address is set on the node) |
| Standardized Yield (SY) | any (the address is set on the node) |
Events
Events a workflow can listen for with an Event trigger.
| Event | Slug | Event name | Parameters |
|---|---|---|---|
| Market Swap | market-swap | Swap | address indexed caller, address indexed receiver, int256 netPtOut, int256 netSyOut, uint256 netSyFee, uint256 netSyToReserve |
| Market LP Minted | market-mint | Mint | address indexed receiver, uint256 netLpMinted, uint256 netSyUsed, uint256 netPtUsed |
| Market LP Burned | market-burn | Burn | address indexed receiverSy, address indexed receiverPt, uint256 netLpBurned, uint256 netSyOut, uint256 netPtOut |
| Implied Rate Updated | update-implied-rate | UpdateImpliedRate | uint256 indexed timestamp, uint256 lnLastImpliedRate |
| PT/YT Minted | yt-mint | Mint | address indexed caller, address indexed receiverPT, address indexed receiverYT, uint256 amountSyToMint, uint256 amountPYOut |
| PT/YT Redeemed | yt-burn | Burn | address indexed caller, address indexed receiver, uint256 amountPYToRedeem, uint256 amountSyOut |
| Rewards Redeemed | redeem-rewards | RedeemRewards | address indexed user |
| Interest Redeemed | redeem-interest | RedeemInterest | address indexed user, uint256 interestOut |