If you use Trails hooks directly, keep QueryClientProvider and TrailsProvider, but you can still remove WagmiProvider unless the rest of your app uses wagmi.
For more advanced wallet integrations, you can create your own adapter. 0.16 also exports a simple evmAdapter helper from 0xtrails for EIP-1193-style wallets.
Restrict widget from.currency to fiat and from.token to ERC-20 tokens.
Improve token list resolution, origin/destination token selection, custom token search, and default token selection.
Update public exports from 0xtrails, including query hooks, explorer helper, country hooks, indexer gateway hook, intent receipt monitor, action builders, dynamic/self sentinels, and prepare-send types.
Update SOMI token logo to the new Somnia branding.
Wagmi is no longer part of the default Trails runtime setup. Apps that need to share an existing wagmi session must install and configure @0xtrails/adapter-wagmi.
Default wagmi connector helpers were removed.
Xai and Blast were removed from SDK chain support.
Widget integration typing is stricter: from.currency is fiat-only and from.token is ERC-20-only.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Trails","colors":{"primary":"#6C00F6","light":"#CDA7FF","dark":"#3A0084"},"logo":{"light":"https://mintcdn.com/anypay/9BUzfkwu3tMQ5zjL/logo/light-mode.svg?fit=max\u0026auto=format\u0026n=9BUzfkwu3tMQ5zjL\u0026q=85\u0026s=2fe145d05c9d9e96487d0e94c6d19bf9","dark":"https://mintcdn.com/anypay/9BUzfkwu3tMQ5zjL/logo/dark-mode.svg?fit=max\u0026auto=format\u0026n=9BUzfkwu3tMQ5zjL\u0026q=85\u0026s=eb87b8a672b2d6d68c43f3adc6a4aea1"},"favicon":"https://mintcdn.com/anypay/9BUzfkwu3tMQ5zjL/favicon.ico?fit=max\u0026auto=format\u0026n=9BUzfkwu3tMQ5zjL\u0026q=85\u0026s=b0d06b7dfa121ca7eec078a0a1af82a9","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://dashboard.trails.build","label":"Dashboard"},{"href":"https://app.trails.build/explorer","label":"Explorer"},{"href":"https://t.me/build_with_trails","label":"Support"}]},"footer":{"socials":{"website":"https://trails.build","x":"https://x.com/TrailsHQ","telegram":"https://t.me/build_with_trails","linkedin":"https://www.linkedin.com/showcase/trailshq"}},"seo":{"metatags":{"canonical":"https://docs.trails.build"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Demo Playground","icon":"square-terminal","href":"https://demo.trails.build/widget"},{"anchor":"Trails Status","icon":"heart-pulse","href":"https://status.trails.build"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anypay","hasAudioNarration":false,"actualSubdomain":"anypay","customDomains":["docs.trails.build"],"gitSource":{"type":"github","owner":"0xsequence","repo":"trails-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":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":"6ac69e4e059039e5661c5698","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API reference","count":39},{"language":"default","tag":"SDK","count":28},{"language":"default","tag":"SDK Documentation","count":28},{"language":"default","tag":"Documentation","count":25},{"language":"default","tag":"Intents","count":12},{"language":"default","tag":"Earn","count":10},{"language":"default","tag":"Architecture","count":8},{"language":"default","tag":"Adapters","count":7},{"language":"default","tag":"Composable Actions","count":7},{"language":"default","tag":"Examples","count":6}]},"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":"llms-txt-v2","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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"div.sm\\:flex:has(a[href*=\"mintlify.com/preview-request\"]){display:none!important}a[href*=\"mintlify.com/preview-request\"]{display:none!important}div.sm\\:flex:has(a[href*=\"utm_source=undefined\"]){display:none!important}#topbar-cta-button .bg-primary-dark{background-color:#3a5bff!important}#topbar-cta-button:hover .bg-primary-dark{opacity:0.9!important}.home-hero{min-height:26rem;overflow:hidden;background-image:url(\"/images/Trails - Pattern White.svg\");background-repeat:repeat;background-size:400px 400px;background-color:#f8fafc}.home-hero__overlay{background:linear-gradient(\n to bottom,\n rgba(255, 255, 255, 0.85),\n rgba(255, 255, 255, 0.5)\n )}.home-hero__content{text-align:center;padding:0 1rem}"}],"page":{"pagePath":"sdk/changelog/0xtrails-0.16.0","slug":"/sdk/changelog/0xtrails-0.16.0","pageMetadata":{"title":"[email protected]","description":"Release notes and migration notes for the 0xtrails SDK v0.16.0","href":"/sdk/changelog/0xtrails-0.16.0"},"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: \"Release notes and migration notes for the 0xtrails SDK v0.16.0\"\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={code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.em,{children:`Released May 21, 2026`})}),`\n`,_jsxs(_components.p,{children:[`This release covers changes after `,_jsx(_components.code,{children:`[email protected]`}),` through `,_jsx(_components.code,{children:`[email protected]`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`migration-notes`,children:`Migration Notes`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`In 0.16, Trails is independent of wagmi. You no longer need to configure wagmi just to render the Trails widget.`})}),`\n`,_jsx(Heading,{level:`3`,id:`if-you-only-used-wagmi-for-trails`,children:`If you only used wagmi for Trails`}),`\n`,_jsx(_components.p,{children:`Remove your wagmi dependency and provider setup. Trails will use its built-in EVM runtime by default.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`diff`,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:`diff`,children:_jsxs(_components.code,{language:`diff`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-import { QueryClient, QueryClientProvider } from '@tanstack/react-query'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` import { TrailsWidget } from '0xtrails'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-import { WagmiProvider, createConfig, http } from 'wagmi'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-import { mainnet, polygon } from 'wagmi/chains'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-const wagmiConfig = createConfig({`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- chains: [mainnet, polygon],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- transports: {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- [mainnet.id]: http(),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- [polygon.id]: http(),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`-const queryClient = new QueryClient()`})}),`\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:` export function App() {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` return (`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \u003cWagmiProvider config={wagmiConfig}>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \u003cQueryClientProvider client={queryClient}>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \u003cTrailsWidget apiKey=\"YOUR_TRAILS_API_KEY\" renderInline />`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \u003c/QueryClientProvider>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \u003c/WagmiProvider>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#B5CEA8`},children:`+ \u003cTrailsWidget apiKey=\"YOUR_TRAILS_API_KEY\" renderInline />`})}),`\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`,_jsxs(_components.p,{children:[`If you use Trails hooks directly, keep `,_jsx(_components.code,{children:`QueryClientProvider`}),` and `,_jsx(_components.code,{children:`TrailsProvider`}),`, but you can still remove `,_jsx(_components.code,{children:`WagmiProvider`}),` unless the rest of your app uses wagmi.`]}),`\n`,_jsx(Heading,{level:`3`,id:`if-your-app-already-uses-wagmi`,children:`If your app already uses wagmi`}),`\n`,_jsx(_components.p,{children:`Install the wagmi adapter and pass the same wagmi config to both wagmi and Trails.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @0xtrails/adapter-wagmi`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TrailsProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TrailsWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0xtrails'`})]}),`\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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wagmiAdapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@0xtrails/adapter-wagmi'`})]}),`\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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WagmiProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'wagmi'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_TRAILS_API_KEY'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` adapters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`wagmiAdapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wagmiConfig`}),_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:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` App`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_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\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`WagmiProvider`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wagmiConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrailsProvider`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trailsApiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`adapters`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrailsWidget`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` renderInline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrailsProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`WagmiProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},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`,_jsxs(_components.p,{children:[`Using the same `,_jsx(_components.code,{children:`wagmiConfig`}),` instance lets Trails share the host app’s wagmi session.`]}),`\n`,_jsx(Heading,{level:`3`,id:`advanced-custom-adapters`,children:`Advanced: custom adapters`}),`\n`,_jsxs(_components.p,{children:[`For more advanced wallet integrations, you can create your own adapter. 0.16 also exports a simple `,_jsx(_components.code,{children:`evmAdapter`}),` helper from `,_jsx(_components.code,{children:`0xtrails`}),` for EIP-1193-style wallets.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TrailsWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`evmAdapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0xtrails'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` adapters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` evmAdapter`}),_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\":`#9CDCFE`},children:` wallets:`}),_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\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'custom-wallet'`}),_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\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Custom Wallet'`}),_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\":`#9CDCFE`},children:` provider:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` customEip1193Provider`}),_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\":`#9CDCFE`},children:` iconUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/custom-wallet.svg'`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` App`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrailsWidget`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TRAILS_API_KEY\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` adapters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`adapters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` renderInline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`highlights`,children:`Highlights`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Trails no longer requires wagmi for the default widget/runtime path; wagmi support is available through `,_jsx(_components.code,{children:`@0xtrails/adapter-wagmi`}),`.`]}),`\n`,_jsx(_components.li,{children:`Quote handling now supports passthrough quote, fee, and approval data from the Trails API.`}),`\n`,_jsx(_components.li,{children:`Fund flows now support exact-output quoting and cleaner fiat defaults.`}),`\n`,_jsx(_components.li,{children:`Widget filtering, wallet selection, and exchange-funding UX were improved.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`new-package`,children:`New Package`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Add `,_jsx(_components.code,{children:`@0xtrails/adapter-wagmi`}),` for apps that already use wagmi. Wagmi is now explicit and opt-in.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`features`,children:`Features`}),`\n`,_jsx(Heading,{level:`3`,id:`quotes-intents-and-transactions`,children:`Quotes, Intents, and Transactions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Add passthrough quote, fee, and approval support from the API.`}),`\n`,_jsx(_components.li,{children:`Add exact-output fund flow support.`}),`\n`,_jsxs(_components.li,{children:[`Pass widget `,_jsx(_components.code,{children:`mode`}),` through `,_jsx(_components.code,{children:`QuoteIntent`}),`.`]}),`\n`,_jsx(_components.li,{children:`Export composable action resolver APIs.`}),`\n`,_jsx(_components.li,{children:`Add public client hooks/getters for supported chains and chain-scoped clients.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`widget-and-checkout-ux`,children:`Widget and Checkout UX`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Add `,_jsx(_components.code,{children:`supportedChains`}),` and `,_jsx(_components.code,{children:`supportedTokensByChain`}),` filtering for widget integrations.`]}),`\n`,_jsx(_components.li,{children:`Add recent chains to the chain selector.`}),`\n`,_jsx(_components.li,{children:`Redirect WalletConnect funding flows to token selection and add a disconnect action.`}),`\n`,_jsx(_components.li,{children:`Show WalletConnect wallets when direct-transfer is hidden from fund methods.`}),`\n`,_jsx(_components.li,{children:`Start fiat fund amount empty instead of prefilled.`}),`\n`,_jsx(_components.li,{children:`Improve quote input error state with a dedicated error block.`}),`\n`,_jsx(_components.li,{children:`Remove origin payment estimation from UI.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`exchange-/-onramp`,children:`Exchange / Onramp`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Add Bluvo exchange integration.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`improvements`,children:`Improvements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Restrict widget `,_jsx(_components.code,{children:`from.currency`}),` to fiat and `,_jsx(_components.code,{children:`from.token`}),` to ERC-20 tokens.`]}),`\n`,_jsx(_components.li,{children:`Improve token list resolution, origin/destination token selection, custom token search, and default token selection.`}),`\n`,_jsxs(_components.li,{children:[`Update public exports from `,_jsx(_components.code,{children:`0xtrails`}),`, including query hooks, explorer helper, country hooks, indexer gateway hook, intent receipt monitor, action builders, dynamic/self sentinels, and prepare-send types.`]}),`\n`,_jsx(_components.li,{children:`Update SOMI token logo to the new Somnia branding.`}),`\n`,_jsx(_components.li,{children:`Update the SDK logo.`}),`\n`,_jsx(_components.li,{children:`Update selected-wallet styling for the OMS theme.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`fixes`,children:`Fixes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Fix send transaction destination context.`}),`\n`,_jsx(_components.li,{children:`Fix swap funding method selection.`}),`\n`,_jsx(_components.li,{children:`Fix fiat fund flow so the amount starts empty.`}),`\n`,_jsx(_components.li,{children:`Fix WalletConnect wallet visibility when direct-transfer is hidden from fund methods.`}),`\n`,_jsx(_components.li,{children:`Avoid ConnectKit button rendering in Privy wallet modes.`}),`\n`,_jsxs(_components.li,{children:[`Guard v1-only fields in `,_jsx(_components.code,{children:`depositSignature`}),`.`]}),`\n`,_jsx(_components.li,{children:`Deprecate v1 gasless helpers.`}),`\n`,_jsx(_components.li,{children:`Fix token and balance query handling around supported chain/token filters.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`breaking-changes`,children:`Breaking Changes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Wagmi is no longer part of the default Trails runtime setup. Apps that need to share an existing wagmi session must install and configure `,_jsx(_components.code,{children:`@0xtrails/adapter-wagmi`}),`.`]}),`\n`,_jsx(_components.li,{children:`Default wagmi connector helpers were removed.`}),`\n`,_jsx(_components.li,{children:`Xai and Blast were removed from SDK chain support.`}),`\n`,_jsxs(_components.li,{children:[`Widget integration typing is stricter: `,_jsx(_components.code,{children:`from.currency`}),` is fiat-only and `,_jsx(_components.code,{children:`from.token`}),` is ERC-20-only.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"[email protected]","description":"Release notes and migration notes for the 0xtrails SDK v0.16.0","href":"/sdk/changelog/0xtrails-0.16.0"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Migration Notes","slug":"migration-notes","depth":2,"children":[{"title":"If you only used wagmi for Trails","slug":"if-you-only-used-wagmi-for-trails","depth":3,"children":[]},{"title":"If your app already uses wagmi","slug":"if-your-app-already-uses-wagmi","depth":3,"children":[]},{"title":"Advanced: custom adapters","slug":"advanced-custom-adapters","depth":3,"children":[]}]},{"title":"Highlights","slug":"highlights","depth":2,"children":[]},{"title":"New Package","slug":"new-package","depth":2,"children":[]},{"title":"Features","slug":"features","depth":2,"children":[{"title":"Quotes, Intents, and Transactions","slug":"quotes-intents-and-transactions","depth":3,"children":[]},{"title":"Widget and Checkout UX","slug":"widget-and-checkout-ux","depth":3,"children":[]},{"title":"Exchange / Onramp","slug":"exchange-/-onramp","depth":3,"children":[]}]},{"title":"Improvements","slug":"improvements","depth":2,"children":[]},{"title":"Fixes","slug":"fixes","depth":2,"children":[]},{"title":"Breaking Changes","slug":"breaking-changes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"anypay","siteName":"Trails","title":"[email protected] - Trails","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-21T14:57:16.904Z","originalFileLocation":"sdk/changelog/0xtrails-0.16.0.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Release notes and migration notes for the 0xtrails SDK v0.16.0\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trails\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_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/anypay/muU5OqoOCUuTIbFo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"[email protected] - Trails\">\u003cmeta data-mint-head property=\"og:description\" content=\"Release notes and migration notes for the 0xtrails SDK v0.16.0\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trails\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trails.build/sdk/changelog/0xtrails-0.16.0\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anypay.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=0xtrails%400.16.0\u0026amp;description=Release+notes+and+migration+notes+for+the+0xtrails+SDK+v0.16.0\u0026amp;theme=d06d7be2d829d833a0a2519a\u0026amp;signature=29832db9f0af5b9ccc212f81f469bf4c107d0ff8399d5cc0c59766d2fb3e037b\">\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=\"[email protected] - Trails\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Release notes and migration notes for the 0xtrails SDK v0.16.0\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anypay.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=0xtrails%400.16.0\u0026amp;description=Release+notes+and+migration+notes+for+the+0xtrails+SDK+v0.16.0\u0026amp;theme=d06d7be2d829d833a0a2519a\u0026amp;signature=29832db9f0af5b9ccc212f81f469bf4c107d0ff8399d5cc0c59766d2fb3e037b\">\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/anypay/muU5OqoOCUuTIbFo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trails\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6C00F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trails.build/sdk/changelog/0xtrails-0.16.0\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/changelog/0xtrails-0.16.0.md\">","agentPointerHref":"/sdk/changelog/0xtrails-0.16.0.md","siteName":"Trails","nav":{"global":{"anchors":[{"anchor":"Demo Playground","icon":"square-terminal","href":"https://demo.trails.build/widget"},{"anchor":"Trails Status","icon":"heart-pulse","href":"https://status.trails.build"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Welcome","pages":[{"title":"What is Trails?","href":"/intro"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/get-started"}]},{"group":"Use Cases","pages":[{"title":"Pay","icon":"bolt","href":"/use-cases/pay"},{"title":"Swap","icon":"arrows-rotate","href":"/use-cases/swap"},{"title":"Fund","icon":"money-bill","href":"/use-cases/fund"},{"title":"Earn","icon":"wallet","href":"/use-cases/earn"},{"title":"Composable Actions","icon":"layer-group","href":"/use-cases/composable-actions"},{"title":"Cross-Chain Execution","icon":"shuffle","href":"/overview/cross-chain-execution"}]},{"group":"Examples","pages":[{"title":"Gasless Transactions","icon":"bolt","href":"/examples/gasless"},{"title":"Wallet Compatibility","icon":"wallet","href":"/examples/wallet-compatibility"},{"title":"Intent \u0026 Transaction History","icon":"clock","href":"/examples/transaction-history"},{"title":"Tokens, Chains \u0026 Prices","icon":"coins","href":"/examples/tokens-chains-prices"},{"title":"Refunds \u0026 Recovery","icon":"rotate-left","href":"/examples/refunds"},{"title":"x402 Payments","icon":"bolt","href":"/examples/x402"}]},{"group":"Architecture","pages":[{"title":"How Trails Works","icon":"sitemap","href":"/architecture/how-it-works"},{"title":"Protocol Architecture","icon":"diagram-project","href":"/architecture/protocol"},{"title":"HydrateProxy and Composable Actions","icon":"bolt","href":"/architecture/v1-5"},{"title":"Pricing \u0026 Fees","icon":"badge-dollar","href":"/architecture/pricing-fees"},{"title":"Pay Gas with Any Token","icon":"wind","href":"/architecture/alt-fee-tokens"},{"title":"Liquidity Sources","icon":"droplet","href":"/architecture/unified-liquidity"},{"title":"Edge \u0026 Alternative VMs","icon":"circle-nodes","href":"/architecture/edge-alt-vms"},{"title":"Trails Contracts","icon":"file-contract","href":"/architecture/smart-contracts"}]},{"group":"Resources","pages":[{"title":"Supported Chains","icon":"network-wired","href":"/resources/supported-chains"},{"title":"LLM Integrations","sidebarTitle":"LLM Integrations","icon":"robot","href":"/resources/llm-integration"},{"title":"v1.5 Migration Guide","icon":"arrow-up-right-dots","href":"/resources/v1-5-migration"}]}]},{"tab":"SDK","groups":[{"group":"SDK Documentation","pages":[{"title":"Getting Started","sidebarTitle":"Getting Started","href":"/sdk/get-started"},{"title":"Configuration","href":"/sdk/configuration"},{"title":"Hooks","sidebarTitle":"Hooks","href":"/sdk/hooks"},{"group":"Adapters","pages":[{"title":"Adapters Overview","sidebarTitle":"Overview","href":"/sdk/adapters/overview"},{"title":"wagmi Adapter","sidebarTitle":"Wagmi","href":"/sdk/adapters/wagmi"},{"title":"Solana Adapter","sidebarTitle":"Solana","href":"/sdk/adapters/solana"},{"title":"Tron Adapter","sidebarTitle":"Tron","href":"/sdk/adapters/tron"},{"title":"EIP-1193 Adapter","sidebarTitle":"EIP-1193 (evmAdapter)","href":"/sdk/adapters/eip-1193"},{"title":"Using Dynamic","sidebarTitle":"Dynamic","href":"/sdk/adapters/dynamic"},{"title":"Using thirdweb","sidebarTitle":"Thirdweb","href":"/sdk/adapters/thirdweb"}]},{"group":"Composable Actions","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/sdk/composable-actions/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/sdk/composable-actions/quickstart"},{"title":"Building Actions","sidebarTitle":"Building Actions","href":"/sdk/composable-actions/building-actions"},{"title":"Dynamic Values","sidebarTitle":"Dynamic Values","href":"/sdk/composable-actions/dynamic-values"},{"title":"Markets \u0026 Providers","sidebarTitle":"Markets \u0026 Providers","href":"/sdk/composable-actions/markets-and-providers"},{"title":"ERC-20 Helpers","sidebarTitle":"ERC-20 Helpers","href":"/sdk/composable-actions/erc20-helpers"},{"title":"Supported Chains","sidebarTitle":"Supported Chains","href":"/sdk/composable-actions/supported-chains"}]},{"group":"Modes","pages":[{"title":"Pay","sidebarTitle":"Pay","href":"/sdk/modes/pay"},{"title":"Fund","sidebarTitle":"Fund","href":"/sdk/modes/fund"},{"title":"Swap","sidebarTitle":"Swap","href":"/sdk/modes/swap"},{"title":"Earn","sidebarTitle":"Earn","href":"/sdk/modes/earn"},{"title":"Withdraw","sidebarTitle":"Withdraw","href":"/sdk/modes/withdraw"}]},{"title":"Theming and Customization","sidebarTitle":"Theming \u0026 Customization","href":"/sdk/theming"},{"title":"Customization","sidebarTitle":"Customization","href":"/sdk/customization"},{"title":"Stripe Onramp","href":"/sdk/onramp/stripe"},{"title":"Route Providers","href":"/sdk/quote-providers"},{"title":"Tokens \u0026 Chains","href":"/sdk/tokens-and-chains"},{"title":"Changelog","href":"/sdk/changelog"}]}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Getting Started","href":"/api-reference/introduction"},{"title":"Trails API SDK","href":"/api-reference/trails-api-sdk"}]},{"group":"Intents","pages":[{"title":"QuoteIntent","openapi":"trails-api.gen.json post /rpc/Trails/QuoteIntent","href":"/api-reference/endpoints/quote-intent"},{"title":"QuoteIntentEdge","openapi":"trails-api.gen.json post /rpc/Trails/QuoteIntentEdge","href":"/api-reference/endpoints/quote-intent-edge"},{"title":"CommitIntent","openapi":"trails-api.gen.json post /rpc/Trails/CommitIntent","href":"/api-reference/endpoints/commit-intent"},{"title":"ExecuteIntent","openapi":"trails-api.gen.json post /rpc/Trails/ExecuteIntent","href":"/api-reference/endpoints/execute-intent"},{"title":"ExecuteIntentEdge","openapi":"trails-api.gen.json post /rpc/Trails/ExecuteIntentEdge","href":"/api-reference/endpoints/execute-intent-edge"},{"title":"GetIntentReceipt","openapi":"trails-api.gen.json post /rpc/Trails/GetIntentReceipt","href":"/api-reference/endpoints/get-intent-receipt"},{"title":"WaitIntentReceipt","openapi":"trails-api.gen.json post /rpc/Trails/WaitIntentReceipt","href":"/api-reference/endpoints/wait-intent-receipt"},{"title":"GetEdgeStatus","openapi":"trails-api.gen.json post /rpc/Trails/GetEdgeStatus","href":"/api-reference/endpoints/get-edge-status"},{"title":"GetEdges","openapi":"trails-api.gen.json post /rpc/Trails/GetEdges","href":"/api-reference/endpoints/get-edges"},{"title":"GetIntent","openapi":"trails-api.gen.json post /rpc/Trails/GetIntent","href":"/api-reference/endpoints/get-intent"},{"title":"SearchIntents","openapi":"trails-api.gen.json post /rpc/Trails/SearchIntents","href":"/api-reference/endpoints/search-intents"},{"title":"GetIntentHistory","openapi":"trails-api.gen.json post /rpc/Trails/GetIntentHistory","href":"/api-reference/endpoints/get-intent-history"}]},{"group":"Routes \u0026 Tokens","pages":[{"title":"GetExactInputRoutes","openapi":"trails-api.gen.json post /rpc/Trails/GetExactInputRoutes","href":"/api-reference/endpoints/get-exact-input-routes"},{"title":"GetExactOutputRoutes","openapi":"trails-api.gen.json post /rpc/Trails/GetExactOutputRoutes","href":"/api-reference/endpoints/get-exact-output-routes"},{"title":"GetTokenList","openapi":"trails-api.gen.json post /rpc/Trails/GetTokenList","href":"/api-reference/endpoints/get-token-list"},{"title":"GetTokenPrices","openapi":"trails-api.gen.json post /rpc/Trails/GetTokenPrices","href":"/api-reference/endpoints/get-token-prices"}]},{"group":"Chains \u0026 Discovery","pages":[{"title":"GetChains","openapi":"trails-api.gen.json post /rpc/Trails/GetChains","href":"/api-reference/endpoints/get-chains"},{"title":"GetFiatCurrencyList","openapi":"trails-api.gen.json post /rpc/Trails/GetFiatCurrencyList","href":"/api-reference/endpoints/get-fiat-currency-list"},{"title":"GetExchangeRate","openapi":"trails-api.gen.json post /rpc/Trails/GetExchangeRate","href":"/api-reference/endpoints/get-exchange-rate"}]},{"group":"Protocol","pages":[{"title":"GetSupportedIntentProtocols","openapi":"trails-api.gen.json post /rpc/Trails/GetSupportedIntentProtocols","href":"/api-reference/endpoints/get-supported-intent-protocols"},{"title":"GetDefaultIntentProtocol","openapi":"trails-api.gen.json post /rpc/Trails/GetDefaultIntentProtocol","href":"/api-reference/endpoints/get-default-intent-protocol"},{"title":"GetProtocolContracts","openapi":"trails-api.gen.json post /rpc/Trails/GetProtocolContracts","href":"/api-reference/endpoints/get-protocol-contracts"}]},{"group":"Earn","pages":[{"title":"YieldGetMarkets","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetMarkets","href":"/api-reference/endpoints/yield-get-markets"},{"title":"YieldGetMarketById","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetMarketById","href":"/api-reference/endpoints/yield-get-market-by-id"},{"title":"YieldGetNetworks","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetNetworks","href":"/api-reference/endpoints/yield-get-networks"},{"title":"YieldGetProviders","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetProviders","href":"/api-reference/endpoints/yield-get-providers"},{"title":"YieldGetProvider","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetProvider","href":"/api-reference/endpoints/yield-get-provider"},{"title":"YieldGetAggregateBalances","openapi":"trails-api.gen.json post /rpc/Trails/YieldGetAggregateBalances","href":"/api-reference/endpoints/yield-get-balances"},{"title":"YieldCreateEnterAction","openapi":"trails-api.gen.json post /rpc/Trails/YieldCreateEnterAction","href":"/api-reference/endpoints/yield-create-enter-action"},{"title":"YieldCreateExitAction","openapi":"trails-api.gen.json post /rpc/Trails/YieldCreateExitAction","href":"/api-reference/endpoints/yield-create-exit-action"},{"title":"YieldSubmitTransactionHash","openapi":"trails-api.gen.json post /rpc/Trails/YieldSubmitTransactionHash","href":"/api-reference/endpoints/yield-submit-transaction-hash"},{"title":"GetEarnPools (deprecated)","openapi":"trails-api.gen.json post /rpc/Trails/GetEarnPools","href":"/api-reference/endpoints/get-earn-pools"}]},{"group":"Intents (Advanced)","pages":[{"title":"AbortIntent","openapi":"trails-api.gen.json post /rpc/Trails/AbortIntent","href":"/api-reference/endpoints/abort-intent"},{"title":"RetryIntent","openapi":"trails-api.gen.json post /rpc/Trails/RetryIntent","href":"/api-reference/endpoints/retry-intent"},{"title":"PrepareIntentRecovery","openapi":"trails-api.gen.json post /rpc/Trails/PrepareIntentRecovery","href":"/api-reference/endpoints/prepare-intent-recovery"},{"title":"BuildIntentRecoveryTransaction","openapi":"trails-api.gen.json post /rpc/Trails/BuildIntentRecoveryTransaction","href":"/api-reference/endpoints/build-intent-recovery-transaction"},{"title":"BuildOIFRefundTransaction","openapi":"trails-api.gen.json post /rpc/Trails/BuildOIFRefundTransaction","href":"/api-reference/endpoints/build-oif-refund-transaction"}]}]}]},"basePath":"","title":"[email protected] - Trails","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}