Skip to Content

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.

ActionAction type
Pendle Finance: Mint PT and YT from SYpendle/mint-py-from-sy
Pendle Finance: Redeem PT and YT to SYpendle/redeem-py-to-sy
Pendle Finance: Get vePENDLE Balancependle/get-ve-pendle-balance
Pendle Finance: Get vePENDLE Total Supplypendle/get-ve-pendle-total-supply
Pendle Finance: Get vePENDLE Lock Positionpendle/get-ve-pendle-position
Pendle Finance: Get Market Expirypendle/get-market-expiry
Pendle Finance: Is Market Expiredpendle/is-market-expired
Pendle Finance: Get LP Balancependle/get-lp-balance
Pendle Finance: Get Active LP Balancependle/get-active-lp-balance
Pendle Finance: Get PT Balancependle/get-pt-balance
Pendle Finance: Is PT Expiredpendle/is-pt-expired
Pendle Finance: Get YT Balancependle/get-yt-balance
Pendle Finance: Get SY Balancependle/get-sy-balance
Pendle Finance: Get SY Exchange Ratependle/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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
sendModestringNotransaction, private-relaySend 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.
receiveraddressYesReceiver Address (address).
YTaddressYesYT Token Address (address).
netSyInuint256YesSY Amount (wei) (uint256).
minPyOutuint256YesMinimum PT/YT Out (wei) (uint256).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
sendModestringNotransaction, private-relaySend 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.
receiveraddressYesReceiver Address (address).
YTaddressYesYT Token Address (address).
netPyInuint256YesPT/YT Amount (wei) (uint256).
minSyOutuint256YesMinimum SY Out (wei) (uint256).
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor 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

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow 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.
includedTrue 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
useraddressYesWallet Address (address).

Outputs

OutputDescription
resultvePENDLE Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.

Outputs

OutputDescription
resultTotal vePENDLE Supply
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
useraddressYesWallet Address (address).

Outputs

OutputDescription
resultThe contract function return value
result.amountLocked PENDLE Amount
result.expiryLock Expiry Timestamp
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPendle Market Address.

Outputs

OutputDescription
resultExpiry Timestamp
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPendle Market Address.

Outputs

OutputDescription
resultIs Expired
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPendle Market Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultLP Token Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPendle Market Address.
useraddressYesWallet Address (address).

Outputs

OutputDescription
resultActive LP Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPrincipal Token (PT) Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultPT Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesPrincipal Token (PT) Address.

Outputs

OutputDescription
resultIs Expired
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesYield Token (YT) Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultYT Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesStandardized Yield (SY) Address.
accountaddressYesWallet Address (address).

Outputs

OutputDescription
resultSY Balance
successWhether the operation succeeded
errorError 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

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 8453, 42161Network.
contractAddressstringYesStandardized Yield (SY) Address.

Outputs

OutputDescription
resultExchange Rate
successWhether the operation succeeded
errorError message if the operation failed

Contracts

ContractChain ids
PendleRouter1, 10, 8453, 42161
vePENDLE1
Pendle Marketany (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.

EventSlugEvent nameParameters
Market Swapmarket-swapSwapaddress indexed caller, address indexed receiver, int256 netPtOut, int256 netSyOut, uint256 netSyFee, uint256 netSyToReserve
Market LP Mintedmarket-mintMintaddress indexed receiver, uint256 netLpMinted, uint256 netSyUsed, uint256 netPtUsed
Market LP Burnedmarket-burnBurnaddress indexed receiverSy, address indexed receiverPt, uint256 netLpBurned, uint256 netSyOut, uint256 netPtOut
Implied Rate Updatedupdate-implied-rateUpdateImpliedRateuint256 indexed timestamp, uint256 lnLastImpliedRate
PT/YT Mintedyt-mintMintaddress indexed caller, address indexed receiverPT, address indexed receiverYT, uint256 amountSyToMint, uint256 amountPYOut
PT/YT Redeemedyt-burnBurnaddress indexed caller, address indexed receiver, uint256 amountPYToRedeem, uint256 amountSyOut
Rewards Redeemedredeem-rewardsRedeemRewardsaddress indexed user
Interest Redeemedredeem-interestRedeemInterestaddress indexed user, uint256 interestOut