Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.
The v1 payload generation endpoints prepare transaction details and calldata for interactions with smart contracts across leading DeFi protocols, including Aave, Morpho, Euler, Compound, Maker/Sky, and Lido. The API is entirely non-custodial — it constructs payloads for you to submit, without ever holding or controlling user funds.
These are legacy v1 endpoints. They are fully supported and maintained. For new integrations, consider using the v2 endpoints.
Get supported vaults
GET https://api.vaults.fyi/v1/transactions/vaults
Returns the list of vaults that support transactional endpoints on a given network. Each entry includes the vault name, protocol, contract address, LP token address, and supported assets.Authentication:x-api-key header required.
Query parameters
string
required
Network name or CAIP identifier. Possible values: mainnet, arbitrum, optimism, polygon, base, gnosis, unichain.
Example request
GET /v1/transactions/vaults?network=mainnet HTTP/1.1Host: api.vaults.fyix-api-key: YOUR_API_KEYAccept: */*
GET https://api.vaults.fyi/v1/transactions/vaults/actions/details
Returns the available smart contract interactions for a specific vault and user, including the current deposit and redeem steps, LP token balance, idle assets, locked value, unclaimed assets, and any claimable rewards. Use this endpoint to determine which actions are available before preparing calldata.Authentication:x-api-key header required.
Query parameters
string
required
Network name or CAIP identifier.
string
required
User wallet address. Pattern: ^0x[a-fA-F0-9]{40}$.
GET https://api.vaults.fyi/v1/transactions/vaults/deposit
Returns the transaction payload and calldata needed to deposit assets into a vault. You can optionally request a simulation of the transaction before submitting it.Authentication:x-api-key header required.
Token contract address to receive. Pattern: ^0x[a-fA-F0-9]{40}$.
string
required
Vault address to redeem from. Pattern: ^0x[a-fA-F0-9]{40}$.
string
required
Amount to redeem, in the token’s smallest unit.
string
Set to true to redeem the full position.
string
default:"false"
Set to true to include a transaction simulation in the response.
Example request
GET /v1/transactions/vaults/redeem?network=mainnet&sender=0xabc...123&assetAddress=0xa0b...789&vaultAddress=0xdef...456&amount=1000000000 HTTP/1.1Host: api.vaults.fyix-api-key: YOUR_API_KEYAccept: */*
Prepare request-redeem calldata
GET https://api.vaults.fyi/v1/transactions/vaults/request-redeem
Initiates a redemption request for vaults that have a waiting period before assets can be claimed (e.g. Lido stETH). Submit this transaction first, then use the claim-redeem endpoint once the redemption is ready.Authentication:x-api-key header required.
Query parameters
string
required
Network name or CAIP identifier.
string
required
Wallet address submitting the request. Pattern: ^0x[a-fA-F0-9]{40}$.
Set to true to include a transaction simulation in the response.
Example request
GET /v1/transactions/vaults/request-redeem?network=mainnet&sender=0xabc...123&assetAddress=0xa0b...789&vaultAddress=0xdef...456&amount=1000000000000000000 HTTP/1.1Host: api.vaults.fyix-api-key: YOUR_API_KEYAccept: */*
Prepare claim-redeem calldata
GET https://api.vaults.fyi/v1/transactions/vaults/claim-redeem
Claims assets after a redemption request has been fulfilled. Use this after calling request-redeem and waiting for the vault’s redemption period to complete.Authentication:x-api-key header required.
Query parameters
string
required
Network name or CAIP identifier.
string
required
Wallet address claiming the assets. Pattern: ^0x[a-fA-F0-9]{40}$.
Set to true to include a transaction simulation in the response.
Example request
GET /v1/transactions/vaults/claim-redeem?network=mainnet&sender=0xabc...123&assetAddress=0xa0b...789&vaultAddress=0xdef...456 HTTP/1.1Host: api.vaults.fyix-api-key: YOUR_API_KEYAccept: */*
Prepare claim-rewards calldata
GET https://api.vaults.fyi/v1/transactions/vaults/claim-rewards
Returns the transaction payload and calldata needed to claim accrued rewards for a user’s position in a specific vault.Authentication:x-api-key header required.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vaults.fyi","colors":{"primary":"#18abff","light":"#96caff","dark":"#187ee8"},"logo":{"light":"https://mintcdn.com/vaultsfyi/e2nu_rHbR1M8lgfT/images/Logo-384px-black.png?fit=max\u0026auto=format\u0026n=e2nu_rHbR1M8lgfT\u0026q=85\u0026s=ad6b6e6796d582b64af53e9100b8b169","dark":"https://mintcdn.com/vaultsfyi/e2nu_rHbR1M8lgfT/images/Logo-384px-white.png?fit=max\u0026auto=format\u0026n=e2nu_rHbR1M8lgfT\u0026q=85\u0026s=83209def8b210124b3bf53b5ccc42449","href":"https://vaults.fyi/"},"favicon":"https://mintcdn.com/vaultsfyi/LV19mJjFpALwuFJ6/images/icon_blue.png?fit=max\u0026auto=format\u0026n=LV19mJjFpALwuFJ6\u0026q=85\u0026s=86baed3673733df8b24c661f1aca87f3","appearance":{"default":"system"},"background":{"color":{"light":"#FFFFFF"}},"navbar":{"primary":{"type":"button","label":"Get API Access","href":"https://portal.vaults.fyi/signup"}},"footer":{"socials":{"x":"https://x.com/vaultsfyi"}},"fonts":{"family":"Geist"},"integrations":{"ga4":{"measurementId":"G-6YJ3LN6CD5"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vaultsfyi","hasAudioNarration":false,"actualSubdomain":"vaultsfyi","customDomains":["docs.vaults.fyi"],"gitSource":{"type":"github","owner":"wallfacerlabs","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b05dcc2b2ab06be037f1b10","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":89},{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Endpoints","count":32},{"language":"default","tag":"Beta","count":22},{"language":"default","tag":"Alpha","count":12},{"language":"default","tag":"Resources","count":11},{"language":"default","tag":"Borrow Markets","count":11},{"language":"default","tag":"SVM","count":10},{"language":"default","tag":"Sections","count":8},{"language":"default","tag":"Case Studies","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api/legacy/generate-payloads","slug":"/api/legacy/generate-payloads","pageMetadata":{"title":"v1 Generate Payloads: DeFi Transaction Calldata","description":"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.","sidebarTitle":"Generate Payloads","href":"/api/legacy/generate-payloads","hidden":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The v1 payload generation endpoints prepare transaction details and calldata for interactions with smart contracts across leading DeFi protocols, including Aave, Morpho, Euler, Compound, Maker/Sky, and Lido. The API is entirely non-custodial — it constructs payloads for you to submit, without ever holding or controlling user funds.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`These are legacy v1 endpoints. They are fully supported and maintained. For new integrations, consider using the `,_jsx(_components.a,{href:`/api-reference/general`,children:`v2 endpoints`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-supported-vaults`,children:`Get supported vaults`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns the list of vaults that support transactional endpoints on a given network. Each entry includes the vault name, protocol, contract address, LP token address, and supported assets.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network`,children:_jsxs(_components.p,{children:[`Network name or CAIP identifier. Possible values: `,_jsx(_components.code,{children:`mainnet`}),`, `,_jsx(_components.code,{children:`arbitrum`}),`, `,_jsx(_components.code,{children:`optimism`}),`, `,_jsx(_components.code,{children:`polygon`}),`, `,_jsx(_components.code,{children:`base`}),`, `,_jsx(_components.code,{children:`gnosis`}),`, `,_jsx(_components.code,{children:`unichain`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults?network=mainnet `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDC Lending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"protocol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Aave\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xdef...456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lpTokenAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xghi...789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mainnet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"assets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xa0b...789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD Coin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"decimals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mainnet\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-supported-assets`,children:`Get supported assets`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/assets`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns all assets that can be used with transactional endpoints on a given network.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-2`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-1`,children:_jsxs(_components.p,{children:[`Network name or CAIP identifier. Possible values: `,_jsx(_components.code,{children:`mainnet`}),`, `,_jsx(_components.code,{children:`arbitrum`}),`, `,_jsx(_components.code,{children:`optimism`}),`, `,_jsx(_components.code,{children:`polygon`}),`, `,_jsx(_components.code,{children:`base`}),`, `,_jsx(_components.code,{children:`gnosis`}),`, `,_jsx(_components.code,{children:`unichain`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-2`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/assets?network=mainnet `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-2`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xa0b...789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD Coin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"decimals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mainnet\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-contract-interaction-details`,children:`Get contract interaction details`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/actions/details`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns the available smart contract interactions for a specific vault and user, including the current deposit and redeem steps, LP token balance, idle assets, locked value, unclaimed assets, and any claimable rewards. Use this endpoint to determine which actions are available before preparing calldata.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-3`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-2`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`userAddress`,type:`string`,required:true,id:`param-user-address`,children:_jsxs(_components.p,{children:[`User wallet address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address`,children:_jsxs(_components.p,{children:[`Vault contract address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-3`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/actions/details?network=mainnet\u0026userAddress=0xabc...123\u0026vaultAddress=0xdef...456 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-3`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`44`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`44`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentDepositStep\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deposit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"depositSteps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approve\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deposit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actionsUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deposit\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentRedeemStep\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redeem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redeemSteps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redeem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actionsUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redeem\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lpTokenBalance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1045.123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"idleAssets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"500.000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lockedValueInAssets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1050.000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unclaimedAssets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.500000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"claimable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xjkl...012\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Aave Token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"decimals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mainnet\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentStep\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"claim\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"steps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"claim\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actionsUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"claim\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-supply-/-deposit-calldata`,children:`Prepare supply / deposit calldata`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/deposit`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns the transaction payload and calldata needed to deposit assets into a vault. You can optionally request a simulation of the transaction before submitting it.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-4`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-3`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`sender`,type:`string`,required:true,id:`param-sender`,children:_jsxs(_components.p,{children:[`Depositing wallet address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`assetAddress`,type:`string`,required:true,id:`param-asset-address`,children:_jsxs(_components.p,{children:[`Token contract address to deposit. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address-1`,children:_jsxs(_components.p,{children:[`Target vault address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`amount`,type:`string`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`Amount to deposit, in the token’s smallest unit (e.g. wei for 18-decimal tokens).`})}),`\n`,_jsx(ParamField,{query:`simulate`,type:`string`,default:`false`,id:`param-simulate`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to include a transaction simulation in the response.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-4`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/deposit?network=mainnet\u0026sender=0xabc...123\u0026assetAddress=0xa0b...789\u0026vaultAddress=0xdef...456\u0026amount=1000000000 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-4`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentActionIndex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deposit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xdef...456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"simulation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sim/abc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokensReceived\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"aUSDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokensSpent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-withdraw-/-redeem-calldata`,children:`Prepare withdraw / redeem calldata`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/redeem`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns the transaction payload and calldata needed to withdraw assets from a vault.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For vaults with redemption queues or waiting periods (e.g. Lido stETH), use the `,_jsx(_components.a,{href:`#prepare-request-redeem-calldata`,children:`Request Redeem`}),` and `,_jsx(_components.a,{href:`#prepare-claim-redeem-calldata`,children:`Claim Redeem`}),` endpoints below instead.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-5`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-4`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`sender`,type:`string`,required:true,id:`param-sender-1`,children:_jsxs(_components.p,{children:[`Withdrawing wallet address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`assetAddress`,type:`string`,required:true,id:`param-asset-address-1`,children:_jsxs(_components.p,{children:[`Token contract address to receive. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address-2`,children:_jsxs(_components.p,{children:[`Vault address to redeem from. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`amount`,type:`string`,required:true,id:`param-amount-1`,children:_jsx(_components.p,{children:`Amount to redeem, in the token’s smallest unit.`})}),`\n`,_jsx(ParamField,{query:`all`,type:`string`,id:`param-all`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to redeem the full position.`]})}),`\n`,_jsx(ParamField,{query:`simulate`,type:`string`,default:`false`,id:`param-simulate-1`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to include a transaction simulation in the response.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-5`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/redeem?network=mainnet\u0026sender=0xabc...123\u0026assetAddress=0xa0b...789\u0026vaultAddress=0xdef...456\u0026amount=1000000000 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-request-redeem-calldata`,children:`Prepare request-redeem calldata`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/request-redeem`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Initiates a redemption request for vaults that have a waiting period before assets can be claimed (e.g. Lido stETH). Submit this transaction first, then use the `,_jsx(_components.a,{href:`#prepare-claim-redeem-calldata`,children:`claim-redeem`}),` endpoint once the redemption is ready.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-6`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-5`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`sender`,type:`string`,required:true,id:`param-sender-2`,children:_jsxs(_components.p,{children:[`Wallet address submitting the request. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`assetAddress`,type:`string`,required:true,id:`param-asset-address-2`,children:_jsxs(_components.p,{children:[`Token contract address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address-3`,children:_jsxs(_components.p,{children:[`Vault address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`amount`,type:`string`,required:true,id:`param-amount-2`,children:_jsx(_components.p,{children:`Amount to request, in the token’s smallest unit.`})}),`\n`,_jsx(ParamField,{query:`simulate`,type:`string`,default:`false`,id:`param-simulate-2`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to include a transaction simulation in the response.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-6`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/request-redeem?network=mainnet\u0026sender=0xabc...123\u0026assetAddress=0xa0b...789\u0026vaultAddress=0xdef...456\u0026amount=1000000000000000000 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-claim-redeem-calldata`,children:`Prepare claim-redeem calldata`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/claim-redeem`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Claims assets after a redemption request has been fulfilled. Use this after calling `,_jsx(_components.a,{href:`#prepare-request-redeem-calldata`,children:`request-redeem`}),` and waiting for the vault’s redemption period to complete.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-7`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-6`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`sender`,type:`string`,required:true,id:`param-sender-3`,children:_jsxs(_components.p,{children:[`Wallet address claiming the assets. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`assetAddress`,type:`string`,required:true,id:`param-asset-address-3`,children:_jsxs(_components.p,{children:[`Token contract address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address-4`,children:_jsxs(_components.p,{children:[`Vault address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`simulate`,type:`string`,default:`false`,id:`param-simulate-3`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to include a transaction simulation in the response.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-7`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/claim-redeem?network=mainnet\u0026sender=0xabc...123\u0026assetAddress=0xa0b...789\u0026vaultAddress=0xdef...456 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-claim-rewards-calldata`,children:`Prepare claim-rewards calldata`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/transactions/vaults/claim-rewards`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns the transaction payload and calldata needed to claim accrued rewards for a user’s position in a specific vault.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` `,_jsx(_components.code,{children:`x-api-key`}),` header required.`]}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-8`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`network`,type:`string`,required:true,id:`param-network-7`,children:_jsx(_components.p,{children:`Network name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{query:`sender`,type:`string`,required:true,id:`param-sender-4`,children:_jsxs(_components.p,{children:[`Wallet address claiming rewards. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`assetAddress`,type:`string`,required:true,id:`param-asset-address-4`,children:_jsxs(_components.p,{children:[`Token contract address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`vaultAddress`,type:`string`,required:true,id:`param-vault-address-5`,children:_jsxs(_components.p,{children:[`Vault address. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(ParamField,{query:`simulate`,type:`string`,default:`false`,id:`param-simulate-4`,children:_jsxs(_components.p,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to include a transaction simulation in the response.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-8`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/transactions/vaults/claim-rewards?network=mainnet\u0026sender=0xabc...123\u0026assetAddress=0xa0b...789\u0026vaultAddress=0xdef...456 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api.vaults.fyi`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` */*`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-all-calldata-endpoints`,children:`Example response (all calldata endpoints)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currentActionIndex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"claim-rewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xdef...456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"simulation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sim/xyz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokensReceived\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"AAVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokensSpent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"v1 Generate Payloads: DeFi Transaction Calldata","description":"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.","sidebarTitle":"Generate Payloads","href":"/api/legacy/generate-payloads","hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get supported vaults","slug":"get-supported-vaults","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters","depth":3,"children":[]},{"title":"Example request","slug":"example-request","depth":3,"children":[]},{"title":"Example response","slug":"example-response","depth":3,"children":[]}]},{"title":"Get supported assets","slug":"get-supported-assets","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-2","depth":3,"children":[]},{"title":"Example request","slug":"example-request-2","depth":3,"children":[]},{"title":"Example response","slug":"example-response-2","depth":3,"children":[]}]},{"title":"Get contract interaction details","slug":"get-contract-interaction-details","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-3","depth":3,"children":[]},{"title":"Example request","slug":"example-request-3","depth":3,"children":[]},{"title":"Example response","slug":"example-response-3","depth":3,"children":[]}]},{"title":"Prepare supply / deposit calldata","slug":"prepare-supply-/-deposit-calldata","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-4","depth":3,"children":[]},{"title":"Example request","slug":"example-request-4","depth":3,"children":[]},{"title":"Example response","slug":"example-response-4","depth":3,"children":[]}]},{"title":"Prepare withdraw / redeem calldata","slug":"prepare-withdraw-/-redeem-calldata","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-5","depth":3,"children":[]},{"title":"Example request","slug":"example-request-5","depth":3,"children":[]}]},{"title":"Prepare request-redeem calldata","slug":"prepare-request-redeem-calldata","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-6","depth":3,"children":[]},{"title":"Example request","slug":"example-request-6","depth":3,"children":[]}]},{"title":"Prepare claim-redeem calldata","slug":"prepare-claim-redeem-calldata","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-7","depth":3,"children":[]},{"title":"Example request","slug":"example-request-7","depth":3,"children":[]}]},{"title":"Prepare claim-rewards calldata","slug":"prepare-claim-rewards-calldata","depth":2,"children":[{"title":"Query parameters","slug":"query-parameters-8","depth":3,"children":[]},{"title":"Example request","slug":"example-request-8","depth":3,"children":[]},{"title":"Example response (all calldata endpoints)","slug":"example-response-all-calldata-endpoints","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"vaultsfyi","siteName":"Vaults.fyi","title":"v1 Generate Payloads: DeFi Transaction Calldata - Vaults.fyi","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-20T22:49:29.802Z","originalFileLocation":"api/legacy/generate-payloads.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vaults.fyi\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"v1 Generate Payloads: DeFi Transaction Calldata - Vaults.fyi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vaults.fyi\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vaults.fyi/api/legacy/generate-payloads\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vaultsfyi.mintlify.site/_mintlify/api/og/v2?division=Legacy+v1\u0026amp;title=v1+Generate+Payloads%3A+DeFi+Transaction+Calldata\u0026amp;description=Prepare+calldata+for+deposit%2C+withdraw%2C+redeem%2C+and+claim-rewards+transactions+across+DeFi+protocols+using+the+Vaults.fyi+v1+payload+generation+API.\u0026amp;theme=f98404897f33c2278a9b1ab7\u0026amp;signature=586eb9755820511263b621e1723fa1c07fe54ca9eb3639acc7f53d568e6f83ff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"v1 Generate Payloads: DeFi Transaction Calldata - Vaults.fyi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaultsfyi.mintlify.site/_mintlify/api/og/v2?division=Legacy+v1\u0026amp;title=v1+Generate+Payloads%3A+DeFi+Transaction+Calldata\u0026amp;description=Prepare+calldata+for+deposit%2C+withdraw%2C+redeem%2C+and+claim-rewards+transactions+across+DeFi+protocols+using+the+Vaults.fyi+v1+payload+generation+API.\u0026amp;theme=f98404897f33c2278a9b1ab7\u0026amp;signature=586eb9755820511263b621e1723fa1c07fe54ca9eb3639acc7f53d568e6f83ff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vaultsfyi/7hM2popFdZ7XFny9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vaults.fyi\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18abff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vaults.fyi/api/legacy/generate-payloads\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/legacy/generate-payloads.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vaults.fyi/#organization\",\"name\":\"Vaults.fyi\",\"url\":\"https://docs.vaults.fyi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vaultsfyi/e2nu_rHbR1M8lgfT/images/Logo-384px-black.png?fit=max\u0026auto=format\u0026n=e2nu_rHbR1M8lgfT\u0026q=85\u0026s=ad6b6e6796d582b64af53e9100b8b169\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vaults.fyi#website\",\"name\":\"Vaults.fyi\",\"url\":\"https://docs.vaults.fyi\",\"publisher\":{\"@id\":\"https://docs.vaults.fyi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vaults.fyi/api/legacy/generate-payloads#webpage\",\"url\":\"https://docs.vaults.fyi/api/legacy/generate-payloads\",\"name\":\"v1 Generate Payloads: DeFi Transaction Calldata\",\"description\":\"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\",\"dateModified\":\"2026-04-20T22:49:29.802Z\",\"isPartOf\":{\"@id\":\"https://docs.vaults.fyi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vaults.fyi/api/legacy/generate-payloads#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vaults.fyi/api/legacy/generate-payloads#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Legacy v1\",\"item\":\"https://docs.vaults.fyi/api/legacy/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"v1 Generate Payloads: DeFi Transaction Calldata\",\"item\":\"https://docs.vaults.fyi/api/legacy/generate-payloads\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.vaults.fyi/api/legacy/generate-payloads#article\",\"headline\":\"v1 Generate Payloads: DeFi Transaction Calldata\",\"name\":\"v1 Generate Payloads: DeFi Transaction Calldata\",\"description\":\"Prepare calldata for deposit, withdraw, redeem, and claim-rewards transactions across DeFi protocols using the Vaults.fyi v1 payload generation API.\",\"url\":\"https://docs.vaults.fyi/api/legacy/generate-payloads\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vaults.fyi/api/legacy/generate-payloads#webpage\"},\"dateModified\":\"2026-04-20T22:49:29.802Z\",\"publisher\":{\"@id\":\"https://docs.vaults.fyi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vaults.fyi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vaults.fyi\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Vaults.fyi\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/legacy/generate-payloads.md","siteName":"Vaults.fyi","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","pages":[{"title":"Vaults.fyi API Overview","sidebarTitle":"Overview","href":"/api-reference/overview"},{"group":"Sections","pages":[{"title":"General","href":"/api-reference/general"},{"title":"Detailed Vaults","href":"/api-reference/detailed-vaults"},{"title":"Historical","href":"/api-reference/historical"},{"title":"Benchmarks","href":"/api-reference/benchmarks"},{"title":"Portfolio","href":"/api-reference/portfolio"},{"title":"Transactions","href":"/api-reference/transactions"},{"title":"Near Real-Time","href":"/api-reference/nrt"},{"title":"Health","description":"Service health endpoint for monitoring API availability.","href":"/api-reference/health"}]},{"group":"Legacy v1","hidden":true,"pages":[{"title":"Legacy v1 API Endpoints Overview","description":"Overview of the Vaults.fyi v1 legacy API: fully supported endpoints covering market data, position tracking, payload generation, and contextual insights.","sidebarTitle":"Overview","href":"/api/legacy/overview"},{"title":"v1 Market Data Endpoints for DeFi Vaults","description":"Query real-time and historical APY and TVL data for DeFi vaults across Aave, Morpho, Compound, and more using the Vaults.fyi v1 market data API.","sidebarTitle":"Market Data","href":"/api/legacy/market-data"},{"title":"v1 Position Tracking Endpoints for DeFi Wallets","description":"v1 endpoints for vault positions, wallet balances, transaction history, and returns. Fully supported; for new integrations use the v2 portfolio endpoints.","sidebarTitle":"Position Tracking","href":"/api/legacy/position-tracking"},{"title":"v1 Generate Payloads: DeFi Transaction Calldata","sidebarTitle":"Generate Payloads","href":"/api/legacy/generate-payloads"},{"title":"v1 Contextual Insights: Wallet-Based Yield Options","description":"Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights API.","sidebarTitle":"Contextual Insights","href":"/api/legacy/contextual-insights"}]},{"group":"Endpoints","pages":[{"group":"Health","pages":[{"title":"Health check","description":"Checks the health status of the API and its dependencies including database connections and cache availability.","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/health","href":"/api-reference/health/health-check"}]},{"group":"General","pages":[{"title":"List vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/vaults","href":"/api-reference/general/list-vaults"},{"title":"List assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/assets","href":"/api-reference/general/list-assets"},{"title":"List tags","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/tags","href":"/api-reference/general/list-tags"},{"title":"List networks","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/networks","href":"/api-reference/general/list-networks"},{"title":"List curators","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/curators","href":"/api-reference/general/list-curators"},{"title":"List protocols","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/protocols","href":"/api-reference/general/list-protocols"}]},{"group":"Historical","pages":[{"title":"Get vault historical data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}","href":"/api-reference/historical/get-vault-historical-data"},{"title":"Get historical APY","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/apy","href":"/api-reference/historical/get-historical-apy"},{"title":"Get historical TVL","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/tvl","href":"/api-reference/historical/get-historical-tvl"},{"title":"Get historical share price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/sharePrice","href":"/api-reference/historical/get-historical-share-price"},{"title":"Get historical asset prices","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/asset-prices/{network}/{assetAddress}","href":"/api-reference/historical/get-historical-asset-prices"}]},{"group":"Detailed Vaults","pages":[{"title":"List detailed vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults","href":"/api-reference/detailed-vaults/list-detailed-vaults"},{"title":"Get vault details","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}","href":"/api-reference/detailed-vaults/get-vault-details"},{"title":"Get vault APY","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}/apy","href":"/api-reference/detailed-vaults/get-vault-apy"},{"title":"Get vault TVL","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}/tvl","href":"/api-reference/detailed-vaults/get-vault-tvl"}]},{"group":"Portfolio","pages":[{"title":"Get best vault","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/best-vault/{userAddress}","href":"/api-reference/portfolio/get-best-vault"},{"title":"List portfolio positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/positions/{userAddress}","href":"/api-reference/portfolio/list-portfolio-positions"},{"title":"Get portfolio position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/positions/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/get-portfolio-position"},{"title":"Get best deposit options","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/best-deposit-options/{userAddress}","href":"/api-reference/portfolio/get-best-deposit-options"},{"title":"List idle assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/idle-assets/{userAddress}","href":"/api-reference/portfolio/list-idle-assets"},{"title":"Get total returns","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/total-returns/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/get-total-returns"},{"title":"List position events","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/events/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/list-position-events"}]},{"group":"Transactions","pages":[{"title":"Get transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/context/{userAddress}/{network}/{vaultId}","href":"/api-reference/transactions/get-transaction-context"},{"title":"Get transaction suffix","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/suffix/{userAddress}/{vaultId}","href":"/api-reference/transactions/get-transaction-suffix"},{"title":"Get transaction payload","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/{action}/{userAddress}/{network}/{vaultId}","href":"/api-reference/transactions/get-transaction-payload"},{"title":"Get rewards context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/rewards/context/{userAddress}","href":"/api-reference/transactions/get-rewards-context"},{"title":"Claim rewards","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/rewards/claim/{userAddress}","href":"/api-reference/transactions/claim-rewards"}]},{"group":"Benchmarks","pages":[{"title":"Get benchmark rate","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/benchmarks/{network}","href":"/api-reference/benchmarks/get-benchmark-rate"},{"title":"Get historical benchmarks","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical-benchmarks/{network}","href":"/api-reference/benchmarks/get-historical-benchmarks"}]},{"group":"NRT","pages":[{"title":"Get vault NRT data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}","href":"/api-reference/nrt/get-vault-nrt-data"},{"title":"Get vault NRT share price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/sharePrice","href":"/api-reference/nrt/get-vault-nrt-share-price"},{"title":"Get vault NRT total supply","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/totalSupply","href":"/api-reference/nrt/get-vault-nrt-total-supply"},{"title":"Get vault NRT total assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/totalAssets","href":"/api-reference/nrt/get-vault-nrt-total-assets"},{"title":"Get vault NRT underlying asset price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/underlyingAssetPrice","href":"/api-reference/nrt/get-vault-nrt-underlying-asset-price"}]},{"group":"Borrow Markets","pages":[{"title":"Get borrow market transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/transactions/context/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-transaction-context"},{"title":"Create borrow market transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/transactions/{action}/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/create-borrow-market-transaction"},{"title":"List borrow markets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/","href":"/api-reference/borrow-markets/list-borrow-markets"},{"title":"Get borrow market historical data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/historical/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-historical-data"},{"title":"Get borrow market asset NRT data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/nrt/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-asset-nrt-data"},{"title":"List borrow markets by network","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/{network}","href":"/api-reference/borrow-markets/list-borrow-markets-by-network"},{"title":"Get borrow market","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/{network}/{marketId}","href":"/api-reference/borrow-markets/get-borrow-market"},{"title":"List borrow market events","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/events/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/list-borrow-market-events"},{"title":"List borrow positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}","href":"/api-reference/borrow-markets/list-borrow-positions"},{"title":"Get borrow market asset position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-asset-position"},{"title":"Get borrow market position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}/{network}/{marketId}","href":"/api-reference/borrow-markets/get-borrow-market-position"}]}]},{"group":"Beta","pages":[{"title":"Beta","href":"/api-reference/beta"},{"group":"Endpoints","pages":[{"group":"The Deep","pages":[{"title":"Create Deep deposit transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/amm/deep/deposit/{userAddress}/{network}/{vaultId}","href":"/api-reference/the-deep/create-deep-deposit-transaction"},{"title":"Create Deep withdrawal transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/amm/deep/withdraw/{userAddress}/{network}/{vaultId}","href":"/api-reference/the-deep/create-deep-withdrawal-transaction"},{"title":"Get Deep position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/amm/deep/positions/{userAddress}/{network}/{vaultId}","href":"/api-reference/the-deep/get-deep-position"},{"title":"List Deep detailed vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/amm/deep/detailed-vaults","href":"/api-reference/the-deep/list-deep-detailed-vaults"}]},{"group":"Fixed Term (Pendle)","pages":[{"title":"List fixed-term Pendle markets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/fixed-term/","href":"/api-reference/fixed-term-pendle/list-fixed-term-pendle-markets"},{"title":"Get fixed-term market","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/fixed-term/detailed/{network}/{vaultId}","href":"/api-reference/fixed-term-pendle/get-fixed-term-market"},{"title":"Create fixed-term transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/fixed-term/transactions/{action}/{userAddress}/{network}/{vaultId}","href":"/api-reference/fixed-term-pendle/create-fixed-term-transaction"},{"title":"Get fixed-term transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/fixed-term/context/{userAddress}/{network}/{vaultId}","href":"/api-reference/fixed-term-pendle/get-fixed-term-transaction-context"}]},{"group":"Portfolio","pages":[{"title":"Get partial returns","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/portfolio/partial-returns/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/get-partial-returns"}]},{"group":"SVM","pages":[{"title":"Get SVM idle asset","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/portfolio/idle-assets/{userAddress}/{assetAddress}","href":"/api-reference/svm/get-svm-idle-asset"},{"title":"List SVM idle assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/portfolio/idle-assets/{userAddress}","href":"/api-reference/svm/list-svm-idle-assets"},{"title":"List SVM vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/vaults","href":"/api-reference/svm/list-svm-vaults"},{"title":"List SVM detailed vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/detailed-vaults","href":"/api-reference/svm/list-svm-detailed-vaults"},{"title":"Get SVM detailed vault","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/detailed-vaults/{vaultAddress}","href":"/api-reference/svm/get-svm-detailed-vault"},{"title":"List SVM positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/portfolio/positions/{userAddress}","href":"/api-reference/svm/list-svm-positions"},{"title":"Create SVM transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/transactions/{action}/{userAddress}/{vaultAddress}","href":"/api-reference/svm/create-svm-transaction"},{"title":"Get SVM transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/transactions/context/{userAddress}/{vaultAddress}","href":"/api-reference/svm/get-svm-transaction-context"},{"title":"List SVM portfolio events across supported vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/portfolio/events/{userAddress}","href":"/api-reference/svm/list-svm-portfolio-events-across-supported-vaults"},{"title":"List SVM position events","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json get /beta/svm/portfolio/events/{userAddress}/{vaultAddress}","href":"/api-reference/svm/list-svm-position-events"}]},{"group":"Advanced Analytics","pages":[{"title":"List advanced vault analytics","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json post /beta/advanced-analytics","href":"/api-reference/advanced-analytics/list-advanced-vault-analytics"},{"title":"Get advanced vault analytics","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/beta/documentation/json post /beta/advanced-analytics/{network}/{vaultId}","href":"/api-reference/advanced-analytics/get-advanced-vault-analytics"}]}]}]},{"group":"Alpha","pages":[{"title":"Alpha","href":"/api-reference/alpha"},{"group":"Endpoints","pages":[{"group":"Holders","pages":[{"title":"List vault holders","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/{network}/{vaultId}/holders","href":"/api-reference/holders/list-vault-holders"}]},{"group":"Historical Positions","pages":[{"title":"List user historical positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/historical-positions/{userAddress}","href":"/api-reference/historical-positions/list-user-historical-positions"},{"title":"List user historical balances","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/historical-balances/{userAddress}/{timestamp}","href":"/api-reference/historical-positions/list-user-historical-balances"}]},{"group":"Historical","pages":[{"title":"Get historical daily vault flows","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/historical/{network}/{vaultId}/daily-flows","href":"/api-reference/historical/get-historical-daily-vault-flows"}]},{"group":"Cross Chain","pages":[{"title":"Create transaction intent quote","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json post /alpha/transactions/intent/getQuote","href":"/api-reference/cross-chain/create-transaction-intent-quote"},{"title":"Execute transaction intent","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json post /alpha/transactions/intent/execute","href":"/api-reference/cross-chain/execute-transaction-intent"},{"title":"Get transaction intent status","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/transactions/intent/status","href":"/api-reference/cross-chain/get-transaction-intent-status"}]},{"group":"CCTP Bridge","pages":[{"title":"Get CCTP transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/transactions/cctp/context/{userAddress}/{srcNetwork}/{dstNetwork}/{assetAddress}","href":"/api-reference/cctp-bridge/get-cctp-transaction-context"},{"title":"List CCTP money in transit","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/transactions/cctp/money-in-transit/{userAddress}","href":"/api-reference/cctp-bridge/list-cctp-money-in-transit"},{"title":"Create CCTP transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/transactions/cctp/transactions/{action}/{userAddress}/{srcNetwork}/{dstNetwork}","href":"/api-reference/cctp-bridge/create-cctp-transaction"},{"title":"Get CCTP transaction status","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/alpha/documentation/json get /alpha/transactions/cctp/status","href":"/api-reference/cctp-bridge/get-cctp-transaction-status"}]}]}]}],"groups":[{"group":"Health","pages":[{"title":"Health check","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/health","href":"/api-reference/health/health-check"}]},{"group":"General","pages":[{"title":"List vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/vaults","href":"/api-reference/general/list-vaults"},{"title":"List assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/assets","href":"/api-reference/general/list-assets"},{"title":"List tags","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/tags","href":"/api-reference/general/list-tags"},{"title":"List networks","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/networks","href":"/api-reference/general/list-networks"},{"title":"List curators","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/curators","href":"/api-reference/general/list-curators"},{"title":"List protocols","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/protocols","href":"/api-reference/general/list-protocols"}]},{"group":"Historical","pages":[{"title":"Get vault historical data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}","href":"/api-reference/historical/get-vault-historical-data"},{"title":"Get historical APY","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/apy","href":"/api-reference/historical/get-historical-apy"},{"title":"Get historical TVL","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/tvl","href":"/api-reference/historical/get-historical-tvl"},{"title":"Get historical share price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/{network}/{vaultId}/sharePrice","href":"/api-reference/historical/get-historical-share-price"},{"title":"Get historical asset prices","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical/asset-prices/{network}/{assetAddress}","href":"/api-reference/historical/get-historical-asset-prices"}]},{"group":"Detailed Vaults","pages":[{"title":"List detailed vaults","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults","href":"/api-reference/detailed-vaults/list-detailed-vaults"},{"title":"Get vault details","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}","href":"/api-reference/detailed-vaults/get-vault-details"},{"title":"Get vault APY","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}/apy","href":"/api-reference/detailed-vaults/get-vault-apy"},{"title":"Get vault TVL","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/detailed-vaults/{network}/{vaultId}/tvl","href":"/api-reference/detailed-vaults/get-vault-tvl"}]},{"group":"Portfolio","pages":[{"title":"Get best vault","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/best-vault/{userAddress}","href":"/api-reference/portfolio/get-best-vault"},{"title":"List portfolio positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/positions/{userAddress}","href":"/api-reference/portfolio/list-portfolio-positions"},{"title":"Get portfolio position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/positions/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/get-portfolio-position"},{"title":"Get best deposit options","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/best-deposit-options/{userAddress}","href":"/api-reference/portfolio/get-best-deposit-options"},{"title":"List idle assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/idle-assets/{userAddress}","href":"/api-reference/portfolio/list-idle-assets"},{"title":"Get total returns","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/total-returns/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/get-total-returns"},{"title":"List position events","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/portfolio/events/{userAddress}/{network}/{vaultId}","href":"/api-reference/portfolio/list-position-events"}]},{"group":"Transactions","pages":[{"title":"Get transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/context/{userAddress}/{network}/{vaultId}","href":"/api-reference/transactions/get-transaction-context"},{"title":"Get transaction suffix","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/suffix/{userAddress}/{vaultId}","href":"/api-reference/transactions/get-transaction-suffix"},{"title":"Get transaction payload","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/{action}/{userAddress}/{network}/{vaultId}","href":"/api-reference/transactions/get-transaction-payload"},{"title":"Get rewards context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/rewards/context/{userAddress}","href":"/api-reference/transactions/get-rewards-context"},{"title":"Claim rewards","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/transactions/rewards/claim/{userAddress}","href":"/api-reference/transactions/claim-rewards"}]},{"group":"Benchmarks","pages":[{"title":"Get benchmark rate","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/benchmarks/{network}","href":"/api-reference/benchmarks/get-benchmark-rate"},{"title":"Get historical benchmarks","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/historical-benchmarks/{network}","href":"/api-reference/benchmarks/get-historical-benchmarks"}]},{"group":"NRT","pages":[{"title":"Get vault NRT data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}","href":"/api-reference/nrt/get-vault-nrt-data"},{"title":"Get vault NRT share price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/sharePrice","href":"/api-reference/nrt/get-vault-nrt-share-price"},{"title":"Get vault NRT total supply","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/totalSupply","href":"/api-reference/nrt/get-vault-nrt-total-supply"},{"title":"Get vault NRT total assets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/totalAssets","href":"/api-reference/nrt/get-vault-nrt-total-assets"},{"title":"Get vault NRT underlying asset price","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/nrt/vault/{network}/{vaultId}/underlyingAssetPrice","href":"/api-reference/nrt/get-vault-nrt-underlying-asset-price"}]},{"group":"Borrow Markets","pages":[{"title":"Get borrow market transaction context","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/transactions/context/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-transaction-context"},{"title":"Create borrow market transaction","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/transactions/{action}/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/create-borrow-market-transaction"},{"title":"List borrow markets","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/","href":"/api-reference/borrow-markets/list-borrow-markets"},{"title":"Get borrow market historical data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/historical/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-historical-data"},{"title":"Get borrow market asset NRT data","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/nrt/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-asset-nrt-data"},{"title":"List borrow markets by network","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/{network}","href":"/api-reference/borrow-markets/list-borrow-markets-by-network"},{"title":"Get borrow market","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/markets/{network}/{marketId}","href":"/api-reference/borrow-markets/get-borrow-market"},{"title":"List borrow market events","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/events/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/list-borrow-market-events"},{"title":"List borrow positions","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}","href":"/api-reference/borrow-markets/list-borrow-positions"},{"title":"Get borrow market asset position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}/{network}/{marketId}/{marketAssetId}","href":"/api-reference/borrow-markets/get-borrow-market-asset-position"},{"title":"Get borrow market position","deprecated":null,"version":null,"openapi":"https://api.vaults.fyi/v2/documentation/json get /v2/borrow/portfolio/positions/{userAddress}/{network}/{marketId}","href":"/api-reference/borrow-markets/get-borrow-market-position"}]}]}]},"basePath":"","title":"v1 Generate Payloads: DeFi Transaction Calldata - Vaults.fyi","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}