Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.
x402 is Coinbase’s open protocol for pay-per-request HTTP access. Instead of an API key, you pay a small amount of USDC on Base or Solana for each request - ideal for AI agents that need onchain data without managing subscriptions or key rotation.This is an alternative authorization method for the same Zerion API. Endpoints, JSON:API responses, query parameters, and filters all behave exactly as in the rest of the docs - only the way you prove access changes.Zerion also supports MPP, a sibling protocol that settles on Tempo. See Authentication for an overview of all access methods.
The easiest way to use x402 is with the Zerion CLI, which handles the payment handshake, wallet signing, and retries automatically.Set the private key of the wallet that holds USDC, then make a request with --x402:
If you’re not using the CLI, use the Coinbase x402 SDK (Go, TypeScript, Python) to handle payment construction and retries. You’ll need a wallet with USDC on Base or Solana and its private key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Zerion API","description":"Zerion is an Ethereum and Solana wallet and developer platform focused on making blockchain data easy to use.","colors":{"primary":"#2461ED","light":"#2461ED","dark":"#2461ED"},"logo":{"light":"https://mintcdn.com/zerion-f99485ad/7LRY3a3Ldx_ROK8O/logo/light.svg?fit=max\u0026auto=format\u0026n=7LRY3a3Ldx_ROK8O\u0026q=85\u0026s=f451fe390bc92095f03123a8f7d40a7d","dark":"https://mintcdn.com/zerion-f99485ad/7LRY3a3Ldx_ROK8O/logo/dark.svg?fit=max\u0026auto=format\u0026n=7LRY3a3Ldx_ROK8O\u0026q=85\u0026s=4062b6f0d31d9101cb18ec6912f5260c"},"favicon":"https://mintcdn.com/zerion-f99485ad/CtpXHzWVHRggjdYr/images/favicon.png?fit=max\u0026auto=format\u0026n=CtpXHzWVHRggjdYr\u0026q=85\u0026s=ab9d008382caaa72b969c16793e48ba4","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go"],"prefill":true}},"navbar":{"links":[{"href":"https://dashboard.zerion.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.zerion.io"}},"footer":{"socials":{"x":"https://x.com/zerion","website":"https://zerion.io","linkedin":"https://www.linkedin.com/company/zeriontech"}},"fonts":{"heading":{"family":"Aeonik Pro","weight":700,"source":"fonts/AeonikPro-VF.woff2","format":"woff2"},"body":{"family":"Aeonik Pro","weight":400,"source":"fonts/AeonikPro-VF.woff2","format":"woff2"}},"integrations":{"ga4":{"measurementId":"G-KKSYM575R1"},"mixpanel":{"projectToken":"18a91a6fe2bdf70794ceb76c03433f19","region":"eu"},"posthog":{"apiKey":"phc_KpX0ph71XObDhlXXMKoAzXMtXYiNMMtDhuA8GvvudZI","apiHost":"https://eu.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://dashboard.zerion.io"},{"anchor":"AI \u0026 Agents","icon":"brain","href":"/build-with-ai/overview"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zerion-f99485ad","hasAudioNarration":false,"actualSubdomain":"zerion-f99485ad","customDomains":["developers.zerion.io"],"gitSource":{"type":"github","owner":"zeriontech","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae35fcdb5de186da748cddb","collectionId":"2bc884e2-4f43-45be-9576-df32b58d87cf","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae35fcdb5de186da748cddb"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae35fcdb5de186da748cddb","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"API Reference","count":40},{"language":"default","tag":"REST API","count":40},{"language":"default","tag":"Home","count":26},{"language":"default","tag":"subscriptions to transactions","count":13},{"language":"default","tag":"Get started","count":9},{"language":"default","tag":"Core concepts","count":9},{"language":"default","tag":"Recipes","count":9},{"language":"default","tag":"Migrating to Zerion API","count":8},{"language":"default","tag":"wallets","count":8},{"language":"default","tag":"Build with AI","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"googleFontsInlined":false},"customCss":[{"filePath":"global.css","content":"@media (max-width:600px){.card-group,.hero-grid,.why-grid{grid-template-columns:1fr!important}.hero-grid img{display:none}}.pill-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.pill-tab{display:inline-flex;align-items:center;padding:.5rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;border:1px solid #e5e7eb;background:#fff;color:#374151;transition:none}.pill-tab:hover{border-color:#e5e7eb;color:#374151}.pill-tab.active{background:#0f172a;color:#fff;border-color:#0f172a}@media (prefers-color-scheme:dark){.pill-tab{background:0 0}.pill-tab,.pill-tab:hover{border-color:#374151;color:#d1d5db}.pill-tab.active{background:#fff;color:#0f172a;border-color:#fff}}.feature-card{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;border-radius:.375rem;border:1px solid #e5e7eb;text-decoration:none;color:inherit;transition:none}.feature-card:hover{border-color:#e5e7eb;box-shadow:none}@media (prefers-color-scheme:dark){.feature-card,.feature-card:hover{border-color:#374151}.feature-card:hover{box-shadow:none}}.feature-card-icon{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:.375rem;background:#f4f4f5;flex-shrink:0}@media (prefers-color-scheme:dark){.feature-card-icon{background:#1e293b}}.hero-cta,.hero-cta:hover{color:#fff!important;text-decoration:none!important;border:0!important;box-shadow:none!important;transform:none!important}.hero-cta{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.5rem;background-color:#2461ed;border-radius:.625rem;font-weight:500;font-size:.9375rem;margin-top:.5rem;position:relative}.hero-cta:hover{background-color:#1b4fc4}.stats-row{display:flex;gap:2rem;margin-top:1.5rem;flex-wrap:wrap}.stat-badge{display:flex;flex-direction:column;gap:.125rem}.stat-badge strong{font-size:1.25rem;color:#3030d4}.stat-badge span{font-size:.8125rem;color:#6b7280}.pricing-slider{-webkit-appearance:none;appearance:none;width:100%;height:.375rem;border-radius:9999px;background:linear-gradient(90deg,#3030d4 0%,#5b5bf0 var(--slider-progress, 0%),#e5e7eb var(--slider-progress, 0%),#e5e7eb 100%);outline:0}.pricing-slider::-webkit-slider-runnable-track{height:.375rem;border-radius:9999px;background:linear-gradient(90deg,#3030d4 0%,#5b5bf0 var(--slider-progress, 0%),#e5e7eb var(--slider-progress, 0%),#e5e7eb 100%)}.pricing-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1rem;height:1rem;margin-top:-.3125rem;border-radius:9999px;background:#fff;border:.1875rem solid #3030d4;box-shadow:0 1px 6px rgba(48,48,212,.25)}.pricing-slider::-moz-range-track{height:.375rem;border:0;border-radius:9999px;background:linear-gradient(90deg,#3030d4 0%,#5b5bf0 var(--slider-progress, 0%),#e5e7eb var(--slider-progress, 0%),#e5e7eb 100%)}.pricing-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:9999px;background:#fff;border:.1875rem solid #3030d4;box-shadow:0 1px 6px rgba(48,48,212,.25)}@media (prefers-color-scheme:dark){.pricing-slider,.pricing-slider::-moz-range-track,.pricing-slider::-webkit-slider-runnable-track{background:linear-gradient(90deg,#6366f1 0%,#818cf8 var(--slider-progress, 0%),rgba(255,255,255,.14) var(--slider-progress, 0%),rgba(255,255,255,.14) 100%)}.pricing-slider::-moz-range-thumb,.pricing-slider::-webkit-slider-thumb{background:#0f172a;border-color:#818cf8;box-shadow:0 1px 8px rgba(129,140,248,.35)}}.sunset-badge{display:inline-block;margin-top:.625rem;padding:.1875rem .5rem;border-radius:.375rem;font-size:.75rem;font-weight:600;white-space:nowrap;background:rgba(36,97,237,.08);color:#2461ed}@media (prefers-color-scheme:dark){.sunset-badge{background:rgba(91,135,245,.14);color:#5b87f5}}table td,table th{min-width:3rem!important}.chain-support-table td:nth-child(-n+2),.chain-support-table th:nth-child(-n+2){width:1%;white-space:nowrap}#table-of-contents a,aside[aria-label=\"On this page\"i] a,nav[aria-label=\"Table of contents\"i] a{border-left:2px solid transparent;padding-left:.75rem;transition:border-color .15s ease,color .15s ease}#table-of-contents a.active,#table-of-contents a:hover,#table-of-contents a[aria-current],aside[aria-label=\"On this page\"i] a:hover,aside[aria-label=\"On this page\"i] a[aria-current],nav[aria-label=\"Table of contents\"i] a:hover,nav[aria-label=\"Table of contents\"i] a[aria-current]{border-left-color:#2461ed;color:#2461ed}@media (prefers-color-scheme:dark){#table-of-contents a:hover,#table-of-contents a[aria-current],aside[aria-label=\"On this page\"i] a:hover,aside[aria-label=\"On this page\"i] a[aria-current],nav[aria-label=\"Table of contents\"i] a:hover,nav[aria-label=\"Table of contents\"i] a[aria-current]{border-left-color:#5b87f5;color:#5b87f5}}"}],"page":{"pagePath":"build-with-ai/x402","slug":"/build-with-ai/x402","pageMetadata":{"title":"x402 payments: pay-per-request Zerion API access","description":"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.","href":"/build-with-ai/x402"},"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: \"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tab,Tabs,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`x402 is `,_jsx(_components.a,{href:`https://github.com/coinbase/x402`,children:`Coinbase’s open protocol`}),` for pay-per-request HTTP access. Instead of an API key, you pay a small amount of USDC on Base or Solana for each request - ideal for AI agents that need onchain data without managing subscriptions or key rotation.`]}),`\n`,_jsx(_components.p,{children:`This is an alternative authorization method for the same Zerion API. Endpoints, JSON:API responses, query parameters, and filters all behave exactly as in the rest of the docs - only the way you prove access changes.`}),`\n`,_jsxs(_components.p,{children:[`Zerion also supports `,_jsx(_components.a,{href:`/build-with-ai/mpp`,children:`MPP`}),`, a sibling protocol that settles on Tempo. See `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` for an overview of all access methods.`]}),`\n`,_jsx(Heading,{level:`2`,id:`quickstart-with-the-zerion-cli`,children:`Quickstart with the Zerion CLI`}),`\n`,_jsxs(_components.p,{children:[`The easiest way to use x402 is with the `,_jsx(_components.a,{href:`/build-with-ai/zerion-cli`,children:`Zerion CLI`}),`, which handles the payment handshake, wallet signing, and retries automatically.`]}),`\n`,_jsxs(_components.p,{children:[`Set the private key of the wallet that holds USDC, then make a request with `,_jsx(_components.code,{children:`--x402`}),`:`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Base (EVM)`,id:`base-evm`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WALLET_PRIVATE_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`zerion-cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` portfolio`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --x402`})]}),`\n`]})})})}),_jsx(Tab,{title:`Solana`,id:`solana`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` SOLANA_PRIVATE_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cbase58-encoded-keypair>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ZERION_X402_PREFER_SOLANA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`zerion-cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` portfolio`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --x402`})]}),`\n`]})})})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`ZERION_X402=true`}),` to enable x402 globally for analytics commands instead of passing `,_jsx(_components.code,{children:`--x402`}),` on every call.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`direct-integration`,children:`Direct integration`}),`\n`,_jsxs(_components.p,{children:[`If you’re not using the CLI, use the `,_jsx(_components.a,{href:`https://github.com/coinbase/x402`,children:`Coinbase x402 SDK`}),` (Go, TypeScript, Python) to handle payment construction and retries. You’ll need a wallet with USDC on Base or Solana and its private key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wrapFetchWithPayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`x402Client`}),_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:` '@x402/fetch'`})]}),`\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:`registerExactEvmScheme`}),_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:` '@x402/evm/exact/client'`})]}),`\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:`privateKeyToAccount`}),_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:` 'viem/accounts'`})]}),`\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:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` x402Client`}),_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:`registerExactEvmScheme`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_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:` signer:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` privateKeyToAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`WALLET_PRIVATE_KEY`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fetchWithPayment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` wrapFetchWithPayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchWithPayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/portfolio'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(CodeBlock,{numberOfLines:`19`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Client Zerion API`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | 1. GET /v1/wallets/... |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | --------------------------> |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | 2. 402 Payment Required |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | \u003c-------------------------- |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | PAYMENT-REQUIRED: |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | \u003cchallenge> |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | 3. GET /v1/wallets/... |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | PAYMENT-SIGNATURE: |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | \u003csigned payment> |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | --------------------------> |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | 4. 200 OK |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | \u003c-------------------------- |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` | |`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Client sends a request to an API endpoint`}),`\n`,_jsxs(_components.li,{children:[`Server returns `,_jsx(_components.code,{children:`402`}),` with a `,_jsx(_components.code,{children:`PAYMENT-REQUIRED`}),` header describing where and how much to pay`]}),`\n`,_jsxs(_components.li,{children:[`Client signs a USDC transfer and retries with a `,_jsx(_components.code,{children:`PAYMENT-SIGNATURE`}),` header`]}),`\n`,_jsx(_components.li,{children:`Zerion settles the payment via the Coinbase Developer Platform and returns the response`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`rate-limits`,children:`Rate limits`}),`\n`,_jsx(_components.p,{children:`None - pay per request, no per-second or monthly quota.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error handling`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`402 Payment required`}),` - no or invalid payment signature. Inspect the `,_jsx(_components.code,{children:`PAYMENT-REQUIRED`}),` response header for a fresh challenge and retry.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`402 x402 payment rejected`}),` - the facilitator rejected the signature. The `,_jsx(_components.code,{children:`detail`}),` field contains the reason.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`402 x402 payment settlement failed`}),` - the signature was valid but onchain settlement failed.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`https://docs.cdp.coinbase.com/x402/support/troubleshooting#common-errors`,children:`Coinbase x402 troubleshooting docs`}),` for more.`]})]})}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":"x402 payments: pay-per-request Zerion API access","description":"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.","href":"/build-with-ai/x402"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quickstart with the Zerion CLI","slug":"quickstart-with-the-zerion-cli","depth":2,"children":[]},{"title":"Direct integration","slug":"direct-integration","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Rate limits","slug":"rate-limits","depth":2,"children":[]},{"title":"Error handling","slug":"error-handling","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"zerion-f99485ad","siteName":"Zerion API","title":"x402 payments: pay-per-request Zerion API access - Zerion API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-25T09:17:02.985Z","originalFileLocation":"build-with-ai/x402.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=\"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Zerion API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"x402 payments: pay-per-request Zerion API access - Zerion API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Zerion API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.zerion.io/build-with-ai/x402\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zerion-f99485ad.mintlify.app/_mintlify/api/og/v2?division=Build+with+AI\u0026amp;title=x402+payments%3A+pay-per-request+Zerion+API+access\u0026amp;description=Call+Zerion+API+without+an+API+key+by+paying+per+request+in+USDC+on+Base+or+Solana+with+the+x402+protocol.+No+signup%2C+rate+limits%2C+or+monthly+plan+needed.\u0026amp;theme=84bd58406d825a4dc94e9d1b\u0026amp;signature=41c4d176d817b2b4bc3910852320aa13e7e985e9f17558efa5c1bb98834f7489\">\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=\"x402 payments: pay-per-request Zerion API access - Zerion API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zerion-f99485ad.mintlify.app/_mintlify/api/og/v2?division=Build+with+AI\u0026amp;title=x402+payments%3A+pay-per-request+Zerion+API+access\u0026amp;description=Call+Zerion+API+without+an+API+key+by+paying+per+request+in+USDC+on+Base+or+Solana+with+the+x402+protocol.+No+signup%2C+rate+limits%2C+or+monthly+plan+needed.\u0026amp;theme=84bd58406d825a4dc94e9d1b\u0026amp;signature=41c4d176d817b2b4bc3910852320aa13e7e985e9f17558efa5c1bb98834f7489\">\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/zerion-f99485ad/VzHsQ_h3ouhCUDnV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Zerion API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2461ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.zerion.io/build-with-ai/x402\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/build-with-ai/x402.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.zerion.io/#organization\",\"name\":\"Zerion API\",\"url\":\"https://developers.zerion.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zerion-f99485ad/7LRY3a3Ldx_ROK8O/logo/light.svg?fit=max\u0026auto=format\u0026n=7LRY3a3Ldx_ROK8O\u0026q=85\u0026s=f451fe390bc92095f03123a8f7d40a7d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.zerion.io#website\",\"name\":\"Zerion API\",\"url\":\"https://developers.zerion.io\",\"publisher\":{\"@id\":\"https://developers.zerion.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.zerion.io/build-with-ai/x402#webpage\",\"url\":\"https://developers.zerion.io/build-with-ai/x402\",\"name\":\"x402 payments: pay-per-request Zerion API access\",\"description\":\"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\",\"dateModified\":\"2026-09-25T09:17:02.985Z\",\"isPartOf\":{\"@id\":\"https://developers.zerion.io#website\"},\"breadcrumb\":{\"@id\":\"https://developers.zerion.io/build-with-ai/x402#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.zerion.io/build-with-ai/x402#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://developers.zerion.io/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build with AI\",\"item\":\"https://developers.zerion.io/build-with-ai/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"x402 payments: pay-per-request Zerion API access\",\"item\":\"https://developers.zerion.io/build-with-ai/x402\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developers.zerion.io/build-with-ai/x402#article\",\"headline\":\"x402 payments: pay-per-request Zerion API access\",\"name\":\"x402 payments: pay-per-request Zerion API access\",\"description\":\"Call Zerion API without an API key by paying per request in USDC on Base or Solana with the x402 protocol. No signup, rate limits, or monthly plan needed.\",\"url\":\"https://developers.zerion.io/build-with-ai/x402\",\"mainEntityOfPage\":{\"@id\":\"https://developers.zerion.io/build-with-ai/x402#webpage\"},\"dateModified\":\"2026-09-25T09:17:02.985Z\",\"publisher\":{\"@id\":\"https://developers.zerion.io/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.zerion.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Zerion API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Zerion API","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://dashboard.zerion.io"},{"anchor":"AI \u0026 Agents","icon":"brain","href":"/build-with-ai/overview"}]},"tabs":[{"tab":"Home","groups":[{"group":"Get started","pages":[{"title":"Introduction to Zerion API","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"group":"Build with AI","pages":[{"title":"Build AI agents with onchain data","href":"/build-with-ai/overview"},{"title":"Zerion CLI and agent skills for AI coding tools","description":"Analyze wallets, sign, swap, and bridge across EVM chains and Solana from the command line, plus agent skills that ship across every major AI coding agent.","href":"/build-with-ai/zerion-cli"},{"title":"x402 payments: pay-per-request Zerion API access","href":"/build-with-ai/x402"},{"title":"MPP payments: pay-per-request Zerion API access","description":"Call Zerion API without an API key by paying per request in USDC on Tempo with the Machine Payments Protocol. No signup, rate limits, or monthly plan.","href":"/build-with-ai/mpp"},{"title":"Model Context Protocol (MCP) server","href":"/build-with-ai/mcp"}]},{"title":"Migrate to Zerion API","sidebarTitle":"Migrate to Zerion","href":"/migrate-to-zerion"}]},{"group":"Core concepts","pages":[{"title":"Supported blockchains and chain IDs for Zerion API","sidebarTitle":"Supported blockchains","mode":"wide","href":"/supported-blockchains"},{"title":"Endpoints and response schema","href":"/endpoints-and-schema"},{"title":"Pagination, filtering, sorting, and currency","href":"/pagination-and-filtering"},{"title":"Error handling and status codes","href":"/error-handling"},{"title":"Rate limits and throttling","href":"/rate-limits"},{"title":"Webhooks for real-time wallet transaction notifications","href":"/webhooks"},{"title":"Kafka streaming for onchain events","href":"/streaming"},{"title":"Spam token filtering","href":"/spam-filtering"},{"title":"Real-world asset (RWA) classification","sidebarTitle":"RWA classification","href":"/rwa-classification"}]},{"group":"Migrating to Zerion API","pages":[{"title":"Migrate from Zapper to Zerion API","sidebarTitle":"From Zapper","href":"/migrate-from-zapper"},{"title":"Migrate from Dune SIM to Zerion API","sidebarTitle":"From Dune SIM","href":"/migrate-from-sim"},{"title":"Migrate from Mobula to Zerion API","sidebarTitle":"From Mobula","href":"/migrate-from-mobula"},{"title":"Migrate from OneBalance to Zerion API","sidebarTitle":"From OneBalance","href":"/migrate-from-onebalance"},{"title":"Migrate from DeBank Cloud to Zerion API","sidebarTitle":"From DeBank","href":"/migrate-from-debank"},{"title":"Migrate from Allium to Zerion API","sidebarTitle":"From Allium","href":"/migrate-from-allium"},{"title":"Migrate from GoldRush (Covalent) to Zerion API","sidebarTitle":"From GoldRush","href":"/migrate-from-goldrush"},{"title":"Migrate from Moralis to Zerion API","sidebarTitle":"From Moralis","href":"/migrate-from-moralis"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/wallets/get-wallet-balance-chart"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes"}]},{"tab":"Case studies","href":"https://zerion.io/blog/tag/zerion-api/"},{"tab":"Changelogs","pages":[{"title":"Changelogs","href":"/changelog"}]}]},"basePath":"","title":"x402 payments: pay-per-request Zerion API access - Zerion API","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":[],"chunks":[]}