Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.
A quote previews how much of the target asset a deposit delivers after conversion. Use quotes to check that a route is supported, or to show users an estimate before they send funds.Quotes do not require a wallet ID or an authorization signature. Quotes reflect the app’s gas and fee sponsorship settings.Quotes are indicative. A deposit address does not lock this price for later deposits. Fetch a fresh quote when displaying an estimate, since market conditions and liquidity can change before conversion.
Use getQuote from the useHeadlessCryptoDeposit hook.
useHeadlessCryptoDeposit is experimental and requires @privy-io/react-auth 3.46.0 or later.
The interface may change without a major SDK version bump.
import {useHeadlessCryptoDeposit} from '@privy-io/react-auth';const {getQuote} = useHeadlessCryptoDeposit();// Quote 1.5 USDC on Base delivered as PathUSD on Tempoconst quote = await getQuote({ source: {chain: 'base', asset: 'usdc'}, destination: {chain: 'tempo', asset: 'pathusd'}, inputAmount: '1.5'});console.log(quote.estimated_output_amount);
ParametersgetQuote accepts an object with the following fields:
object
required
Asset the user would deposit. Unlike create, both chain and asset are required.
Show properties
string
required
Chain alias or CAIP-2 identifier, such as base or eip155:8453.
string
required
Asset alias or token contract address, such as usdc or 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.
object
required
Asset delivered to the destination wallet.
Show properties
string
required
Chain alias or CAIP-2 identifier, such as base or eip155:8453.
string
required
Asset alias or token contract address, such as usdc or 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.
string
Amount as a decimal string in the source token’s standard unit, such as '1.5' for 1.5 USDC. Omit
to quote approximately $50 of the source asset.
Every SDK returns the API response unchanged, with snake_case fields:
string
Quoted input as a decimal string in the source token’s standard unit.
string
Estimated output as a decimal string in the destination token’s standard unit.
string
ISO 8601 timestamp when the quote was created.
Error handling
The request rejects when:
the route is unsupported
the source and destination are the same asset on the same chain
the source and destination are not both mainnet or both testnet
Related
Create a deposit account
Get deposit addresses for a destination wallet
Track orders
Optionally check conversion status after a deposit
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Privy Docs","colors":{"primary":"#010110","light":"#FFFFFF"},"logo":{"light":"https://mintcdn.com/privy-c2af3412/Ih_Fo3QYM486gzWq/logo/privy-logo-light.png?fit=max\u0026auto=format\u0026n=Ih_Fo3QYM486gzWq\u0026q=85\u0026s=bd297b680ace8a13db4d9ce977f93180","dark":"https://mintcdn.com/privy-c2af3412/Ih_Fo3QYM486gzWq/logo/privy-logo-dark.png?fit=max\u0026auto=format\u0026n=Ih_Fo3QYM486gzWq\u0026q=85\u0026s=24d83970695ab19a1803a2eb00dbea4e"},"favicon":"https://mintcdn.com/privy-c2af3412/YByWVKlFbSpnpSJG/favicon.png?fit=max\u0026auto=format\u0026n=YByWVKlFbSpnpSJG\u0026q=85\u0026s=ee4038168ea586e5f72041e5e2a1f5c8","api":{"openapi":{"source":"https://api.staging.privy.io/v1/openapi.json"},"playground":{"display":"interactive"},"examples":{"languages":["curl","java","javascript","php","go"]},"mdx":{"server":"https://api.privy.io"}},"background":{"color":{"light":"#FFFFFF","dark":"#010110"}},"navbar":{"links":[{"href":"https://demo.privy.io","label":"Demo"},{"href":"https://privy.io/slack","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.privy.io"}},"seo":{"metatags":{"og:type":"website","og:site_name":"Privy Docs","og:image":"https://assets.privy.io/docs-og.png","twitter:title":"Privy Docs","twitter:card":"summary_large_image","twitter:image":"https://assets.privy.io/docs-og.png"},"organization":{"id":"https://www.privy.io/#organization","name":"Privy","url":"https://www.privy.io","logo":"https://assets.privy.io/docs-og.png","sameAs":["https://x.com/privy_io","https://github.com/privy-io"]}},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-WV9MVTB3"}},"contextual":{"options":["claude","chatgpt","cursor","vscode","mcp","copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"privy-c2af3412","hasAudioNarration":false,"actualSubdomain":"privy-c2af3412","customDomains":["docs.privy.io"],"gitSource":{"type":"github","owner":"privy-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":true,"thumbs":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b00d764501217c953df3b34","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Wallets","count":299},{"language":"default","tag":"API reference","count":257},{"language":"default","tag":"Identity","count":144},{"language":"default","tag":"Recipes","count":138},{"language":"default","tag":"All recipes","count":137},{"language":"default","tag":"Signatures and transactions","count":93},{"language":"default","tag":"Financial flows","count":90},{"language":"default","tag":"Users","count":89},{"language":"default","tag":"Basics","count":87},{"language":"default","tag":"Controls","count":77}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/privy-c2af3412/1055025e6880191b/style.css"}]}
{"page":{"pagePath":"wallets/funding/crypto-deposits/quotes","slug":"/wallets/funding/crypto-deposits/quotes","pageMetadata":{"title":"Quote a crypto deposit route","sidebarTitle":"Quote a route","og:title":"Crypto deposit quotes","description":"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.","keywords":["crypto deposit","quote","getQuote","deposit route","estimated output","deposit account"],"href":"/wallets/funding/crypto-deposits/quotes"},"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: \"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\"\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];const ChainIdentifier=()=>_jsxs(_Fragment,{children:[`Chain alias or CAIP-2 identifier, such as `,_jsx(`code`,{children:`base`}),` or `,_jsx(`code`,{children:`eip155:8453`}),`.`]});const AssetIdentifier=()=>_jsxs(_Fragment,{children:[`Asset alias or token contract address, such as `,_jsx(`code`,{children:`usdc`}),` or`,` `,_jsx(`code`,{children:`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`}),`.`]});function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Expandable,Heading,ParamField,ResponseField,View,Warning,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!View)_missingMdxReference(`View`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A quote previews how much of the target asset a deposit delivers after conversion. Use quotes to check that a route is supported, or to show users an estimate before they send funds.`}),`\n`,_jsxs(_components.p,{children:[`Quotes do not require a wallet ID or an authorization signature. Quotes reflect the app’s `,_jsx(_components.a,{href:`/wallets/funding/crypto-deposits/overview#gas-and-fee-sponsorship`,children:`gas and fee sponsorship settings`}),`.`]}),`\n`,_jsx(_components.p,{children:`Quotes are indicative. A deposit address does not lock this price for later deposits. Fetch a fresh quote when displaying an estimate, since market conditions and liquidity can change before conversion.`}),`\n`,_jsxs(View,{title:`React`,icon:`react`,id:`react`,children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`getQuote`}),` from the `,_jsx(_components.code,{children:`useHeadlessCryptoDeposit`}),` hook.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`useHeadlessCryptoDeposit`}),` is experimental and requires `,_jsx(_components.code,{children:`@privy-io/react-auth`}),` 3.46.0 or later.\nThe interface may change without a major SDK version bump.`]})}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {useHeadlessCryptoDeposit} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@privy-io/react-auth'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {getQuote} = useHeadlessCryptoDeposit();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Quote 1.5 USDC on Base delivered as PathUSD on Tempo`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` quote = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getQuote({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` source: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'base'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` destination: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'tempo'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pathusd'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inputAmount: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'1.5'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(quote.estimated_output_amount);`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getQuote`}),` accepts an object with the following fields:`]}),_jsxs(ParamField,{body:`source`,type:`object`,required:true,id:`param-source`,children:[_jsxs(_components.p,{children:[`Asset the user would deposit. Unlike create, both `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`asset`}),` are required.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`source.chain`,type:`string`,required:true,id:`param-source-chain`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`source.asset`,type:`string`,required:true,id:`param-source-asset`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsxs(ParamField,{body:`destination`,type:`object`,required:true,id:`param-destination`,children:[_jsx(_components.p,{children:`Asset delivered to the destination wallet.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`destination.chain`,type:`string`,required:true,id:`param-destination-chain`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`destination.asset`,type:`string`,required:true,id:`param-destination-asset`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsx(ParamField,{body:`inputAmount`,type:`string`,id:`param-input-amount`,children:_jsxs(_components.p,{children:[`Amount as a decimal string in the source token’s standard unit, such as `,_jsx(_components.code,{children:`'1.5'`}),` for 1.5 USDC. Omit\nto quote approximately $50 of the source asset.`]})}),_jsx(ParamField,{body:`slippageBps`,type:`number`,id:`param-slippage-bps`,children:_jsx(_components.p,{children:`Slippage tolerance in basis points.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getQuote`}),` returns a Promise for a `,_jsx(_components.a,{href:`#response`,children:`quote`}),`.`]})]}),`\n`,_jsxs(View,{title:`React Native`,icon:`react`,id:`react-native`,children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`getQuote`}),` from the `,_jsx(_components.code,{children:`useHeadlessCryptoDeposit`}),` hook.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`useHeadlessCryptoDeposit`}),` is experimental and requires `,_jsx(_components.code,{children:`@privy-io/expo`}),` 0.75.0 or later. The\ninterface may change without a major SDK version bump.`]})}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {useHeadlessCryptoDeposit} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@privy-io/expo'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {getQuote} = useHeadlessCryptoDeposit();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Quote 1.5 USDC on Base delivered as PathUSD on Tempo`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` quote = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getQuote({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` source: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'base'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` destination: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'tempo'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pathusd'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inputAmount: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'1.5'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(quote.estimated_output_amount);`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getQuote`}),` accepts an object with the following fields:`]}),_jsxs(ParamField,{body:`source`,type:`object`,required:true,id:`param-source-1`,children:[_jsxs(_components.p,{children:[`Asset the user would deposit. Unlike create, both `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`asset`}),` are required.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`source.chain`,type:`string`,required:true,id:`param-source-chain-1`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`source.asset`,type:`string`,required:true,id:`param-source-asset-1`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsxs(ParamField,{body:`destination`,type:`object`,required:true,id:`param-destination-1`,children:[_jsx(_components.p,{children:`Asset delivered to the destination wallet.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`destination.chain`,type:`string`,required:true,id:`param-destination-chain-1`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`destination.asset`,type:`string`,required:true,id:`param-destination-asset-1`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsx(ParamField,{body:`inputAmount`,type:`string`,id:`param-input-amount-1`,children:_jsxs(_components.p,{children:[`Amount as a decimal string in the source token’s standard unit, such as `,_jsx(_components.code,{children:`'1.5'`}),` for 1.5 USDC. Omit\nto quote approximately $50 of the source asset.`]})}),_jsx(ParamField,{body:`slippageBps`,type:`number`,id:`param-slippage-bps-1`,children:_jsx(_components.p,{children:`Slippage tolerance in basis points.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getQuote`}),` returns a Promise for a `,_jsx(_components.a,{href:`#response`,children:`quote`}),`.`]})]}),`\n`,_jsxs(View,{title:`NodeJS`,icon:`node-js`,id:`nodejs`,children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`privy.wallets().depositAccounts.crypto.quote`}),`. Requires `,_jsx(_components.code,{children:`@privy-io/node`}),` 0.35.0 or later.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {PrivyClient} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@privy-io/node'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` privy = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PrivyClient({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` appId: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'insert-your-app-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` appSecret: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'insert-your-app-secret'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Quote 1.5 USDC on Base delivered as PathUSD on Tempo`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` quote = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` privy.wallets().depositAccounts.crypto.quote({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` source: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'base'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` destination: {chain: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'tempo'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, asset: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pathusd'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` input_amount: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'1.5'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(quote.estimated_output_amount);`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`quote`}),` accepts an object with the following fields:`]}),_jsxs(ParamField,{body:`source`,type:`object`,required:true,id:`param-source-2`,children:[_jsxs(_components.p,{children:[`Asset the user would deposit. Unlike create, both `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`asset`}),` are required.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`source.chain`,type:`string`,required:true,id:`param-source-chain-2`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`source.asset`,type:`string`,required:true,id:`param-source-asset-2`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsxs(ParamField,{body:`destination`,type:`object`,required:true,id:`param-destination-2`,children:[_jsx(_components.p,{children:`Asset delivered to the destination wallet.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`destination.chain`,type:`string`,required:true,id:`param-destination-chain-2`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`destination.asset`,type:`string`,required:true,id:`param-destination-asset-2`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsx(ParamField,{body:`input_amount`,type:`string`,id:`param-input-amount-2`,children:_jsxs(_components.p,{children:[`Amount as a decimal string in the source token’s standard unit, such as `,_jsx(_components.code,{children:`'1.5'`}),` for 1.5 USDC. Omit\nto quote approximately $50 of the source asset.`]})}),_jsx(ParamField,{body:`slippage_bps`,type:`number`,id:`param-slippage-bps-2`,children:_jsx(_components.p,{children:`Slippage tolerance in basis points.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`quote`}),` returns a `,_jsx(_components.a,{href:`#response`,children:`quote`}),`.`]})]}),`\n`,_jsxs(View,{title:`REST API`,icon:`terminal`,id:`rest-api`,children:[_jsxs(_components.p,{children:[`Make a `,_jsx(_components.code,{children:`POST`}),` request to `,_jsx(_components.code,{children:`/v1/deposit_accounts/crypto/quote`}),` with the app secret. Apps on platforms without a Privy SDK can call this endpoint from any HTTP client.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`9`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` --request POST https://api.privy.io/v1/deposit_accounts/crypto/quote \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -u `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cyour-privy-app-id>:\u003cyour-privy-app-secret>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"privy-app-id: \u003cyour-privy-app-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"source\": {\"chain\": \"base\", \"asset\": \"usdc\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"destination\": {\"chain\": \"tempo\", \"asset\": \"pathusd\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input_amount\": \"1.5\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`18`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`app_id = os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PRIVY_APP_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`app_secret = os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PRIVY_APP_SECRET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response = requests.post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.privy.io/v1/deposit_accounts/crypto/quote\"`}),_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:` auth=(app_id, app_secret),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` headers={`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"privy-app-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: app_id},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json={`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chain\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"asset\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"destination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tempo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"asset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pathusd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.5\"`}),_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:`response.raise_for_status()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`quote = response.json()`})}),`\n`]})})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters`})}),_jsxs(_components.p,{children:[`The request body accepts the following fields. See the `,_jsx(_components.a,{href:`/api-reference/crypto-deposits/quote`,children:`API reference`}),` for the complete schema.`]}),_jsxs(ParamField,{body:`source`,type:`object`,required:true,id:`param-source-3`,children:[_jsxs(_components.p,{children:[`Asset the user would deposit. Unlike create, both `,_jsx(_components.code,{children:`chain`}),` and `,_jsx(_components.code,{children:`asset`}),` are required.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`source.chain`,type:`string`,required:true,id:`param-source-chain-3`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`source.asset`,type:`string`,required:true,id:`param-source-asset-3`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsxs(ParamField,{body:`destination`,type:`object`,required:true,id:`param-destination-3`,children:[_jsx(_components.p,{children:`Asset delivered to the destination wallet.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`destination.chain`,type:`string`,required:true,id:`param-destination-chain-3`,children:_jsx(_MdxComponentBoundary,{name:`ChainIdentifier`,children:_jsx(ChainIdentifier,{})})}),_jsx(ParamField,{body:`destination.asset`,type:`string`,required:true,id:`param-destination-asset-3`,children:_jsx(_MdxComponentBoundary,{name:`AssetIdentifier`,children:_jsx(AssetIdentifier,{})})})]})]}),_jsx(ParamField,{body:`input_amount`,type:`string`,id:`param-input-amount-3`,children:_jsxs(_components.p,{children:[`Amount as a decimal string in the source token’s standard unit, such as `,_jsx(_components.code,{children:`\"1.5\"`}),` for 1.5 USDC. Omit\nto quote approximately $50 of the source asset.`]})}),_jsx(ParamField,{body:`slippage_bps`,type:`number`,id:`param-slippage-bps-3`,children:_jsx(_components.p,{children:`Slippage tolerance in basis points.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Every SDK returns the API response unchanged, with snake_case fields:`}),`\n`,_jsx(ResponseField,{name:`input_amount`,type:`string`,id:`param-input-amount-4`,children:_jsx(_components.p,{children:`Quoted input as a decimal string in the source token’s standard unit.`})}),`\n`,_jsx(ResponseField,{name:`estimated_output_amount`,type:`string`,id:`param-estimated-output-amount`,children:_jsx(_components.p,{children:`Estimated output as a decimal string in the destination token’s standard unit.`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the quote was created.`})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error handling`}),`\n`,_jsx(_components.p,{children:`The request rejects when:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`the route is unsupported`}),`\n`,_jsx(_components.li,{children:`the source and destination are the same asset on the same chain`}),`\n`,_jsx(_components.li,{children:`the source and destination are not both mainnet or both testnet`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Create a deposit account`,icon:`arrow-right-to-bracket`,href:`/wallets/funding/crypto-deposits/create-deposit-account`,children:_jsx(_components.p,{children:`Get deposit addresses for a destination wallet`})}),_jsx(Card,{title:`Track orders`,icon:`arrows-rotate`,href:`/wallets/funding/crypto-deposits/orders`,children:_jsx(_components.p,{children:`Optionally check conversion status after a deposit`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ChainIdentifier,AssetIdentifier,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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Quote a crypto deposit route","sidebarTitle":"Quote a route","og:title":"Crypto deposit quotes","description":"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.","keywords":["crypto deposit","quote","getQuote","deposit route","estimated output","deposit account"],"href":"/wallets/funding/crypto-deposits/quotes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error handling","slug":"error-handling","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"multiViewItems":[{"title":"React","content":"Use `getQuote` from the `useHeadlessCryptoDeposit` hook.\n\n\u003cWarning>\n `useHeadlessCryptoDeposit` is experimental and requires `@privy-io/react-auth` 3.46.0 or later.\n The interface may change without a major SDK version bump.\n\u003c/Warning>\n\n```tsx {skip-check} theme={\"system\"}\nimport {useHeadlessCryptoDeposit} from '@privy-io/react-auth';\n\nconst {getQuote} = useHeadlessCryptoDeposit();\n\n// Quote 1.5 USDC on Base delivered as PathUSD on Tempo\nconst quote = await getQuote({\n source: {chain: 'base', asset: 'usdc'},\n destination: {chain: 'tempo', asset: 'pathusd'},\n inputAmount: '1.5'\n});\n\nconsole.log(quote.estimated_output_amount);\n```\n\n**Parameters**\n\n`getQuote` accepts an object with the following fields:\n\n\u003cParamField body=\"source\" type=\"object\" required>\n Asset the user would deposit. Unlike create, both `chain` and `asset` are required.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"source.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"source.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"destination\" type=\"object\" required>\n Asset delivered to the destination wallet.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"destination.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"destination.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"inputAmount\" type=\"string\">\n Amount as a decimal string in the source token’s standard unit, such as `'1.5'` for 1.5 USDC. Omit\n to quote approximately \\$50 of the source asset.\n\u003c/ParamField>\n\n\u003cParamField body=\"slippageBps\" type=\"number\">\n Slippage tolerance in basis points.\n\u003c/ParamField>\n\n**Returns**\n\n`getQuote` returns a Promise for a [quote](#response).\n","icon":"react","id":"react","active":true},{"title":"React Native","content":"Use `getQuote` from the `useHeadlessCryptoDeposit` hook.\n\n\u003cWarning>\n `useHeadlessCryptoDeposit` is experimental and requires `@privy-io/expo` 0.75.0 or later. The\n interface may change without a major SDK version bump.\n\u003c/Warning>\n\n```tsx {skip-check} theme={\"system\"}\nimport {useHeadlessCryptoDeposit} from '@privy-io/expo';\n\nconst {getQuote} = useHeadlessCryptoDeposit();\n\n// Quote 1.5 USDC on Base delivered as PathUSD on Tempo\nconst quote = await getQuote({\n source: {chain: 'base', asset: 'usdc'},\n destination: {chain: 'tempo', asset: 'pathusd'},\n inputAmount: '1.5'\n});\n\nconsole.log(quote.estimated_output_amount);\n```\n\n**Parameters**\n\n`getQuote` accepts an object with the following fields:\n\n\u003cParamField body=\"source\" type=\"object\" required>\n Asset the user would deposit. Unlike create, both `chain` and `asset` are required.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"source.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"source.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"destination\" type=\"object\" required>\n Asset delivered to the destination wallet.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"destination.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"destination.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"inputAmount\" type=\"string\">\n Amount as a decimal string in the source token’s standard unit, such as `'1.5'` for 1.5 USDC. Omit\n to quote approximately \\$50 of the source asset.\n\u003c/ParamField>\n\n\u003cParamField body=\"slippageBps\" type=\"number\">\n Slippage tolerance in basis points.\n\u003c/ParamField>\n\n**Returns**\n\n`getQuote` returns a Promise for a [quote](#response).\n","icon":"react","id":"react-native","active":false},{"title":"NodeJS","content":"Use `privy.wallets().depositAccounts.crypto.quote`. Requires `@privy-io/node` 0.35.0 or later.\n\n```ts {skip-check} theme={\"system\"}\nimport {PrivyClient} from '@privy-io/node';\n\nconst privy = new PrivyClient({\n appId: 'insert-your-app-id',\n appSecret: 'insert-your-app-secret'\n});\n\n// Quote 1.5 USDC on Base delivered as PathUSD on Tempo\nconst quote = await privy.wallets().depositAccounts.crypto.quote({\n source: {chain: 'base', asset: 'usdc'},\n destination: {chain: 'tempo', asset: 'pathusd'},\n input_amount: '1.5'\n});\n\nconsole.log(quote.estimated_output_amount);\n```\n\n**Parameters**\n\n`quote` accepts an object with the following fields:\n\n\u003cParamField body=\"source\" type=\"object\" required>\n Asset the user would deposit. Unlike create, both `chain` and `asset` are required.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"source.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"source.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"destination\" type=\"object\" required>\n Asset delivered to the destination wallet.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"destination.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"destination.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"input_amount\" type=\"string\">\n Amount as a decimal string in the source token’s standard unit, such as `'1.5'` for 1.5 USDC. Omit\n to quote approximately \\$50 of the source asset.\n\u003c/ParamField>\n\n\u003cParamField body=\"slippage_bps\" type=\"number\">\n Slippage tolerance in basis points.\n\u003c/ParamField>\n\n**Returns**\n\n`quote` returns a [quote](#response).\n","icon":"node-js","id":"nodejs","active":false},{"title":"REST API","content":"Make a `POST` request to `/v1/deposit_accounts/crypto/quote` with the app secret. Apps on platforms without a Privy SDK can call this endpoint from any HTTP client.\n\n\u003cCodeGroup>\n ```bash cURL theme={\"system\"}\n curl --request POST https://api.privy.io/v1/deposit_accounts/crypto/quote \\\n -u \"\u003cyour-privy-app-id>:\u003cyour-privy-app-secret>\" \\\n -H \"privy-app-id: \u003cyour-privy-app-id>\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"source\": {\"chain\": \"base\", \"asset\": \"usdc\"},\n \"destination\": {\"chain\": \"tempo\", \"asset\": \"pathusd\"},\n \"input_amount\": \"1.5\"\n }'\n ```\n\n ```python Python theme={\"system\"}\n import os\n import requests\n\n app_id = os.environ[\"PRIVY_APP_ID\"]\n app_secret = os.environ[\"PRIVY_APP_SECRET\"]\n\n response = requests.post(\n \"https://api.privy.io/v1/deposit_accounts/crypto/quote\",\n auth=(app_id, app_secret),\n headers={\"privy-app-id\": app_id},\n json={\n \"source\": {\"chain\": \"base\", \"asset\": \"usdc\"},\n \"destination\": {\"chain\": \"tempo\", \"asset\": \"pathusd\"},\n \"input_amount\": \"1.5\",\n },\n )\n response.raise_for_status()\n quote = response.json()\n ```\n\u003c/CodeGroup>\n\n**Parameters**\n\nThe request body accepts the following fields. See the [API reference](/api-reference/crypto-deposits/quote) for the complete schema.\n\n\u003cParamField body=\"source\" type=\"object\" required>\n Asset the user would deposit. Unlike create, both `chain` and `asset` are required.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"source.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"source.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"destination\" type=\"object\" required>\n Asset delivered to the destination wallet.\n\n \u003cExpandable title=\"properties\">\n \u003cParamField body=\"destination.chain\" type=\"string\" required>\n \u003cChainIdentifier />\n \u003c/ParamField>\n\n \u003cParamField body=\"destination.asset\" type=\"string\" required>\n \u003cAssetIdentifier />\n \u003c/ParamField>\n \u003c/Expandable>\n\u003c/ParamField>\n\n\u003cParamField body=\"input_amount\" type=\"string\">\n Amount as a decimal string in the source token’s standard unit, such as `\"1.5\"` for 1.5 USDC. Omit\n to quote approximately \\$50 of the source asset.\n\u003c/ParamField>\n\n\u003cParamField body=\"slippage_bps\" type=\"number\">\n Slippage tolerance in basis points.\n\u003c/ParamField>\n","icon":"terminal","id":"rest-api","active":false}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/privy-c2af3412/9a6cfa36ced76db0/welcome.js","/_mintlify/custom/privy-c2af3412/1af79d46bd64cd8b/fullstory.js","/_mintlify/custom/privy-c2af3412/e4d91321024fde21/recipes/recipes-search.js","/_mintlify/custom/privy-c2af3412/d31c5451398ab22c/check-links.js"],"subdomain":"privy-c2af3412","siteName":"Privy Docs","title":"Crypto deposit quotes","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T21:08:32.577Z","originalFileLocation":"wallets/funding/crypto-deposits/quotes.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=\"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Privy Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_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/privy-c2af3412/bJgmnaRQwH8sO8y5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Crypto deposit quotes\">\u003cmeta data-mint-head property=\"og:description\" content=\"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Privy Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://assets.privy.io/docs-og.png\">\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=\"Privy Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://assets.privy.io/docs-og.png\">\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/privy-c2af3412/bJgmnaRQwH8sO8y5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Privy Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#010110\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wallets/funding/crypto-deposits/quotes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.privy.io/#organization\",\"name\":\"Privy\",\"url\":\"https://www.privy.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.privy.io/docs-og.png\"},\"sameAs\":[\"https://x.com/privy_io\",\"https://github.com/privy-io\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.privy.io#website\",\"name\":\"Privy Docs\",\"url\":\"https://docs.privy.io\",\"publisher\":{\"@id\":\"https://www.privy.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes#webpage\",\"url\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes\",\"name\":\"Quote a crypto deposit route\",\"description\":\"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\",\"dateModified\":\"2026-11-13T21:08:32.577Z\",\"isPartOf\":{\"@id\":\"https://docs.privy.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Crypto deposits\",\"item\":\"https://docs.privy.io/wallets/funding/crypto-deposits/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quote a crypto deposit route\",\"item\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes#article\",\"headline\":\"Quote a crypto deposit route\",\"name\":\"Quote a crypto deposit route\",\"description\":\"Preview the amount a crypto deposit delivers after conversion, before creating a deposit address.\",\"url\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.privy.io/wallets/funding/crypto-deposits/quotes#webpage\"},\"image\":\"https://assets.privy.io/docs-og.png\",\"dateModified\":\"2026-11-13T21:08:32.577Z\",\"keywords\":\"crypto deposit, quote, getQuote, deposit route, estimated output, deposit account\",\"publisher\":{\"@id\":\"https://www.privy.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.privy.io#website\"}}]}\u003c/script>","agentPointerHref":"/wallets/funding/crypto-deposits/quotes.md","siteName":"Privy Docs","nav":{"global":null,"tabs":[{"tab":"Basics","pages":[{"title":"Basics","href":"/basics/get-started/about"}]},{"tab":"Wallets","menu":[{"item":"Overview","pages":[{"title":"Overview","href":"/wallets/overview"}]},{"item":"Embedded wallets","pages":[{"title":"Embedded wallets","href":"/wallets/overview/embedded"}]},{"item":"Agent wallets","pages":[{"title":"Agent wallets","href":"/agent-wallets/overview"}]},{"item":"Organization wallets","pages":[{"title":"Organization wallets","href":"/organizations/overview"}]},{"item":"External wallets","pages":[{"title":"External wallets","href":"/wallets/connectors/overview"}]},{"item":"Signatures and transactions","pages":[{"title":"Signatures and transactions","href":"/wallets/signatures-and-transactions"}]},{"item":"Balances and webhooks","pages":[{"title":"Balances and webhooks","href":"/wallets/gas-and-asset-management/assets/overview"}]},{"item":"Gas and fee management","pages":[{"title":"Gas and fee management","href":"/wallets/gas-and-asset-management/gas/overview"}]}],"pages":[{"title":"Wallets","href":"/wallets/overview"}]},{"tab":"Financial flows","menu":[{"item":"Overview","pages":[{"title":"Overview","href":"/financial-flows/overview"}]},{"item":"Deposits","groups":[{"group":"Deposits","pages":[{"title":"Deposits","sidebarTitle":"Overview","href":"/financial-flows/deposits/overview"},{"title":"Configuration","href":"/financial-flows/deposits/configuration"}]},{"group":"Fiat deposits","pages":[{"title":"Fiat deposits","sidebarTitle":"Overview","href":"/wallets/funding/fiat-deposits/overview"},{"title":"Setup","href":"/wallets/funding/fiat-deposits/setup"},{"title":"Create a deposit account","href":"/wallets/funding/fiat-deposits/create-deposit-account"},{"title":"Get deposit accounts","href":"/wallets/funding/fiat-deposits/get-deposit-accounts"},{"title":"Deposit lifecycle","href":"/wallets/funding/fiat-deposits/deposit-lifecycle"}]},{"group":"Crypto deposits","pages":[{"title":"Crypto deposits","sidebarTitle":"Overview","href":"/wallets/funding/crypto-deposits/overview"},{"title":"Set up crypto deposits","sidebarTitle":"Setup","href":"/wallets/funding/crypto-deposits/setup"},{"title":"Create a crypto deposit account","sidebarTitle":"Create a deposit account","description":"Get reusable crypto deposit addresses for a wallet from React, React Native, NodeJS, or the REST API.","href":"/wallets/funding/crypto-deposits/create-deposit-account"},{"title":"Quote a crypto deposit route","sidebarTitle":"Quote a route","href":"/wallets/funding/crypto-deposits/quotes"},{"title":"Track crypto deposit orders","sidebarTitle":"Track orders","description":"Optionally check whether a crypto deposit has been converted and delivered, by order ID or by timestamp.","href":"/wallets/funding/crypto-deposits/orders"},{"title":"Crypto deposits FAQ","sidebarTitle":"FAQ","href":"/wallets/funding/crypto-deposits/faq"}]},{"group":"Consumer onramp modal","pages":[{"title":"Consumer onramp modal","sidebarTitle":"Overview","href":"/wallets/funding/consumer-onramp-modal/overview"},{"title":"Set up the consumer onramp modal","sidebarTitle":"Setup","href":"/wallets/funding/consumer-onramp-modal/setup"}]}]},{"item":"Payouts","pages":[{"title":"Payouts","href":"/financial-flows/payouts/overview"}]},{"item":"Earn","pages":[{"title":"Earn","href":"/wallets/actions/earn/overview"}]},{"item":"Cards","pages":[{"title":"Cards","href":"/financial-flows/cards/overview"}]},{"item":"Trade","pages":[{"title":"Trade","href":"/wallets/actions/swap/overview"}]},{"item":"Monetization","pages":[{"title":"Monetization","href":"/financial-flows/monetization"}]},{"item":"Treasury management","pages":[{"title":"Treasury management","href":"/treasury-management/overview"}]},{"item":"Private transactions","pages":[{"title":"Private transactions","href":"/financial-flows/private-transactions"}]}]},{"tab":"Controls and policies","menu":[{"item":"Controls","pages":[{"title":"Controls","href":"/controls/overview"}]},{"item":"Policies","pages":[{"title":"Policies","href":"/controls/policies/overview"}]},{"item":"Manual approvals","pages":[{"title":"Manual approvals","href":"/controls/dashboard/overview"}]}],"pages":[{"title":"Controls and policies","href":"/controls/overview"}]},{"tab":"Identity","menu":[{"item":"Authentication","pages":[{"title":"Authentication","href":"/authentication/overview"}]},{"item":"Users","pages":[{"title":"Users","href":"/user-management/users/overview"}]},{"item":"KYC and KYB","pages":[{"title":"KYC and KYB","href":"/kyc-kyb/overview"}]}],"pages":[{"title":"Identity","href":"/authentication/overview"}]},{"tab":"Security","pages":[{"title":"Security","href":"/security/overview"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes/overview"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Crypto deposit quotes","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}