Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights API.
The v1 contextual insights endpoints surface yield opportunities that are relevant to a specific wallet. Rather than showing every available vault, they examine the wallet’s token holdings and return the best matching options based on the assets it already holds. You can filter by network, protocol, minimum TVL, minimum APY, and more.
These are legacy v1 endpoints. They are fully supported and maintained. For new integrations, consider using the v2 endpoints.
Get top vault options for an address
POST https://api.vaults.fyi/v1/portfolio/best-deposit-options/{userAddress}
Given a wallet address and a set of filter preferences, returns a ranked list of vault options for the assets the wallet holds. Up to maxVaultsPerAsset options are returned per asset.Authentication:x-api-key header required.
Path parameters
string
required
Wallet address to find options for. Pattern: ^0x[a-fA-F0-9]{40}$.
Request body
string
default:"7day"
APY averaging window. Possible values: 1day, 7day, 30day.
POST https://api.vaults.fyi/v1/portfolio/best-vault/{userAddress}
Given a wallet address and filter preferences, returns the single highest-yielding vault option for the assets the wallet holds. Useful when you want to surface one clear recommendation to a user.Authentication:x-api-key header required.
Path parameters
string
required
Wallet address to find the best option for. Pattern: ^0x[a-fA-F0-9]{40}$.
Request body
Accepts the same filter parameters as the top vault options endpoint, with the exception of maxVaultsPerAsset, alwaysReturnAssets, and distinctProtocols.
string
default:"7day"
APY averaging window. Possible values: 1day, 7day, 30day.
Get top ETH and USD vault for an address (Etherscan integration)
GET https://api.vaults.fyi/v1/top-vault/{network}/{userAddress}
Returns the best vault recommendation for a wallet on a specific network. This endpoint powers the Yield Opportunity card displayed on Etherscan wallet pages, surfacing a contextual yield suggestion inline for users browsing their transaction history.Authentication:x-api-key header required.
Path parameters
string
required
Network name or CAIP identifier. E.g. mainnet, base, arbitrum.
string
required
User wallet address. Pattern: ^0x[a-fA-F0-9]{40}$.
Example request
GET /v1/top-vault/mainnet/0xabc...123 HTTP/1.1Host: api.vaults.fyix-api-key: YOUR_API_KEYAccept: */*
{"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/contextual-insights","slug":"/api/legacy/contextual-insights","pageMetadata":{"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","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: \"Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights 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 contextual insights endpoints surface yield opportunities that are relevant to a specific wallet. Rather than showing every available vault, they examine the wallet’s token holdings and return the best matching options based on the assets it already holds. You can filter by network, protocol, minimum TVL, minimum APY, and more.`}),`\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-top-vault-options-for-an-address`,children:`Get top vault options for an address`}),`\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:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/portfolio/best-deposit-options/{userAddress}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Given a wallet address and a set of filter preferences, returns a ranked list of vault options for the assets the wallet holds. Up to `,_jsx(_components.code,{children:`maxVaultsPerAsset`}),` options are returned per asset.`]}),`\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:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`userAddress`,type:`string`,required:true,id:`param-user-address`,children:_jsxs(_components.p,{children:[`Wallet address to find options for. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`apyInterval`,type:`string`,default:`7day`,id:`param-apy-interval`,children:_jsxs(_components.p,{children:[`APY averaging window. Possible values: `,_jsx(_components.code,{children:`1day`}),`, `,_jsx(_components.code,{children:`7day`}),`, `,_jsx(_components.code,{children:`30day`}),`.`]})}),`\n`,_jsx(ParamField,{body:`allowedNetworks`,type:`string[]`,default:`[\"base\",\"mainnet\",\"arbitrum\",\"polygon\"]`,id:`param-allowed-networks`,children:_jsx(_components.p,{children:`Networks to include, specified by name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{body:`disallowedNetworks`,type:`string[]`,id:`param-disallowed-networks`,children:_jsx(_components.p,{children:`Networks to exclude, specified by name or CAIP identifier.`})}),`\n`,_jsx(ParamField,{body:`allowedAssets`,type:`string[]`,id:`param-allowed-assets`,children:_jsxs(_components.p,{children:[`Assets to include, specified by symbol or ticker (e.g. `,_jsx(_components.code,{children:`[\"USDC\", \"ETH\"]`}),`).`]})}),`\n`,_jsx(ParamField,{body:`disallowedAssets`,type:`string[]`,id:`param-disallowed-assets`,children:_jsx(_components.p,{children:`Assets to exclude, specified by symbol or ticker.`})}),`\n`,_jsx(ParamField,{body:`allowedProtocols`,type:`string[]`,id:`param-allowed-protocols`,children:_jsxs(_components.p,{children:[`Protocols to include, specified by name (e.g. `,_jsx(_components.code,{children:`[\"Aave\", \"Morpho\"]`}),`).`]})}),`\n`,_jsx(ParamField,{body:`disallowedProtocols`,type:`string[]`,id:`param-disallowed-protocols`,children:_jsx(_components.p,{children:`Protocols to exclude, specified by name.`})}),`\n`,_jsx(ParamField,{body:`minimumBalanceThreshold`,type:`number`,default:`1`,id:`param-minimum-balance-threshold`,children:_jsx(_components.p,{children:`Minimum USD balance for an asset to be included in results.`})}),`\n`,_jsx(ParamField,{body:`minimumVaultTvl`,type:`number`,default:`100000`,id:`param-minimum-vault-tvl`,children:_jsx(_components.p,{children:`Minimum vault TVL in USD.`})}),`\n`,_jsx(ParamField,{body:`maxVaultsPerAsset`,type:`integer`,default:`3`,id:`param-max-vaults-per-asset`,children:_jsx(_components.p,{children:`Maximum number of vault options to return per asset. Range: 1–5.`})}),`\n`,_jsx(ParamField,{body:`minApy`,type:`integer`,id:`param-min-apy`,children:_jsx(_components.p,{children:`Minimum vault APY in basis points.`})}),`\n`,_jsx(ParamField,{body:`transactionalOnly`,type:`boolean`,id:`param-transactional-only`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, only returns vaults with transactional endpoint support.`]})}),`\n`,_jsx(ParamField,{body:`transactionalFeaturedOnly`,type:`boolean`,id:`param-transactional-featured-only`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, only returns transactional vaults featured on app.vaults.fyi.`]})}),`\n`,_jsx(ParamField,{body:`alwaysReturnAssets`,type:`string[]`,default:`[]`,id:`param-always-return-assets`,children:_jsx(_components.p,{children:`Symbols or tickers of assets to always include in results, regardless of wallet balance.`})}),`\n`,_jsx(ParamField,{body:`distinctProtocols`,type:`boolean`,id:`param-distinct-protocols`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, returns only one vault per protocol for each asset.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/portfolio/best-deposit-options/0xabc...123 `}),_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:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\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`,_jsx(_components.span,{className:`line`}),`\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:` \"apyInterval\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7day\"`}),_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:` \"allowedNetworks\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base\"`}),_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:` \"minimumVaultTvl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"maxVaultsPerAsset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_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:` \"transactionalOnly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,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:`26`,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:` \"requestedAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xabc...123\"`}),_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:` \"userBalances\"`}),_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:` \"asset\"`}),_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:` \"balanceUsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500.00`})]}),`\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:` \"vaults\"`}),_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:` \"vaultAddress\"`}),_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:` \"networkName\"`}),_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:` \"tvlInUsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000000`}),_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:` \"apy\"`}),_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:` \"base\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`420`}),_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:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`468`})]}),`\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:` \"isTransactional\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\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`,_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-single-best-vault-option-for-an-address`,children:`Get single best vault option for an address`}),`\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:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.vaults.fyi/v1/portfolio/best-vault/{userAddress}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Given a wallet address and filter preferences, returns the single highest-yielding vault option for the assets the wallet holds. Useful when you want to surface one clear recommendation to a user.`}),`\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:`path-parameters-2`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`userAddress`,type:`string`,required:true,id:`param-user-address-1`,children:_jsxs(_components.p,{children:[`Wallet address to find the best option for. Pattern: `,_jsx(_components.code,{children:`^0x[a-fA-F0-9]{40}$`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request body`}),`\n`,_jsxs(_components.p,{children:[`Accepts the same filter parameters as the `,_jsx(_components.a,{href:`#get-top-vault-options-for-an-address`,children:`top vault options endpoint`}),`, with the exception of `,_jsx(_components.code,{children:`maxVaultsPerAsset`}),`, `,_jsx(_components.code,{children:`alwaysReturnAssets`}),`, and `,_jsx(_components.code,{children:`distinctProtocols`}),`.`]}),`\n`,_jsx(ParamField,{body:`apyInterval`,type:`string`,default:`7day`,id:`param-apy-interval-1`,children:_jsxs(_components.p,{children:[`APY averaging window. Possible values: `,_jsx(_components.code,{children:`1day`}),`, `,_jsx(_components.code,{children:`7day`}),`, `,_jsx(_components.code,{children:`30day`}),`.`]})}),`\n`,_jsx(ParamField,{body:`allowedNetworks`,type:`string[]`,default:`[\"base\",\"mainnet\",\"arbitrum\",\"polygon\"]`,id:`param-allowed-networks-1`,children:_jsx(_components.p,{children:`Networks to include.`})}),`\n`,_jsx(ParamField,{body:`minimumVaultTvl`,type:`number`,default:`100000`,id:`param-minimum-vault-tvl-1`,children:_jsx(_components.p,{children:`Minimum vault TVL in USD.`})}),`\n`,_jsx(ParamField,{body:`transactionalOnly`,type:`boolean`,id:`param-transactional-only-1`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, only returns vaults with transactional support.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-2`,children:`Example request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/portfolio/best-vault/0xabc...123 `}),_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:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\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`,_jsx(_components.span,{className:`line`}),`\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:` \"apyInterval\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7day\"`}),_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:` \"allowedNetworks\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base\"`}),_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:` \"minimumVaultTvl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"transactionalOnly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-2`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`43`,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:`43`,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:` \"requestedAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xabc...123\"`}),_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:` \"asset\"`}),_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:` \"assetAddress\"`}),_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:` \"assetCaip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eip155:1/erc20: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:` \"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:` \"networkName\"`}),_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:` \"networkCaip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eip155: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:` \"balanceNative\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2500.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:` \"balanceUsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500.00`})]}),`\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:` \"vault\"`}),_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:`: {`})]}),`\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\"`}),_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:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"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:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v3\"`}),_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:` \"protocolLogo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/aave.png\"`}),_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:` \"protocolUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://aave.com\"`}),_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:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Decentralized lending protocol\"`})]}),`\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:` \"vaultAddress\"`}),_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:` \"vaultUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.aave.com/\"`}),_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:` \"networkName\"`}),_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:` \"networkCaip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eip155: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:` \"tvlInUsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000000`}),_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:` \"apy\"`}),_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:` \"base\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`420`}),_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:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`468`})]}),`\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:` \"projectedAnnualEarnings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`117.00`}),_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:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stablecoin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"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:` \"isTransactional\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\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:` \"errors\"`}),_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:` \"unsupportedNetworks\"`}),_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:` \"unsupportedAssets\"`}),_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:` \"unsupportedProtocols\"`}),_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-top-eth-and-usd-vault-for-an-address-etherscan-integration`,children:`Get top ETH and USD vault for an address (Etherscan integration)`}),`\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/top-vault/{network}/{userAddress}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Returns the best vault recommendation for a wallet on a specific network. This endpoint powers the `,_jsx(_components.strong,{children:`Yield Opportunity`}),` card displayed on Etherscan wallet pages, surfacing a contextual yield suggestion inline for users browsing their transaction history.`]}),`\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:`path-parameters-3`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`network`,type:`string`,required:true,id:`param-network`,children:_jsxs(_components.p,{children:[`Network name or CAIP identifier. E.g. `,_jsx(_components.code,{children:`mainnet`}),`, `,_jsx(_components.code,{children:`base`}),`, `,_jsx(_components.code,{children:`arbitrum`}),`.`]})}),`\n`,_jsx(ParamField,{path:`userAddress`,type:`string`,required:true,id:`param-user-address-2`,children:_jsxs(_components.p,{children:[`User wallet 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/top-vault/mainnet/0xabc...123 `}),_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(Note,{children:_jsxs(_components.p,{children:[`To see a live example of this endpoint in action, visit the `,_jsx(_components.a,{href:`/resources/case-studies`,children:`Etherscan Cards case study`}),`.`]})})]})}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 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","hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get top vault options for an address","slug":"get-top-vault-options-for-an-address","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Request body","slug":"request-body","depth":3,"children":[]},{"title":"Example request","slug":"example-request","depth":3,"children":[]},{"title":"Example response","slug":"example-response","depth":3,"children":[]}]},{"title":"Get single best vault option for an address","slug":"get-single-best-vault-option-for-an-address","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters-2","depth":3,"children":[]},{"title":"Request body","slug":"request-body-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 top ETH and USD vault for an address (Etherscan integration)","slug":"get-top-eth-and-usd-vault-for-an-address-etherscan-integration","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters-3","depth":3,"children":[]},{"title":"Example request","slug":"example-request-3","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"vaultsfyi","siteName":"Vaults.fyi","title":"v1 Contextual Insights: Wallet-Based Yield Options - Vaults.fyi","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-20T22:49:29.806Z","originalFileLocation":"api/legacy/contextual-insights.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=\"Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights 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 Contextual Insights: Wallet-Based Yield Options - Vaults.fyi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights 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/contextual-insights\">\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+Contextual+Insights%3A+Wallet-Based+Yield+Options\u0026amp;description=Surface+personalized+DeFi+yield+opportunities+for+a+wallet+address%2C+filtered+by+holdings+and+preferences%2C+using+the+Vaults.fyi+v1+contextual+insights+API.\u0026amp;theme=f98404897f33c2278a9b1ab7\u0026amp;signature=dd2f57ac5a8998cf085f170eca0cdc4d15c93b1ae165d46d3caa538db0f49e7c\">\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 Contextual Insights: Wallet-Based Yield Options - Vaults.fyi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Surface personalized DeFi yield opportunities for a wallet address, filtered by holdings and preferences, using the Vaults.fyi v1 contextual insights API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaultsfyi.mintlify.site/_mintlify/api/og/v2?division=Legacy+v1\u0026amp;title=v1+Contextual+Insights%3A+Wallet-Based+Yield+Options\u0026amp;description=Surface+personalized+DeFi+yield+opportunities+for+a+wallet+address%2C+filtered+by+holdings+and+preferences%2C+using+the+Vaults.fyi+v1+contextual+insights+API.\u0026amp;theme=f98404897f33c2278a9b1ab7\u0026amp;signature=dd2f57ac5a8998cf085f170eca0cdc4d15c93b1ae165d46d3caa538db0f49e7c\">\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/contextual-insights\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/legacy/contextual-insights.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/contextual-insights#webpage\",\"url\":\"https://docs.vaults.fyi/api/legacy/contextual-insights\",\"name\":\"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.\",\"dateModified\":\"2026-04-20T22:49:29.806Z\",\"isPartOf\":{\"@id\":\"https://docs.vaults.fyi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vaults.fyi/api/legacy/contextual-insights#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vaults.fyi/api/legacy/contextual-insights#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Legacy v1\",\"item\":\"https://docs.vaults.fyi/api/legacy/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"v1 Contextual Insights: Wallet-Based Yield Options\",\"item\":\"https://docs.vaults.fyi/api/legacy/contextual-insights\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.vaults.fyi/api/legacy/contextual-insights#article\",\"headline\":\"v1 Contextual Insights: Wallet-Based Yield Options\",\"name\":\"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.\",\"url\":\"https://docs.vaults.fyi/api/legacy/contextual-insights\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vaults.fyi/api/legacy/contextual-insights#webpage\"},\"dateModified\":\"2026-04-20T22:49:29.806Z\",\"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/contextual-insights.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","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"},{"title":"v1 Contextual Insights: Wallet-Based Yield Options","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 Contextual Insights: Wallet-Based Yield Options - Vaults.fyi","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}