{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":false}},"agentGuidance":{"description":"General guidance for external AI agents using this MCP server. Read before selecting a project endpoint, requesting tool schemas, or calling protocol tools.","skillUrl":"https://erc8004.heyanon.ai/mcp/skill.md"},"serverInfo":{"name":"heyanon-erc8004-ethena","version":"1.0.0"},"tools":[{"name":"claimLockRewards","description":"Claim all currently claimable Ethena seasonal campaign rewards for the wallet specified by userAddress. Specify the season. Checks allocation proofs and remaining claimable amounts on-chain. Prepare unsigned transactions only on an explicit reward-claim request; this does not withdraw locked principal or claim an unstake. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"season":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Ethena rewards season number."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","season","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLockRewards","description":"Get the wallet specified by userAddresss Ethena campaign reward allocation and API-reported claim status for a season. Allocations cover seasonal activity, not only locking, and may exclude separate vested grants. Show release dates in UTC. Unavailable seasons are not zero rewards.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain name."},"season":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Ethena rewards season number."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","season","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"anyOf":[{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"wallet":{"type":"string"},"season":{"type":"number"},"source":{"type":"string"},"note":{"type":"string"},"status":{"type":"string","enum":["season_unavailable","no_allocation_found"]}},"required":["chain","chainId","wallet","season","source","note","status"],"additionalProperties":false},{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"wallet":{"type":"string"},"season":{"type":"number"},"source":{"type":"string"},"note":{"type":"string"},"status":{"type":"string","enum":["allocation_found","no_allocation_found"]},"token":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"distributionContract":{"type":"string"},"claimsPaused":{"type":"boolean"},"totalAllocation":{"anyOf":[{"type":"string"},{"type":"null"}]},"availableToClaim":{"anyOf":[{"type":"string"},{"type":"null"}]},"pendingRelease":{"anyOf":[{"type":"string"},{"type":"null"}]},"raw":{"type":"object","properties":{"totalAllocation":{"type":"string"},"availableToClaim":{"type":"string"},"pendingRelease":{"type":"string"}},"required":["totalAllocation","availableToClaim","pendingRelease"],"additionalProperties":false},"claimed":{"type":"boolean"},"transactionHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"transactions":{"type":"array","items":{"type":"object","properties":{"hash":{"type":"string"},"txLink":{"type":"string"}},"required":["hash","txLink"],"additionalProperties":false}},"allocations":{"type":"array","items":{"type":"object","properties":{"amount":{"anyOf":[{"type":"string"},{"type":"null"}]},"rawAmount":{"type":"string"},"releaseTime":{"type":"number"},"releaseDateUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"availableAt":{"type":"number"},"availableDateUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"unlocked":{"type":"boolean"}},"required":["amount","rawAmount","releaseTime","releaseDateUtc","availableAt","availableDateUtc","unlocked"],"additionalProperties":false}},"statusSource":{"type":"string","const":"campaign_api"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["chain","chainId","wallet","season","source","note","status","token","distributionContract","claimsPaused","totalAllocation","availableToClaim","pendingRelease","raw","claimed","transactionHash","transactions","allocations","statusSource","warnings"],"additionalProperties":false}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getDescription","description":"Explain how to use Ethena: stake USDe for sUSDe or ENA for sENA, unstake through cooldowns, lock campaign tokens, and check positions and yields. Use for how-to questions and protocol interaction guidance.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"description":{"type":"string"}},"required":["description"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSupportedChains","description":"List the chains where Ethena staking and locking are supported, with USDe, sUSDe, ENA and sENA token addresses, decimals and roles.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"protocol":{"type":"string"},"chains":{"type":"array","items":{"type":"object","properties":{"chainName":{"type":"string"},"chainId":{"type":"number"},"tokens":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"},"description":{"type":"string"},"underlying":{"anyOf":[{"type":"string"},{"type":"null"}]},"stakedAs":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["symbol","address","decimals","description","underlying","stakedAs"],"additionalProperties":false}},"contracts":{"type":"object","properties":{"lockContract":{"type":"string"},"sUSDeSilo":{"type":"string"},"sENASilo":{"type":"string"}},"required":["lockContract","sUSDeSilo","sENASilo"],"additionalProperties":false}},"required":["chainName","chainId","tokens","contracts"],"additionalProperties":false}},"note":{"type":"string"}},"required":["protocol","chains","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getVaultInfo","description":"Read the selected staking vault: exchange rate, total staked, supply, unvested rewards, vesting period and last distribution. USDe selects sUSDe; ENA selects sENA. Use the exchange rate for underlying token value. Show dates from the UTC fields with their timezone.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."},"token":{"type":"string","enum":["USDe","ENA"],"description":"Underlying token of the staking vault."}},"required":["chainName","token"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"blockTimeUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"vault":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"asset":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"exchangeRate":{"type":"string"},"exchangeRateDescription":{"type":"string"},"totalStaked":{"type":"string"},"totalSupply":{"type":"string"},"unvestedRewards":{"type":"string"},"lastDistribution":{"type":"object","properties":{"amount":{"type":"string"},"timestamp":{"type":"string"},"dateUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"vestingEndsUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"fullyVested":{"type":"boolean"}},"required":["amount","timestamp","dateUtc","vestingEndsUtc","fullyVested"],"additionalProperties":false},"vestingPeriodSeconds":{"type":"string"}},"required":["chain","chainId","blockNumber","blockTimeUtc","vault","asset","exchangeRate","exchangeRateDescription","totalStaked","totalSupply","unvestedRewards","lastDistribution","vestingPeriodSeconds"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSUSDeApy","description":"Get Ethena's published sUSDe APY: current trailing-week APY plus 30-day, 90-day and since-inception averages, and protocol yield. Values are percent; show the lastUpdatedUtc date. Past yield does not predict future rewards.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"source":{"type":"string"},"sUSDe":{"type":"object","properties":{"current":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]},"avg30d":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]},"avg90d":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]},"sinceInception":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]}},"required":["current","avg30d","avg90d","sinceInception"],"additionalProperties":false},"protocol":{"type":"object","properties":{"current":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]},"avg30d":{"anyOf":[{"type":"object","properties":{"apyPercent":{"type":"number"},"lastUpdated":{"type":"string"},"lastUpdatedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["apyPercent","lastUpdated","lastUpdatedUtc"],"additionalProperties":false},{"type":"null"}]}},"required":["current","avg30d"],"additionalProperties":false},"methodology":{"type":"string"},"disclaimer":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["source","sUSDe","protocol","methodology","disclaimer","warnings"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getCooldownSettings","description":"Read the current unstake cooldown of the sUSDe and sENA vaults live, with the contract maximum and whether unstaking takes one or two steps. Check it before requesting an unstake.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."}},"required":["chainName"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"vaults":{"type":"array","items":{"type":"object","properties":{"vault":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"asset":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"cooldownEnabled":{"type":"boolean"},"cooldownSeconds":{"type":"string"},"cooldown":{"type":"string"},"maxCooldownSeconds":{"type":"string"},"maxCooldown":{"type":"string"},"unstakeFlow":{"type":"string"}},"required":["vault","asset","cooldownEnabled","cooldownSeconds","cooldown","maxCooldownSeconds","maxCooldown","unstakeFlow"],"additionalProperties":false}}},"required":["chain","chainId","blockNumber","vaults"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getStakedValue","description":"Read the wallet specified by userAddress's sUSDe and sENA and what they unstake for in USDe and ENA at the live vault rate. Requires userAddress. Excludes pending unstakes and locked tokens.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"wallet":{"type":"string"},"positions":{"type":"array","items":{"type":"object","properties":{"vault":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"asset":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"shares":{"type":"string"},"value":{"type":"string"},"exchangeRate":{"type":"string"},"hasPosition":{"type":"boolean"}},"required":["vault","asset","shares","value","exchangeRate","hasPosition"],"additionalProperties":false}},"note":{"type":"string"}},"required":["chain","chainId","blockNumber","wallet","positions","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getPendingUnstakes","description":"Read the wallet specified by userAddress's pending sUSDe and sENA unstakes: USDe or ENA waiting in cooldown, when it can be claimed and whether it is claimable now. Show claimableAtUtc with its timezone. Requires userAddress.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"wallet":{"type":"string"},"blockTimeUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"pending":{"type":"array","items":{"type":"object","properties":{"vault":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"asset":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"hasPending":{"type":"boolean"},"amount":{"type":"string"},"cooldownEnd":{"type":"string"},"claimableAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"claimableNow":{"type":"boolean"},"timeRemaining":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["vault","asset","hasPending","amount","cooldownEnd","claimableAtUtc","claimableNow","timeRemaining"],"additionalProperties":false}},"note":{"type":"string"}},"required":["chain","chainId","blockNumber","wallet","blockTimeUtc","pending","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLockInfo","description":"List only Ethena campaign tokens available to lock now, with capacity and unlock cooldowns. Use returned token addresses for locking actions; check canLockNow before a new lock.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."}},"required":["chainName"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"lockContract":{"type":"string"},"currentEpoch":{"type":"number"},"locks":{"type":"array","items":{"type":"object","properties":{"configured":{"type":"boolean"},"epoch":{"type":"number"},"epochOpen":{"type":"boolean"},"lockLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"remainingCapacity":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalLocked":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCoolingDown":{"anyOf":[{"type":"string"},{"type":"null"}]},"unlockCooldownSeconds":{"type":"string"},"unlockCooldown":{"type":"string"},"lockableHere":{"type":"boolean"},"canLockNow":{"type":"boolean"},"token":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false}},"required":["configured","epoch","epochOpen","lockLimit","remainingCapacity","totalLocked","totalCoolingDown","unlockCooldownSeconds","unlockCooldown","lockableHere","canLockNow","token"],"additionalProperties":false}},"otherCampaignTokens":{"type":"array","items":{"type":"object","properties":{"configured":{"type":"boolean"},"epoch":{"type":"number"},"epochOpen":{"type":"boolean"},"lockLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"remainingCapacity":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalLocked":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCoolingDown":{"anyOf":[{"type":"string"},{"type":"null"}]},"unlockCooldownSeconds":{"type":"string"},"unlockCooldown":{"type":"string"},"lockableHere":{"type":"boolean"},"canLockNow":{"type":"boolean"},"token":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"},"decimals":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["name","symbol","address","decimals"],"additionalProperties":false},"raw":{"type":"object","properties":{"lockLimit":{"type":"string"},"totalLocked":{"type":"string"},"totalCoolingDown":{"type":"string"}},"required":["lockLimit","totalLocked","totalCoolingDown"],"additionalProperties":false},"metadataAvailable":{"type":"boolean"},"openForLocks":{"type":"boolean"}},"required":["configured","epoch","epochOpen","lockLimit","remainingCapacity","totalLocked","totalCoolingDown","unlockCooldownSeconds","unlockCooldown","lockableHere","canLockNow","token","raw","metadataAvailable","openForLocks"],"additionalProperties":false}},"note":{"type":"string"}},"required":["chain","chainId","blockNumber","lockContract","currentEpoch","locks","otherCampaignTokens","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLockedPositions","description":"Read the wallet specified by userAddress's discovered campaign positions, including earlier campaigns: amount locked, amount cooling down after an unlock request, when it can be withdrawn (show withdrawableAtUtc with its timezone), whether it can be withdrawn now and whether a new unlock would restart its cooldown. Requires userAddress.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Chain to read from."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"blockNumber":{"type":"string"},"wallet":{"type":"string"},"blockTimeUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"lockContract":{"type":"string"},"positions":{"type":"array","items":{"type":"object","properties":{"token":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"metadataAvailable":{"type":"boolean","const":false},"raw":{"type":"object","properties":{"locked":{"type":"string"},"coolingDown":{"type":"string"}},"required":["locked","coolingDown"],"additionalProperties":false},"locked":{"anyOf":[{"type":"string"},{"type":"null"}]},"coolingDown":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasPosition":{"type":"boolean"},"unlockRequestedUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"withdrawableAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"withdrawableNow":{"type":"boolean"},"timeRemaining":{"anyOf":[{"type":"string"},{"type":"null"}]},"unlockCooldown":{"type":"string"},"newUnlockRestartsCooldown":{"type":"boolean"}},"required":["token","locked","coolingDown","hasPosition","unlockRequestedUtc","withdrawableAtUtc","withdrawableNow","timeRemaining","unlockCooldown","newUnlockRestartsCooldown"],"additionalProperties":false}},"note":{"type":"string"}},"required":["chain","chainId","blockNumber","wallet","blockTimeUtc","lockContract","positions","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"stake","description":"Stake USDe for sUSDe or ENA for sENA from the wallet specified by userAddress. Prepare unsigned transactions only on an explicit staking request, not a how-to question. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","enum":["ENA","USDe"],"description":"Token to stake."},"amount":{"type":"string","description":"Amount in human-readable decimal format (e.g. '1.5'). Selected token amount in decimal units, for example \"100.5\". Token units, never a USD value: for \"$X worth\", convert with the price tool first. A number written as a fraction or in words (\"½\", \"five hundred\") is that literal amount; only a share of the balance (\"half my\", \"25% of my\") needs the balance read first. Ask if unclear. Pass exactly \"-1\" to stake the whole wallet balance of the selected token."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"requestUnstake","description":"Request an unstake of sUSDe into USDe or sENA into ENA. Returns assets immediately if cooldown is off; otherwise request now and claim after cooldown. Claims an earlier claimable unstake first. Locked sENA must first be unlocked with requestUnlock and withdrawn with withdrawUnlockedTokens. Prepare unsigned transactions only on an explicit unstake request. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","enum":["ENA","USDe"],"description":"Underlying token to unstake into."},"amount":{"type":"string","description":"Amount in human-readable decimal format (e.g. '1.5'). Staked-token shares or underlying-token amount in decimal units, as unit says. Token units, never a USD value: for \"$X worth\", convert with the price tool first. A number written as a fraction or in words (\"½\", \"five hundred\") is that literal amount; only a share of the balance (\"half my\", \"25% of my\") needs the balance read first. Ask if unclear. Pass exactly \"-1\" to unstake the whole wallet sENA or sUSDe balance for the selected token; do not look up the balance and copy it."},"unit":{"description":"For token USDe: Unit of amount: \"shares\" when the number counts sUSDe (\"unstake 100 sUSDe\"); \"assets\" when it is a USDe amount (\"unstake 1000 USDe\", \"withdraw 1000 USDe from my sUSDe\"), which unstakes exactly that much USDe. With amount \"-1\" every sUSDe is unstaked in either unit. For token ENA: Unit of amount: \"shares\" when the number counts sENA (\"unstake 100 sENA\"); \"assets\" when it is a ENA amount (\"unstake 1000 ENA\", \"withdraw 1000 ENA from my sENA\"), which unstakes exactly that much ENA. With amount \"-1\" every sENA is unstaked in either unit.","type":"string","enum":["shares","assets"]},"confirmRestartPendingCooldown":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Pass null when no cooldown restart has been confirmed. Set true only after the user confirms that a new request restarts the cooldown of an earlier unstake that is still cooling down. The function refuses without it in that case; an earlier unstake that is already claimable is claimed first and needs no confirmation."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","amount","confirmRestartPendingCooldown","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"claimUnstaked","description":"Claim the wallet specified by userAddress's unstaked ENA or USDe after its respective vault cooldown has ended (step 2 of 2), also as part of withdrawing or exiting everything from Ethena. Claims the whole pending amount; there is no amount to choose. Refused, with the claim time, while still cooling down. Prepare unsigned transactions only on an explicit claim or withdraw request. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","enum":["ENA","USDe"],"description":"Underlying token to claim."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"lockTokens","description":"Lock an eligible campaign token from the wallet specified by userAddress in Ethena's lock contract for reward campaigns. Approves the token if needed. Refused when the token's epoch is closed or the lock is full; check getLockInfo first. Prepare unsigned transactions only on an explicit lock request. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","description":"Campaign token address from getLockInfo. Core symbols USDe, sUSDe, ENA and sENA are also accepted."},"amount":{"type":"string","description":"Amount in human-readable decimal format (e.g. '1.5'). Token amount in decimal units. Token units, never a USD value: for \"$X worth\", convert with the price tool first. A number written as a fraction or in words (\"½\", \"five hundred\") is that literal amount; only a share of the balance (\"half my\", \"25% of my\") needs the balance read first. Ask if unclear. Pass exactly \"-1\" to lock the whole wallet balance of that token; do not look up the balance and copy it."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"requestUnlock","description":"Request an unlock of the wallet specified by userAddress's locked tokens in Ethena's lock contract (step 1 of 2), including tokens from earlier campaigns. The tokens start the token's unlock cooldown and can be withdrawn after it. Tokens from an earlier unlock that are already withdrawable are withdrawn to the wallet first in the same batch. Prepare unsigned transactions only on an explicit unlock request. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","description":"Campaign token address from getLockedPositions or getLockInfo. Core token symbols are also accepted; closed campaigns can still be exited."},"amount":{"type":"string","description":"Amount in human-readable decimal format (e.g. '1.5'). Locked amount in decimal units. Token units, never a USD value: for \"$X worth\", convert with the price tool first. A number written as a fraction or in words (\"½\", \"five hundred\") is that literal amount; only a share of the balance (\"half my\", \"25% of my\") needs the balance read first. Ask if unclear. Pass exactly \"-1\" to unlock everything locked for that token; do not look it up and copy it."},"confirmRestartPendingCooldown":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Pass null when no cooldown restart has been confirmed. Set true only after the user confirms that a new unlock restarts the cooldown of tokens still cooling down, which happens only where getLockedPositions shows newUnlockRestartsCooldown true for the token (a non-zero unlock cooldown, such as sENA). The function refuses without it in that case. A token with a zero unlock cooldown, such as USDe, never needs it, and tokens already withdrawable are withdrawn first."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","amount","confirmRestartPendingCooldown","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"withdrawUnlockedTokens","description":"Withdraw the wallet specified by userAddress's unlocked tokens (including tokens from earlier campaigns) from Ethena's lock contract after the unlock cooldown (step 2 of 2), also as part of withdrawing or exiting everything from Ethena. Refused, with the withdrawal time, while still cooling down. Prepare unsigned transactions only on an explicit withdraw request. Returns unsigned transactions in execution order; does not submit or wait for cooldowns.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum"],"description":"Blockchain on which to execute the action."},"token":{"type":"string","description":"Campaign token address from getLockedPositions or getLockInfo. Core token symbols are also accepted; closed campaigns can still be exited."},"amount":{"type":"string","description":"Amount in human-readable decimal format (e.g. '1.5'). Amount of unlocked tokens in decimal units. Token units, never a USD value: for \"$X worth\", convert with the price tool first. A number written as a fraction or in words (\"½\", \"five hundred\") is that literal amount; only a share of the balance (\"half my\", \"25% of my\") needs the balance read first. Ask if unclear. Pass exactly \"-1\" to withdraw everything that finished cooling down; do not look it up and copy it."},"userAddress":{"type":"string","description":"User wallet address"}},"required":["chainName","token","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}}]}