Lighter-only. Gains has no provisioning step β accounts are implicit. Skip this endpoint for Gains.
Provisions the signerβs Lighter sub-account API key + auth token. Run once per (L1 address, accountIndex) after the userβs first deposit so subsequent trades, withdrawals, etc. can authenticate against Lighter.
Account lifecycle on Lighter
A wallet (EOA) is not a Lighter account by default. Lighter only registers an account on-chain after the L1 address makes its first USDC deposit (β₯ 5 USDC, a Lighter-side requirement). Once the deposit settles, Lighter assigns an accountIndex to that L1 address. The integrator must then call this endpoint with the discovered accountIndex to provision an API key + auth token β without it, every other Lighter perp endpoint (create-order, close-position, withdraw, β¦) will fail.End-to-end first-time setup:
Discover the accountIndex by polling Lighterβs account-lookup endpoint (the bridge takes a few seconds to settle on L2):
GET https://mainnet.zklighter.elliot.ai/api/v1/account?by=l1_address&value=<EOA address>Accept: application/json
Response shape (success): { "code": 200, "accounts": [{ "account_index": <number>, ... }] }. Poll every ~1s until accounts[0].account_index is present.
Coming soon. Mobula will expose a proxy endpoint so integrators donβt need to call Lighter directly. For now, hit Lighterβs URL above.
Provision the API key by calling this endpoint with the discovered accountIndex and submitting via /2/perp/execute-v2. The response payload may carry payload.MessageToSign β sign it, set payload.L1Sig, delete payload.MessageToSign, re-stringify, and sign execute-v2 over the new string.
The userβs wallet can now call all Lighter trade/withdraw endpoints.
Request Body
string
required
Must be lighter.
string
required
Must be lighter:304 (the only chain that accepts Lighter create-account today).
number
required
Lighter sub-account index (non-negative integer). Discovered via the Lighter /api/v1/account?by=l1_address&value=<EOA> lookup after the first deposit settles.
number
Lighter API key slot to provision (β₯ 0). Pick any unused slot. Defaults server-side if omitted.
Authentication
Every /2/perp/payloads/<action> endpoint verifies the caller by requiring two extra fields in the request body alongside the action parameters:
number
required
Unix timestamp in milliseconds. Must be within 30 seconds of server time. Older timestamps are rejected to prevent replay.
string
required
Hex signature (EIP-191 personal_sign) of the message `${endpoint}-${timestamp}`, where endpoint is the path of this endpoint without the leading slash (e.g., for this page: api/2/perp/payloads/<this-action>). The recovered signer address becomes the user for the request. Single-use β replay returns 403 signature already used.
Every /2/perp/payloads/<action> endpoint returns the same envelope shape. You pass these fields verbatim into POST /2/perp/execute-v2 to execute the action.
Top-level shape. Successful (2xx) responses return { data: { ... } }. A success: true flag is only present inside the body of execute-v2βs response, not on the payload-build endpoints. Parse defensively: read body.data, then check for the action-specific fields you need (e.g. data.payloadStr).
object
Show data
string
Canonical action name β one of withdraw, create-account, deposit, create-order, close-position, cancel-order, update-margin, edit-order.
string
gains or lighter.
string
Chain where the action lands (e.g., evm:42161, lighter:301).
string
Mobula market identifier. Present when the action targets a specific market.
string
offchain-api β server submits to the DEX off-chain API on the userβs behalf (Lighter trades, Lighter withdraw, Lighter create-account). evm-tx β server broadcasts a user-signed EVM transaction (Lighter deposit bridge route, Gains trade actions). The Gains case requires a top-level signedTx on execute-v2; the Lighter deposit case injects signed txs insidepayloadStr.
string
JSON-stringified canonical envelope. For most actions you forward this byte-for-byte into /2/perp/execute-v2. Mutations are required for: Lighter deposit (inject payload.signedTxs), Lighter withdraw (sign payload.MessageToSign β payload.L1Sig, delete MessageToSign), Lighter create-account (same as withdraw only if payload.MessageToSign is present). After mutation, re-stringify and sign execute-v2 over the new string. Never alter the envelope metadata (action, dex, chainId, transport, marketId) β execute-v2 cross-checks it.
Endpoint-specific errors
Status
message
400
accountIndex must be a non-negative integer for lighter create-account β missing or invalid accountIndex
400
Invalid chainId "<value>" for lighter create-account β chainId other than lighter:304
payload action "create-account" not implemented yet β dex other than lighter
Full flow β provision a Lighter sub-account end-to-end
Assumes the wallet has already deposited β₯ 5 USDC and you have polled Lighter to discover its accountIndex. Snippet shows step 3 of the lifecycle above.
async function pollLighterAccountIndex(eoaAddress, { intervalMs = 1000, maxRetries = 200 } = {}) { for (let i = 0; i < maxRetries; i++) { const res = await fetch( `https://mainnet.zklighter.elliot.ai/api/v1/account?by=l1_address&value=${eoaAddress}`, { headers: { Accept: 'application/json' } }, ).then(r => r.json()).catch(() => null); if (res?.code === 200 && res.accounts?.[0]?.account_index != null) { return res.accounts[0].account_index; } await new Promise(r => setTimeout(r, intervalMs)); } throw new Error(`Lighter accountIndex not found for ${eoaAddress} after ${maxRetries} polls`);}
Body
application/json
timestamp
number
required
Unix ms timestamp; must be within 30s of server time.
signature
string
required
Hex signature of {endpoint}-{timestamp}. Recovered signer becomes the request user.
dex
enum<string>
required
Available options:
lighter
chainId
enum<string>
required
Must be lighter:304 (only chain that accepts Lighter create-account today).
Available options:
lighter:304
accountIndex
integer
required
Lighter sub-account index. Discover via Lighter's /api/v1/account?by=l1_address&value= after the first deposit settles.
Required range: x >= 0
apiKeyIndex
integer
Lighter API key slot to provision. Pick any unused slot. Defaults server-side if omitted.
Required range: x >= 0
Response
200 - application/json
Canonical payload envelope
success
boolean
required
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mobula API","colors":{"primary":"#5C7DF9","light":"#5C7DF9","dark":"#000000"},"logo":{"light":"https://mintcdn.com/mobulalabs/i4_lXsPzQR8eheLT/images/logo/light-logo.svg?fit=max\u0026auto=format\u0026n=i4_lXsPzQR8eheLT\u0026q=85\u0026s=f5099f8a6b3dd6665a32fe40d9288d81","dark":"https://mintcdn.com/mobulalabs/i4_lXsPzQR8eheLT/images/logo/dark-logo.svg?fit=max\u0026auto=format\u0026n=i4_lXsPzQR8eheLT\u0026q=85\u0026s=b1e6703d769cfe27914c2db40b46b332"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/mobulalabs/favicon.png","api":{"openapi":["rest-api-reference/openapi.yaml"],"asyncapi":["asyncapi.yaml"]},"background":{"color":{"light":"#f5f5f5","dark":"#111524"}},"navbar":{"links":[{"href":"https://admin.mobula.io","label":"Generate free API key"}],"primary":{"type":"button","label":"Dashboard","href":"https://admin.mobula.io"}},"footer":{"socials":{"twitter":"https://x.com/mobulaio","telegram":"https://t.me/mobuladevelopers"}},"integrations":{"mixpanel":{"projectToken":"792afbf66aa630430016bdbd59c52ba7"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mobulalabs","hasAudioNarration":false,"actualSubdomain":"mobulalabs","customDomains":["docs.mobula.io"],"gitSource":{"type":"github","owner":"fomo-family","repo":"mobula-monorepo","deployBranch":"dev","contentDirectory":"docs/mobula-api-docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10a22c9ffae5051c3f8beb"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b06f5c9c90834d233c7c690","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Changelog","count":105},{"language":"default","tag":"2026","count":103},{"language":"default","tag":"Chains","count":97},{"language":"default","tag":"Supported Chains","count":96},{"language":"default","tag":"Overview","count":80},{"language":"default","tag":"Data","count":70},{"language":"default","tag":"Guides","count":67},{"language":"default","tag":"Spot","count":51},{"language":"default","tag":"Streams","count":46},{"language":"default","tag":"Perps","count":26}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false,"authValue":{"auth":{}}},"customCss":[{"filePath":"custom.css","content":"img[src*=\"util-badge\"]{width:32px;height:16px;min-width:32px;min-height:16px}"}]}
{"page":{"pagePath":"rest-api-reference/endpoint/perp-payload-create-account","slug":"/rest-api-reference/endpoint/perp-payload-create-account","pageMetadata":{"public":true,"title":"Build Create-Account Payload","openapi":"POST /2/perp/payloads/create-account","description":"Build a signed canonical payload to create/provision the user's account on a perpetual DEX (e.g., register a Lighter sub-account or API key).","href":"/rest-api-reference/endpoint/perp-payload-create-account"},"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: \"Build a signed canonical payload to create/provision the userβs account on a perpetual DEX (e.g., register a Lighter sub-account or API key).\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsx(_components.strong,{children:`Lighter-only.`}),` Gains has no provisioning step β accounts are implicit. Skip this endpoint for Gains.`]}),`\n`,_jsxs(_components.p,{children:[`Provisions the signerβs Lighter sub-account API key + auth token. Run once per `,_jsx(_components.code,{children:`(L1 address, accountIndex)`}),` after the userβs first deposit so subsequent trades, withdrawals, etc. can authenticate against Lighter.`]}),`\n`,_jsx(Heading,{level:`2`,id:`account-lifecycle-on-lighter`,children:`Account lifecycle on Lighter`}),`\n`,_jsxs(_components.p,{children:[`A wallet (EOA) is `,_jsx(_components.strong,{children:`not`}),` a Lighter account by default. Lighter only registers an account on-chain after the L1 address makes its first USDC deposit (β₯ `,_jsx(_components.strong,{children:`5 USDC`}),`, a Lighter-side requirement). Once the deposit settles, Lighter assigns an `,_jsx(_components.code,{children:`accountIndex`}),` to that L1 address. The integrator must then call this endpoint with the discovered `,_jsx(_components.code,{children:`accountIndex`}),` to provision an API key + auth token β without it, every other Lighter perp endpoint (`,_jsx(_components.code,{children:`create-order`}),`, `,_jsx(_components.code,{children:`close-position`}),`, `,_jsx(_components.code,{children:`withdraw`}),`, β¦) will fail.`]}),`\n`,_jsx(_components.p,{children:`End-to-end first-time setup:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deposit`}),` β₯ 5 USDC via `,_jsx(_components.a,{href:`/rest-api-reference/endpoint/perp-payload-deposit`,children:_jsx(_components.code,{children:`/2/perp/payloads/deposit`})}),` β submit via `,_jsx(_components.code,{children:`/2/perp/execute-v2`}),` β poll `,_jsx(_components.a,{href:`/rest-api-reference/endpoint/perp-check-process`,children:_jsx(_components.code,{children:`/2/perp/check-process`})}),` until success.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Discover the `,_jsx(_components.code,{children:`accountIndex`})]}),` by polling Lighterβs account-lookup endpoint (the bridge takes a few seconds to settle on L2):`,`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://mainnet.zklighter.elliot.ai/api/v1/account?by=l1_address\u0026value=\u003cEOA address>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Accept`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`]})})}),`\n`,`Response shape (success): `,_jsx(_components.code,{children:`{ \"code\": 200, \"accounts\": [{ \"account_index\": \u003cnumber>, ... }] }`}),`. Poll every ~1s until `,_jsx(_components.code,{children:`accounts[0].account_index`}),` is present.\n`,_jsxs(Info,{children:[_jsx(_components.strong,{children:`Coming soon.`}),` Mobula will expose a proxy endpoint so integrators donβt need to call Lighter directly. For now, hit Lighterβs URL above.`]})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Provision the API key`}),` by calling this endpoint with the discovered `,_jsx(_components.code,{children:`accountIndex`}),` and submitting via `,_jsx(_components.code,{children:`/2/perp/execute-v2`}),`. The response payload may carry `,_jsx(_components.code,{children:`payload.MessageToSign`}),` β sign it, set `,_jsx(_components.code,{children:`payload.L1Sig`}),`, delete `,_jsx(_components.code,{children:`payload.MessageToSign`}),`, re-stringify, and sign execute-v2 over the new string.`]}),`\n`,_jsx(_components.li,{children:`The userβs wallet can now call all Lighter trade/withdraw endpoints.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{body:`dex`,type:`string`,required:true,id:`param-dex`,children:[`Must be `,_jsx(_components.code,{children:`lighter`}),`.`]}),`\n`,_jsx(ParamField,{body:`chainId`,type:`string`,required:true,id:`param-chain-id`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`lighter:304`}),` (the only chain that accepts Lighter `,_jsx(_components.code,{children:`create-account`}),` today).`]})}),`\n`,_jsx(ParamField,{body:`accountIndex`,type:`number`,required:true,id:`param-account-index`,children:_jsxs(_components.p,{children:[`Lighter sub-account index (non-negative integer). Discovered via the Lighter `,_jsx(_components.code,{children:`/api/v1/account?by=l1_address\u0026value=\u003cEOA>`}),` lookup after the first deposit settles.`]})}),`\n`,_jsx(ParamField,{body:`apiKeyIndex`,type:`number`,id:`param-api-key-index`,children:_jsx(_components.p,{children:`Lighter API key slot to provision (β₯ 0). Pick any unused slot. Defaults server-side if omitted.`})}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`/2/perp/payloads/\u003caction>`}),` endpoint verifies the caller by requiring two extra fields in the request body alongside the action parameters:`]}),`\n`,_jsx(ParamField,{body:`timestamp`,type:`number`,required:true,id:`param-timestamp`,children:_jsx(_components.p,{children:`Unix timestamp in milliseconds. Must be within 30 seconds of server time. Older timestamps are rejected to prevent replay.`})}),`\n`,_jsx(ParamField,{body:`signature`,type:`string`,required:true,id:`param-signature`,children:_jsxs(_components.p,{children:[`Hex signature (EIP-191 `,_jsx(_components.code,{children:`personal_sign`}),`) of the message `,_jsx(_components.code,{children:\"`${endpoint}-${timestamp}`\"}),`, where `,_jsx(_components.code,{children:`endpoint`}),` is the path `,_jsx(_components.strong,{children:`of this endpoint`}),` without the leading slash (e.g., for this page: `,_jsx(_components.code,{children:`api/2/perp/payloads/\u003cthis-action>`}),`). The recovered signer address becomes the `,_jsx(_components.code,{children:`user`}),` for the request. Single-use β replay returns `,_jsx(_components.code,{children:`403 signature already used`}),`.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// Replace `\u003caction>` with the action of THIS page (e.g. create-account, deposit, β¦)\"})}),`\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:` endpoint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'api/2/perp/payloads/\u003caction>'`}),_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:` timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_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:` signature`}),_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:` wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`signMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`endpoint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`-`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`timestamp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://api.mobula.io/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`endpoint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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:` timestamp`}),_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:` signature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...action-specific fields below`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`authentication-errors`,children:`Authentication errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`message`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`timestamp expired`}),` β timestamp older than 30s`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`signature already used`}),` β replay attempt`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`zod validation failed`}),` β `,_jsx(_components.code,{children:`timestamp`}),`/`,_jsx(_components.code,{children:`signature`}),` shape invalid`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-envelope`,children:`Response envelope`}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`/2/perp/payloads/\u003caction>`}),` endpoint returns the same envelope shape. You pass these fields verbatim into `,_jsx(_components.code,{children:`POST /2/perp/execute-v2`}),` to execute the action.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Top-level shape.`}),` Successful (2xx) responses return `,_jsx(_components.code,{children:`{ data: { ... } }`}),`. A `,_jsx(_components.code,{children:`success: true`}),` flag is only present inside the body of `,_jsx(_components.code,{children:`execute-v2`}),`βs response, not on the payload-build endpoints. Parse defensively: read `,_jsx(_components.code,{children:`body.data`}),`, then check for the action-specific fields you need (e.g. `,_jsx(_components.code,{children:`data.payloadStr`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data`,children:[_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action`,children:_jsxs(_components.p,{children:[`Canonical action name β one of `,_jsx(_components.code,{children:`withdraw`}),`, `,_jsx(_components.code,{children:`create-account`}),`, `,_jsx(_components.code,{children:`deposit`}),`, `,_jsx(_components.code,{children:`create-order`}),`, `,_jsx(_components.code,{children:`close-position`}),`, `,_jsx(_components.code,{children:`cancel-order`}),`, `,_jsx(_components.code,{children:`update-margin`}),`, `,_jsx(_components.code,{children:`edit-order`}),`.`]})}),_jsxs(ResponseField,{name:`dex`,type:`string`,id:`param-dex-1`,children:[_jsx(_components.code,{children:`gains`}),` or `,_jsx(_components.code,{children:`lighter`}),`.`]}),_jsxs(ResponseField,{name:`chainId`,type:`string`,id:`param-chain-id-1`,children:[`Chain where the action lands (e.g., `,_jsx(_components.code,{children:`evm:42161`}),`, `,_jsx(_components.code,{children:`lighter:301`}),`).`]}),_jsx(ResponseField,{name:`marketId`,type:`string`,id:`param-market-id`,children:`Mobula market identifier. Present when the action targets a specific market.`}),_jsx(ResponseField,{name:`transport`,type:`string`,id:`param-transport`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`offchain-api`}),` β server submits to the DEX off-chain API on the userβs behalf (Lighter trades, Lighter `,_jsx(_components.code,{children:`withdraw`}),`, Lighter `,_jsx(_components.code,{children:`create-account`}),`).`,_jsx(`br`,{}),`\n`,_jsx(_components.code,{children:`evm-tx`}),` β server broadcasts a user-signed EVM transaction (Lighter `,_jsx(_components.code,{children:`deposit`}),` bridge route, Gains trade actions). The Gains case requires a top-level `,_jsx(_components.code,{children:`signedTx`}),` on execute-v2; the Lighter `,_jsx(_components.code,{children:`deposit`}),` case injects signed txs `,_jsx(_components.strong,{children:`inside`}),` `,_jsx(_components.code,{children:`payloadStr`}),`.`]})}),_jsx(ResponseField,{name:`payloadStr`,type:`string`,id:`param-payload-str`,children:_jsxs(_components.p,{children:[`JSON-stringified canonical envelope. For most actions you forward this byte-for-byte into `,_jsx(_components.code,{children:`/2/perp/execute-v2`}),`. Mutations are required for: Lighter `,_jsx(_components.code,{children:`deposit`}),` (inject `,_jsx(_components.code,{children:`payload.signedTxs`}),`), Lighter `,_jsx(_components.code,{children:`withdraw`}),` (sign `,_jsx(_components.code,{children:`payload.MessageToSign`}),` β `,_jsx(_components.code,{children:`payload.L1Sig`}),`, delete `,_jsx(_components.code,{children:`MessageToSign`}),`), Lighter `,_jsx(_components.code,{children:`create-account`}),` (same as `,_jsx(_components.code,{children:`withdraw`}),` only if `,_jsx(_components.code,{children:`payload.MessageToSign`}),` is present). After mutation, re-stringify and sign execute-v2 over the `,_jsx(_components.strong,{children:`new`}),` string. Never alter the envelope metadata (`,_jsx(_components.code,{children:`action`}),`, `,_jsx(_components.code,{children:`dex`}),`, `,_jsx(_components.code,{children:`chainId`}),`, `,_jsx(_components.code,{children:`transport`}),`, `,_jsx(_components.code,{children:`marketId`}),`) β execute-v2 cross-checks it.`]})})]})}),`\n`,_jsx(Heading,{level:`3`,id:`endpoint-specific-errors`,children:`Endpoint-specific errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`message`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`accountIndex must be a non-negative integer for lighter create-account`}),` β missing or invalid `,_jsx(_components.code,{children:`accountIndex`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Invalid chainId \"\u003cvalue>\" for lighter create-account`}),` β chainId other than `,_jsx(_components.code,{children:`lighter:304`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`create-account payload generation failed`}),` β Lighter rejected provisioning (e.g., slot already in use)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`501`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`payload action \"create-account\" not implemented yet`}),` β `,_jsx(_components.code,{children:`dex`}),` other than `,_jsx(_components.code,{children:`lighter`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`full-flow-β-provision-a-lighter-sub-account-end-to-end`,children:`Full flow β provision a Lighter sub-account end-to-end`}),`\n`,_jsxs(_components.p,{children:[`Assumes the wallet has already deposited β₯ 5 USDC and you have polled Lighter to discover its `,_jsx(_components.code,{children:`accountIndex`}),`. Snippet shows step 3 of the lifecycle above.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`47`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`47`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1. Auth-sign + fetch the create-account payload`})}),`\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:` endpoint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'api/2/perp/payloads/create-account'`}),_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:` ts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_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:` authSig`}),_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:` wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`signMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`endpoint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`-`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_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:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://api.mobula.io/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`endpoint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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:` timestamp:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ts`}),_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:` signature:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` authSig`}),_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:` dex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'lighter'`}),_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:` chainId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'lighter:304'`}),_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:` accountIndex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// discovered from Lighter's /api/v1/account lookup`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKeyIndex:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// any unused slot`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 2. Mutate the envelope only if Lighter returns an L1 challenge`})}),`\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:` parsed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payloadStr`}),_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:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` finalPayloadStr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payloadStr`}),_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:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parsed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MessageToSign`}),_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:` parsed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`L1Sig`}),_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:` wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`signMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parsed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MessageToSign`}),_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:` delete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parsed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MessageToSign`}),_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:` finalPayloadStr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parsed`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 3. Sign + submit execute-v2`})}),`\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:` execTs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_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:` execSig`}),_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:` wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`signMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `api/2/perp/execute-v2-\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`execTs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`-`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`finalPayloadStr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` execRes`}),_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:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.mobula.io/api/2/perp/execute-v2'`}),_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:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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:` action:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`action`}),_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:` dex:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dex`}),_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:` chainId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chainId`}),_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:` transport:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`transport`}),_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:` payloadStr:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` finalPayloadStr`}),_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:` timestamp:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` execTs`}),_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:` signature:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` execSig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_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`,_jsxs(Heading,{level:`3`,id:`helper-β-discover-accountindex-after-a-deposit`,children:[`Helper β discover `,_jsx(_components.code,{children:`accountIndex`}),` after a deposit`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` pollLighterAccountIndex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`eoaAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`intervalMs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`maxRetries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` maxRetries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_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:`#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:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://mainnet.zklighter.elliot.ai/api/v1/account?by=l1_address\u0026value=\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eoaAddress`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Accept:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_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:`()).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_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:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 200`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accounts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account_index`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_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\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accounts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account_index`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intervalMs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Lighter accountIndex not found for \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eoaAddress`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` after `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`maxRetries`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" polls`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"public":true,"title":"Build Create-Account Payload","openapi":"POST /2/perp/payloads/create-account","description":"Build a signed canonical payload to create/provision the user's account on a perpetual DEX (e.g., register a Lighter sub-account or API key).","href":"/rest-api-reference/endpoint/perp-payload-create-account"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Account lifecycle on Lighter","slug":"account-lifecycle-on-lighter","depth":2,"children":[{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Authentication","slug":"authentication","depth":3,"children":[]},{"title":"Authentication errors","slug":"authentication-errors","depth":3,"children":[]},{"title":"Response envelope","slug":"response-envelope","depth":3,"children":[]},{"title":"Endpoint-specific errors","slug":"endpoint-specific-errors","depth":3,"children":[]},{"title":"Full flow β provision a Lighter sub-account end-to-end","slug":"full-flow-β-provision-a-lighter-sub-account-end-to-end","depth":3,"children":[]},{"title":"Helper β discover accountIndex after a deposit","slug":"helper-β-discover-accountindex-after-a-deposit","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["V2 - Perps"],"summary":"Build create-account payload","description":"Build a signed canonical payload to create/provision the user's account on a perpetual DEX (e.g., register a Lighter sub-account or API key).","requestBody":"fef6cda6-cff4-4e0a-9264-4c739a84dc8f","responses":{"200":"71836859-681a-4138-9c5e-b6ac2a930a7f"},"method":"post","type":"path","servers":["c25b9009-8f4e-492f-b743-eb62a864816a","34680ce8-88e4-4b86-942f-2cc9fb5ef9e7"],"security":[],"path":"/2/perp/payloads/create-account","baseUrlOptions":["https://demo-api.mobula.io/api/","https://api.mobula.io/api/"],"title":"Build create-account payload","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"number","description":"Unix ms timestamp; must be within 30s of server time.","isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"signature":{"type":"string","description":"Hex signature of `{endpoint}-{timestamp}`. Recovered signer becomes the request user.","isRequired":true,"uniqueKey":"signature","typeLabel":"string"},"dex":{"type":"string","enum":["lighter"],"isRequired":true,"uniqueKey":"dex","typeLabel":"enum\u003cstring>"},"chainId":{"type":"string","enum":["lighter:304"],"description":"Must be `lighter:304` (only chain that accepts Lighter create-account today).","isRequired":true,"uniqueKey":"chainId","typeLabel":"enum\u003cstring>"},"accountIndex":{"type":"integer","minimum":0,"description":"Lighter sub-account index. Discover via Lighter's /api/v1/account?by=l1_address\u0026value=\u003cEOA> after the first deposit settles.","isRequired":true,"uniqueKey":"accountIndex","typeLabel":"integer"},"apiKeyIndex":{"type":"integer","minimum":0,"description":"Lighter API key slot to provision. Pick any unused slot. Defaults server-side if omitted.","uniqueKey":"apiKeyIndex","typeLabel":"integer"}},"required":["timestamp","signature","dex","chainId","accountIndex"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":123,"signature":"\u003cstring>","dex":"lighter","chainId":"lighter:304","accountIndex":1,"apiKeyIndex":1}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"71836859-681a-4138-9c5e-b6ac2a930a7f":{"description":"Canonical payload envelope","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"type":"object","properties":{"action":{"type":"string","isRequired":true,"uniqueKey":"data.action","typeLabel":"string"},"dex":{"type":"string","isRequired":true,"uniqueKey":"data.dex","typeLabel":"string"},"chainId":{"type":"string","isRequired":true,"uniqueKey":"data.chainId","typeLabel":"string"},"transport":{"type":"string","enum":["offchain-api","evm-tx"],"isRequired":true,"uniqueKey":"data.transport","typeLabel":"enum\u003cstring>"},"payloadStr":{"type":"string","isRequired":true,"uniqueKey":"data.payloadStr","typeLabel":"string"},"marketId":{"type":"string","uniqueKey":"data.marketId","typeLabel":"string"}},"required":["action","dex","chainId","transport","payloadStr"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["success","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"action":"\u003cstring>","dex":"\u003cstring>","chainId":"\u003cstring>","transport":"offchain-api","payloadStr":"\u003cstring>","marketId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"c25b9009-8f4e-492f-b743-eb62a864816a":{"url":"https://demo-api.mobula.io/api/","description":"Demo API (rate limited, for testing only)"},"34680ce8-88e4-4b86-942f-2cc9fb5ef9e7":{"url":"https://api.mobula.io/api/","description":"Production API (requires API key)"}}},"originalFileLocation":"rest-api-reference/openapi.yaml"},"subdomain":"docs.mobula.io","siteName":"Mobula API","title":"Build Create-Account Payload - Mobula API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T12:21:07.536Z","originalFileLocation":"rest-api-reference/endpoint/perp-payload-create-account.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=\"Build a signed canonical payload to create/provision the user\u0026#x27;s account on a perpetual DEX (e.g., register a Lighter sub-account or API key).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mobula 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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_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/mobulalabs/HNvOu2NIIIAI8gec/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build Create-Account Payload - Mobula API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build a signed canonical payload to create/provision the user\u0026#x27;s account on a perpetual DEX (e.g., register a Lighter sub-account or API key).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mobula API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mobula.io/rest-api-reference/endpoint/perp-payload-create-account\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mobulalabs.mintlify.io/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Build+Create-Account+Payload\u0026amp;description=Build+a+signed+canonical+payload+to+create%2Fprovision+the+user%27s+account+on+a+perpetual+DEX+%28e.g.%2C+register+a+Lighter+sub-account+or+API+key%29.\u0026amp;theme=b31399aac8a2a0583f71b753\u0026amp;signature=891e8ca3ed2bc281569a278ea2ae91462a80fdbe87c564d4b9d8b8fd6113441a\">\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=\"Build Create-Account Payload - Mobula API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build a signed canonical payload to create/provision the user\u0026#x27;s account on a perpetual DEX (e.g., register a Lighter sub-account or API key).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mobulalabs.mintlify.io/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Build+Create-Account+Payload\u0026amp;description=Build+a+signed+canonical+payload+to+create%2Fprovision+the+user%27s+account+on+a+perpetual+DEX+%28e.g.%2C+register+a+Lighter+sub-account+or+API+key%29.\u0026amp;theme=b31399aac8a2a0583f71b753\u0026amp;signature=891e8ca3ed2bc281569a278ea2ae91462a80fdbe87c564d4b9d8b8fd6113441a\">\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/mobulalabs/HNvOu2NIIIAI8gec/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mobula API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5C7DF9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mobula.io/rest-api-reference/endpoint/perp-payload-create-account\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/rest-api-reference/endpoint/perp-payload-create-account.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mobula API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mobula API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/rest-api-reference/endpoint/perp-payload-create-account.md","siteName":"Mobula API","nav":{"global":null,"tabs":[{"tab":"Overview","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Benchmarks","href":"/benchmarks"}]},{"group":"Getting Started","pages":[{"title":"Get started","icon":"jet-fighter-up","href":"/rest-api-reference/introduction"},{"title":"TypeScript SDK","icon":"npm","href":"/rest-api-reference/sdk"},{"title":"Generate API key","icon":"key-skeleton","href":"/rest-api-reference/authentification"},{"title":"Auth Tokens (short-lived)","icon":"key","href":"/rest-api-reference/endpoint/auth-tokens"},{"title":"Pricing","icon":"credit-card","href":"/pricing"}]},{"group":"Guides","pages":[{"title":"How the Stellar Indexer Works","href":"/guides/stellar-indexer"},{"title":"How to Use Stellar Data","href":"/guides/how-to-use-stellar-data"},{"title":"Complete Stellar Swap \u0026 Transfer Stream Guide","href":"/guides/stream-stellar-swaps-transfers"},{"title":"Complete Swap Guide: From Quote to Execution","href":"/guides/complete-swap-guide"},{"title":"API Key vs API Token","href":"/guides/api-key-vs-api-token"},{"title":"Pool Targeting: Route Swaps Through Specific Pools","href":"/guides/pool-targeting"},{"title":"Detect a Token's Chain from Contract Address","href":"/guides/detect-token-chain-from-address"},{"title":"Query Token by Ticker (Symbol)","href":"/guides/query-token-by-ticker"},{"title":"Get Token Price Changes","href":"/guides/query-token-price-changes"},{"title":"Get any Crypto Price","href":"/guides/query-any-crypto-price"},{"title":"Get a Token Price History from First Block","href":"/guides/query-token-price-history-from-first-block"},{"title":"Get any Transactions of a Crypto Wallet","href":"/guides/query-any-crypto-transactions-from-a-wallet"},{"title":"Get Price History of an Asset","href":"/guides/query-historical-price-of-any-crypto"},{"title":"Get any Crypto Balance for a Wallet","href":"/guides/query-any-crypto-balance-from-a-wallet"},{"title":"Get USD Total Balance of a Wallet","href":"/guides/query-usd-balance-of-a-wallet"},{"title":"Get Historical Balance of any Crypto Wallet","href":"/guides/query-historical-balance-of-a-crypto-wallet"},{"title":"Get all Historical Transactions of a Crypto Wallet","href":"/guides/query-all-historical-transactions-of-a-crypto-wallet"},{"title":"Get Newly Listed Tokens Onchain","href":"/guides/query-newly-listed-tokens-onchain"},{"title":"Get Latest Created Pairs","href":"/guides/query-latest-created-pairs"},{"title":"Get Trading Pairs per Blockchain","href":"/guides/query-pairs-per-blockchain"},{"title":"Get Token Vesting and Unlocks Details via API","href":"/guides/query-token-vesting-and-unlocks-details"},{"title":"Get the Blockchain Logo","href":"/guides/query-blockchain-logos"},{"title":"How to Get Token Prices on Discord","href":"/guides/query-token-prices-on-discord"},{"title":"How to build your Telegram Buy Bot","href":"/guides/build-telegram-buy-bot"},{"title":"Build a Telegram Liquidations Alert Bot","href":"/guides/build-telegram-liquidations-bot"},{"title":"How to Build a Crypto AI Agent","href":"/guides/build-crypto-ai-agent"},{"title":"DEX Screener APIs","href":"/guides/dex-screener-apis"},{"title":"GMGN APIs","href":"/guides/gmgn-apis"},{"title":"DEXTools V2 APIs","href":"/guides/dextools-v2-apis"},{"title":"Get Token Unlocks Data","href":"/guides/token-unlock"},{"title":"Why is GMGN API Not Open to the Public?","href":"/guides/gmgn-closed-apis"},{"title":"4 GMGN API Alternatives","href":"/guides/gmgn-alternatives"},{"title":"How to Track Wallet Balance and Wallet Position with PnL Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-wallet-balance-and-wallet-position-with-pnl"},{"title":"How to Track Wallet Balance and Wallet Positions with PnL Across Ethereum, Solana, Base \u0026 More","href":"/guides/how-to-track-wallet-balance-and-wallet-positions-with-pnl"},{"title":"How to Track Wallet Activity Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-wallet-activity-with-mobula-api"},{"title":"How to Track Wallet Historical Net Worth Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-wallet-historical-net-worth"},{"title":"How to Track Wallet Trading Performance with PnL, Win Rate \u0026 Market Cap Distributions","href":"/guides/how-to-track-wallet-trading-performance-with-pnl-winrate"},{"title":"How to Get Wallet Balance of a Single Token Across All Chains","href":"/guides/how-to-get-wallet-balance-of-a-single-token-across-all-chains"},{"title":"How to Track Wallet NFT Holdings Across Ethereum, Solana, Base \u0026 More","href":"/guides/how-to-track-wallet-nft-holdings-using-mobula-api"},{"title":"How to Track Wallet Swap Trades Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-wallet-swap-trades-using-mobula-api"},{"title":"How to Track Token Holders Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-token-holders-across-ethereum-solana-bnb-base"},{"title":"How to Track Market OHLCV History Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-market-ohlcv-history"},{"title":"How to Track Market Details Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-market-details"},{"title":"How to Track Token OHLCV History Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-token-ohlcv-history"},{"title":"How to Get In-depth Token Details Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-get-in-depth-token-details"},{"title":"How to Track Top Token Trader Positions Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-top-token-trader-positions"},{"title":"How to Track Wallet DeFi Positions Across Solana, Ethereum, BNB, Base \u0026 More","href":"/guides/how-to-track-wallet-defi-positions"},{"title":"How to Track Wallet Labels Across Solana, Ethereum \u0026 More","href":"/guides/how-to-track-wallet-labels"},{"title":"How to Track Tokens Deployed by a Wallet Across Solana, Ethereum, Base \u0026 More","href":"/guides/how-to-track-tokens-deployed-by-a-wallet"},{"title":"How to View Wallet Portfolio Holdings Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-view-wallet-portfolio-holdings"},{"title":"How to Track Token First Buyers Across Solana, Ethereum, BNB, Base \u0026 More","href":"/guides/how-to-track-token-first-buyers"},{"title":"Migrating from Wallet Trades V1 to V2","href":"/guides/wallet-trades-v1-to-v2"},{"title":"How to Track Token Markets Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-token-markets"},{"title":"How to Track Token Trades Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-token-trades"},{"title":"How to Get a Token Trade by Transaction Hash Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-get-token-trade-by-transaction-hash"},{"title":"How to Track a Token Developer's On-Chain Activity","href":"/guides/how-to-track-token-dev-history"},{"title":"How to Check Token Security Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-check-token-security"},{"title":"How to Track Pair Trades Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-track-pair-trades-market-trades-pair"},{"title":"How to Fetch CeFi Funding Rates Across Binance, Bybit, OKX, Deribit, Bitget, MEXC, Kraken, Coinbase \u0026 More","href":"/guides/how-to-fetch-cefi-funding-rates"},{"title":"How to Get Asset Details Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-get-asset-details"},{"title":"How to Fetch Multi Asset Metadata Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-fetch-multi-asset-metadata"},{"title":"How to Fetch Asset Metadata Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-fetch-asset-metadata"},{"title":"How to Use Universal Fast Search Across Ethereum, Solana, BNB, Base \u0026 More","href":"/guides/how-to-use-universal-fast-search"},{"title":"How to Get All Asset Categories and Market Cap Changes","href":"/guides/how-to-get-all-asset-categories-and-market-cap-changes"},{"title":"Pulse WebSocket Integration with the Mobula SDK","href":"/guides/pulse-wss-sdk-integration"},{"title":"Migrate from the Launchpad GraphQL Stream to Pulse","href":"/guides/migrate-launchpad-stream-to-pulse"},{"title":"How to Get All Cryptocurrencies Available on Mobula","href":"/guides/how-to-get-all-cryptocurrencies-available-on-mobula"}]},{"group":"Blog","pages":[{"title":"Top 5 Alternatives to CoinGecko API for Real-Time Crypto Data in 2026","href":"/blog/coingecko-api-alternative"},{"title":"Mobula vs Moralis: Best Crypto Data API in 2026","href":"/blog/moralis-alternative"},{"title":"How to Build a Multi-Chain Wallet Tracker in 10 Minutes","href":"/blog/multi-chain-wallet-tracker"}]},{"group":"Legal","pages":[{"title":"Terms of Service","icon":"file-contract","href":"/legal/terms-of-service"}]}]},{"tab":"Data","groups":[{"group":"Introduction","pages":[{"title":"Data APIs","icon":"database","href":"/data-introduction"},{"title":"Benchmarks","icon":"gauge-high","href":"/data/benchmarks"}]},{"group":"Market \u0026 Token Data","pages":[{"title":"Get Token Markets","openapi":"get /2/token/markets","href":"/rest-api-reference/endpoint/token-markets"},{"title":"Get Market Details","openapi":"get /2/market/details","href":"/rest-api-reference/endpoint/market-details"},{"title":"Get Market Lighthouse","openapi":"get /2/market/lighthouse","href":"/rest-api-reference/endpoint/market-lighthouse"},{"title":"Get Asset Details","openapi":"get /2/asset/details","href":"/rest-api-reference/endpoint/asset-details"},{"title":"Get Token Details","openapi":"get /2/token/details","href":"/rest-api-reference/endpoint/token-details"},{"title":"Get Token ATH/ATL","openapi":"get /2/token/ath","href":"/rest-api-reference/endpoint/token-ath"},{"title":"Get Token Price","openapi":"get /2/token/price","href":"/rest-api-reference/endpoint/token-price"},{"title":"Get Token Price (Batch)","openapi":"post /2/token/price","href":"/rest-api-reference/endpoint/token-price-post"},{"title":"Get Token Price Snapshot","openapi":"get /2/token/price-at","href":"/rest-api-reference/endpoint/token-price-at"},{"title":"Get Token Price Snapshot (batch)","openapi":"post /2/token/price-at","href":"/rest-api-reference/endpoint/token-price-at-post"},{"title":"Get Token Security","openapi":"get /2/token/security","href":"/rest-api-reference/endpoint/token-security-get"},{"title":"Get Token Logo Reuses","openapi":"get /2/token/logo-reuses","href":"/rest-api-reference/endpoint/token-logo-reuses"}]},{"group":"History - Prices \u0026 OHLCV Candles","pages":[{"title":"Get Asset Price History","openapi":"get /2/asset/price-history","href":"/rest-api-reference/endpoint/asset-price-history"},{"title":"Get Token Price History","openapi":"get /2/token/price-history","href":"/rest-api-reference/endpoint/token-price-history"},{"title":"Get Market OHLCV History","openapi":"get /2/market/ohlcv-history","href":"/rest-api-reference/endpoint/market-ohlcv-history"},{"title":"Get Token OHLCV History","openapi":"get /2/token/ohlcv-history","href":"/rest-api-reference/endpoint/token-ohlcv-history"}]},{"group":"Trades Data","pages":[{"title":"Get Token Trades","openapi":"get /2/token/trades","href":"/rest-api-reference/endpoint/token-trades"},{"title":"Get Enriched Token Trades","openapi":"get /2/token/trades-enriched","href":"/rest-api-reference/endpoint/token-trades-enriched"},{"title":"Get Token Trade by Transaction","openapi":"get /2/token/trade","href":"/rest-api-reference/endpoint/token-trade"},{"title":"Get Token Dev History","openapi":"get /2/token/dev-history","href":"/rest-api-reference/endpoint/token-dev-history"},{"title":"Batch Download Trades","openapi":"get /2/trades/filters","href":"/rest-api-reference/endpoint/trades-filters"},{"title":"Get Pair Trades","openapi":"get /1/market/trades/pair","href":"/rest-api-reference/endpoint/market-trades-pair"}]},{"group":"Holders Data","pages":[{"title":"Get Top Token Trader Positions","openapi":"get /2/token/trader-positions","href":"/rest-api-reference/endpoint/token-trader-positions"},{"title":"Get Token Holder Positions","openapi":"get /2/token/holder-positions","href":"/rest-api-reference/endpoint/token-holder-positions"}]},{"group":"Pulse API","pages":[{"title":"Get Pulse - POST Method","openapi":"post /2/pulse","href":"/rest-api-reference/endpoint/pulse-post"}]},{"group":"Wallet APIs","pages":[{"title":"Get NFTs Holdings","openapi":"get /1/wallet/nfts","href":"/rest-api-reference/endpoint/wallet-nfts"},{"title":"Get Historical Net Worth","openapi":"get /1/wallet/history","href":"/rest-api-reference/endpoint/wallet-history"},{"title":"Get Wallet Holdings","openapi":"get /2/wallet/holdings","href":"/rest-api-reference/endpoint/wallet-holdings"},{"title":"Get Crypto Holdings","openapi":"get /1/wallet/portfolio","href":"/rest-api-reference/endpoint/wallet-portfolio"},{"title":"Get Wallet DeFi Positions","openapi":"get /2/wallet/defi-positions","href":"/rest-api-reference/endpoint/wallet-defi-positions"},{"title":"Get Wallet Trades","openapi":"get /2/wallet/trades","href":"/rest-api-reference/endpoint/wallet-trades-v2"},{"title":"Get Wallet Deployer Tokens","openapi":"get /2/wallet/deployer","href":"/rest-api-reference/endpoint/wallet-deployer"},{"title":"Get Wallet Activity","openapi":"get /2/wallet/activity","href":"/rest-api-reference/endpoint/wallet-activity"},{"title":"Get Wallet Labels","openapi":"get /2/wallet/labels","href":"/rest-api-reference/endpoint/wallet-labels-get"},{"title":"Search Wallet Labels","openapi":"get /2/wallet/labels/search","href":"/rest-api-reference/endpoint/wallet-labels-search"},{"openapi":"get /1/token/first-buyers","title":"Get first buyers for a token","href":"/rest-api-reference/endpoint/wallet-first-buyers"},{"title":"Get Wallet Positions with PnL","openapi":"get /2/wallet/positions","href":"/rest-api-reference/endpoint/wallet-positions"},{"title":"Get Wallet Position with PnL","openapi":"get /2/wallet/position","href":"/rest-api-reference/endpoint/wallet-position"},{"title":"Get Wallet Positions History","openapi":"get /2/wallet/positions-history","href":"/rest-api-reference/endpoint/wallet-positions-history"},{"title":"Get Wallet Position History","openapi":"get /2/wallet/position-history","href":"/rest-api-reference/endpoint/wallet-position-history"},{"title":"Get Wallet Trading Analysis","openapi":"get /2/wallet/analysis","href":"/rest-api-reference/endpoint/wallet-analysis"},{"title":"Get Wallet Funding Source","openapi":"get /2/wallet/funding","href":"/rest-api-reference/endpoint/wallet-funding"}]},{"group":"Usage Data","pages":[{"title":"Get API \u0026 WebSocket Usage","openapi":"get /2/usage","href":"/rest-api-reference/endpoint/usage"}]},{"group":"Internal","pages":[{"title":"Wallet Backfill Status (Internal)","openapi":"get /internal/wallet-backfill/status/{wallet}","href":"/rest-api-reference/endpoint/internal-wallet-backfill-status"}]},{"group":"Metacore","pages":[{"title":"Get All Cryptocurrencies","openapi":"get /1/all","href":"/rest-api-reference/endpoint/all"},{"title":"Universal Search","openapi":"get /2/fast-search","href":"/rest-api-reference/endpoint/fast-search"},{"title":"Universal Search - POST Method","openapi":"post /2/fast-search","href":"/rest-api-reference/endpoint/fast-search-post"},{"title":"Get Metadata","openapi":"get /1/metadata","href":"/rest-api-reference/endpoint/metadata"},{"title":"Get Metadata (batch)","openapi":"get /1/multi-metadata","href":"/rest-api-reference/endpoint/multi-metadata"},{"title":"Get All Categories","openapi":"get /1/metadata/categories","href":"/rest-api-reference/endpoint/metadata-categories"},{"title":"Get All Blockchains","openapi":"get /1/blockchains","href":"/rest-api-reference/endpoint/blockchains"},{"title":"Get System Metadata","openapi":"get /2/system-metadata","href":"/rest-api-reference/endpoint/system-metadata"}]},{"group":"Webhook","pages":[{"title":"Get Webhook Subscription","openapi":"get /1/webhook","href":"/rest-api-reference/endpoint/webhook-subscriptions"},{"title":"Delete Webhook Subscription","openapi":"delete /1/webhook","href":"/rest-api-reference/endpoint/webhook-removal"}]},{"group":"Perps Data","pages":[{"title":"Get Perp Pairs","openapi":"GET /2/perp/pairs","href":"/rest-api-reference/endpoint/perp-pairs"},{"title":"Get Perp Positions","openapi":"GET /2/wallet/positions/perp/open","href":"/rest-api-reference/endpoint/wallet-perp-positions"},{"title":"Get Perp Unfilled Orders","openapi":"GET /2/wallet/positions/perp/unfilled","href":"/rest-api-reference/endpoint/wallet-perp-orders"},{"title":"Get Funding Rate","openapi":"get /1/market/cefi/funding-rate","href":"/rest-api-reference/endpoint/market-cefi-funding-rate"},{"title":"Get Perp OHLCV History","openapi":"GET /2/perp/ohlcv-history","href":"/rest-api-reference/endpoint/perp-chart"},{"title":"Generate Perp Chart Image","openapi":"POST /2/perp/chart","href":"/rest-api-reference/endpoint/perp-chart-image"}]},{"group":"Misc","pages":[{"title":"Get Sparkline","openapi":"get /1/market/sparkline","href":"/rest-api-reference/endpoint/sparklines"}]}]},{"tab":"Streams","groups":[{"group":"Introduction","pages":[{"title":"Get started","icon":"bolt","href":"/indexing-stream/stream-introduction"},{"title":"Benchmarks","icon":"gauge-high","href":"/streams-benchmarks"},{"title":"Subscription Tags","icon":"tags","href":"/indexing-stream/stream/websocket/subscription-tags"}]},{"group":"Market \u0026 Token Data","pages":[{"title":"Market Details Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml marketDetails","href":"/indexing-stream/stream/websocket/wss-market-details"},{"title":"Token Details Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml tokenDetails","href":"/indexing-stream/stream/websocket/wss-token-details"}]},{"group":"Trades \u0026 OHLCV","pages":[{"title":"Fast Trades Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml fastTrades","href":"/indexing-stream/stream/websocket/wss-fast-trades"},{"title":"Quoting Stream","href":"/indexing-stream/stream/websocket/wss-quoting"},{"title":"OHLCV Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml ohlcv","href":"/indexing-stream/stream/websocket/ohlcv-stream"}]},{"group":"Pulse Streams","pages":[{"title":"Pulse Stream V2","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml pulseV2","href":"/indexing-stream/stream/websocket/pulse-stream-v2"},{"title":"Pulse Stream V2 (Pool-Based)","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml pulseV2PoolBased","href":"/indexing-stream/stream/websocket/pulse-stream-v2-pool-based"},{"title":"Filter Details","icon":"/_mintlify/image/mobulalabs/images/util-badge.svg","href":"/indexing-stream/stream/websocket/filters-details"}]},{"group":"Filter Tokens","pages":[{"title":"Token Filters Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml tokenFilters","href":"/indexing-stream/stream/websocket/token-filters-stream"},{"title":"Token Filters Reference","icon":"filter","href":"/indexing-stream/stream/websocket/token-filters-reference"},{"title":"Migrate from Pulse V2 to Token Filters","icon":"arrow-right-arrow-left","href":"/indexing-stream/stream/websocket/token-filters-migration"}]},{"group":"Multi-Events \u0026 Raw Data","pages":[{"title":"Swap Events Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml multiEventsStream","href":"/indexing-stream/stream/websocket/multi-events-swaps-stream"},{"title":"Wallet Transfers","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml multiEventsStream","href":"/indexing-stream/stream/websocket/multi-events-transfers-stream"},{"title":"Enriched Swap Events Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml multiEventsStream","href":"/indexing-stream/stream/websocket/multi-events-enriched-swaps-stream"},{"title":"Launchpad Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml multiEventsStream","href":"/indexing-stream/stream/websocket/launchpad-stream"},{"title":"Perps Order Events Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml multiEventsStream","href":"/indexing-stream/stream/websocket/multi-events-perps-orders-stream"},{"title":"Filters","icon":"/_mintlify/image/mobulalabs/images/util-badge.svg","href":"/indexing-stream/stream/filters"}]},{"group":"Data Models","pages":[{"title":"EVM","href":"/indexing-stream/stream/data-model/evm-data-model"},{"title":"Solana","href":"/indexing-stream/stream/data-model/solana-data-model"},{"title":"Curated Data Model","href":"/indexing-stream/stream/data-model/curated-data-model"},{"title":"Launchpad Stream","href":"/indexing-stream/stream/data-model/launchpad-stream-data-model"},{"title":"Supra","href":"/indexing-stream/stream/data-model/supra-data-model"}]},{"group":"Holders \u0026 Positions","pages":[{"title":"Position Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml position","href":"/indexing-stream/stream/websocket/wss-position-stream"},{"title":"Positions Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml positions","href":"/indexing-stream/stream/websocket/wss-positions-stream"},{"title":"Balance Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml balance","href":"/indexing-stream/stream/websocket/wss-balance-stream"},{"title":"Holders Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml holders","href":"/indexing-stream/stream/websocket/holders-stream"}]},{"group":"Perps Streams","pages":[{"title":"Funding Stream","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml funding","href":"/indexing-stream/stream/websocket/wss-funding"}]},{"group":"Webhooks","pages":[{"title":"Get started","href":"/indexing-stream/stream/webhook/getting-started"}]},{"group":"Misc","pages":[{"group":"Legacy Streams","pages":[{"title":"Market Pair Stream (Legacy)","asyncapi":"indexing-stream/stream/websocket/asyncapi.yaml marketDetails","href":"/indexing-stream/stream/websocket/wss-market-pair"}]}]}]},{"tab":"Spot","groups":[{"group":"Introduction","pages":[{"title":"Spot Trading APIs","icon":"arrow-right-arrow-left","href":"/spot-introduction"},{"title":"Benchmarks","icon":"gauge-high","href":"/spot/benchmarks"}]},{"group":"Market Data","pages":[{"title":"Get Token Markets","openapi":"get /2/token/markets","href":"/spot/data/token-markets"},{"title":"Get Market Details","openapi":"get /2/market/details","href":"/spot/data/market-details"},{"title":"Get Market Lighthouse","openapi":"get /2/market/lighthouse","href":"/spot/data/market-lighthouse"},{"title":"Get Asset Details","openapi":"get /2/asset/details","href":"/spot/data/asset-details"},{"title":"Get Token Details","openapi":"get /2/token/details","href":"/spot/data/token-details"},{"title":"Get Token ATH/ATL","openapi":"get /2/token/ath","href":"/spot/data/token-ath"},{"title":"Get Token Price","openapi":"get /2/token/price","href":"/spot/data/token-price"},{"title":"Get Token Price (Batch)","openapi":"post /2/token/price","href":"/spot/data/token-price-post"},{"title":"Get Token Price Snapshot","openapi":"get /2/token/price-at","href":"/spot/data/token-price-at"},{"title":"Get Token Price Snapshot (batch)","openapi":"post /2/token/price-at","href":"/spot/data/token-price-at-post"},{"title":"Get Token Security","openapi":"get /2/token/security","href":"/spot/data/token-security-get"}]},{"group":"Price History \u0026 OHLCV","pages":[{"title":"Get Asset Price History","openapi":"get /2/asset/price-history","href":"/spot/data/asset-price-history"},{"title":"Get Token Price History","openapi":"get /2/token/price-history","href":"/spot/data/token-price-history"},{"title":"Get Market OHLCV History","openapi":"get /2/market/ohlcv-history","href":"/spot/data/market-ohlcv-history"},{"title":"Get Token OHLCV History","openapi":"get /2/token/ohlcv-history","href":"/spot/data/token-ohlcv-history"}]},{"group":"Trades","pages":[{"title":"Get Token Trades","openapi":"get /2/token/trades","href":"/spot/data/token-trades"},{"title":"Get Enriched Token Trades","openapi":"get /2/token/trades-enriched","href":"/spot/data/token-trades-enriched"},{"title":"Get Token Trade by Transaction","openapi":"get /2/token/trade","href":"/spot/data/token-trade"},{"title":"Batch Download Trades","openapi":"get /2/trades/filters","href":"/spot/data/trades-filters"},{"title":"Get Pair Trades","openapi":"get /1/market/trades/pair","href":"/spot/data/market-trades-pair"}]},{"group":"Holders","pages":[{"title":"Get Top Token Trader Positions","openapi":"get /2/token/trader-positions","href":"/spot/data/token-trader-positions"},{"title":"Get Token Holder Positions","openapi":"get /2/token/holder-positions","href":"/spot/data/token-holder-positions"}]},{"group":"Pulse","pages":[{"title":"Get Pulse - POST Method","openapi":"post /2/pulse","href":"/spot/data/pulse-post"}]},{"group":"Wallet","pages":[{"title":"Get Wallet Holdings","openapi":"get /2/wallet/holdings","href":"/spot/data/wallet-holdings"},{"title":"Get Crypto Holdings","openapi":"get /1/wallet/portfolio","href":"/spot/data/wallet-portfolio"},{"title":"Get Wallet Trades","openapi":"get /2/wallet/trades","href":"/spot/data/wallet-trades-v2"},{"title":"Get Wallet Positions with PnL","openapi":"get /2/wallet/positions","href":"/spot/data/wallet-positions"},{"title":"Get Wallet Position with PnL","openapi":"get /2/wallet/position","href":"/spot/data/wallet-position"},{"title":"Get Wallet Activity","openapi":"get /2/wallet/activity","href":"/spot/data/wallet-activity"},{"title":"Get Wallet Trading Analysis","openapi":"get /2/wallet/analysis","href":"/spot/data/wallet-analysis"},{"title":"Get Wallet Funding Source","openapi":"get /2/wallet/funding","href":"/spot/data/wallet-funding"},{"title":"Get Historical Net Worth","openapi":"get /1/wallet/history","href":"/spot/data/wallet-history"},{"title":"Get Wallet DeFi Positions","openapi":"get /2/wallet/defi-positions","href":"/spot/data/wallet-defi-positions"},{"title":"Get NFTs Holdings","openapi":"get /1/wallet/nfts","href":"/spot/data/wallet-nfts"},{"title":"Get Wallet Deployer Tokens","openapi":"get /2/wallet/deployer","href":"/spot/data/wallet-deployer"},{"title":"Get Wallet Labels","openapi":"get /2/wallet/labels","href":"/spot/data/wallet-labels-get"},{"title":"Search Wallet Labels","openapi":"get /2/wallet/labels/search","href":"/spot/data/wallet-labels-search"},{"openapi":"get /1/token/first-buyers","title":"Get first buyers for a token","href":"/spot/data/wallet-first-buyers"}]},{"group":"Streams","pages":[{"title":"Market Details Stream","asyncapi":"spot/streams/asyncapi.yaml marketDetails","href":"/spot/streams/wss-market-details"},{"title":"Token Details Stream","asyncapi":"spot/streams/asyncapi.yaml tokenDetails","href":"/spot/streams/wss-token-details"},{"title":"Fast Trades Stream","asyncapi":"spot/streams/asyncapi.yaml fastTrades","href":"/spot/streams/wss-fast-trades"},{"title":"OHLCV Stream","asyncapi":"spot/streams/asyncapi.yaml ohlcv","href":"/spot/streams/ohlcv-stream"},{"title":"Pulse Stream V2","asyncapi":"spot/streams/asyncapi.yaml pulseV2","href":"/spot/streams/pulse-stream-v2"},{"title":"Pulse Stream V2 (Pool-Based)","asyncapi":"spot/streams/asyncapi.yaml pulseV2PoolBased","href":"/spot/streams/pulse-stream-v2-pool-based"},{"title":"Holders Stream","asyncapi":"spot/streams/asyncapi.yaml holders","href":"/spot/streams/holders-stream"},{"title":"Position Stream","asyncapi":"spot/streams/asyncapi.yaml position","href":"/spot/streams/wss-position-stream"},{"title":"Positions Stream","asyncapi":"spot/streams/asyncapi.yaml positions","href":"/spot/streams/wss-positions-stream"},{"title":"Balance Stream","asyncapi":"spot/streams/asyncapi.yaml balance","href":"/spot/streams/wss-balance-stream"},{"title":"Multi-Events Stream","asyncapi":"spot/streams/asyncapi.yaml multiEventsStream","href":"/spot/streams/multi-events-stream"}]}]},{"tab":"Perps","groups":[{"group":"Introduction","pages":[{"title":"Perpetuals APIs","icon":"chart-mixed","href":"/perps-introduction"},{"title":"Perp Fees","sidebarTitle":"Fees","icon":"coins","href":"/perps-fees"}]},{"group":"Data","pages":[{"title":"Get Perp Pairs","openapi":"GET /2/perp/pairs","href":"/data/perps/perp-pairs"},{"title":"Get Perp Positions","openapi":"GET /2/wallet/positions/perp/open","href":"/data/perps/wallet-perp-positions"},{"title":"Get Perp Unfilled Orders","openapi":"GET /2/wallet/positions/perp/unfilled","href":"/data/perps/wallet-perp-orders"},{"title":"Get Funding Rate","openapi":"get /1/market/cefi/funding-rate","href":"/data/perps/market-cefi-funding-rate"},{"title":"Get Perp Chart","openapi":"GET /2/perp/ohlcv-history","href":"/data/perps/perp-chart"},{"title":"Generate Perp Chart Image","openapi":"POST /2/perp/chart","href":"/data/perps/perp-chart-image"},{"title":"Get Perp DEX Status","openapi":"GET /2/perp/dex-status","href":"/data/perps/perp-dex-status"}]},{"group":"Execution","pages":[{"title":"Get Perp Quote","openapi":"POST /2/perp/quote","href":"/exec/perps/perp-quote"},{"title":"Build Create-Account Payload","openapi":"POST /2/perp/payloads/create-account","href":"/exec/perps/perp-payload-create-account"},{"title":"Build Deposit Payload","openapi":"POST /2/perp/payloads/deposit","href":"/exec/perps/perp-payload-deposit"},{"title":"Build Withdraw Payload","openapi":"POST /2/perp/payloads/withdraw","href":"/exec/perps/perp-payload-withdraw"},{"title":"Build Create-Order Payload","openapi":"POST /2/perp/payloads/create-order","href":"/exec/perps/perp-payload-create-order"},{"title":"Build Close-Position Payload","openapi":"POST /2/perp/payloads/close-position","href":"/exec/perps/perp-payload-close-position"},{"title":"Build Cancel-Order Payload","openapi":"POST /2/perp/payloads/cancel-order","href":"/exec/perps/perp-payload-cancel-order"},{"title":"Build Edit-Order Payload","openapi":"POST /2/perp/payloads/edit-order","href":"/exec/perps/perp-payload-edit-order"},{"title":"Build Update-Margin Payload","openapi":"POST /2/perp/payloads/update-margin","href":"/exec/perps/perp-payload-update-margin"},{"title":"Execute Perp Action","openapi":"POST /2/perp/execute-v2","href":"/exec/perps/perp-execute"},{"title":"Check Perp Process","openapi":"GET /2/perp/check-process","href":"/exec/perps/perp-check-process"}]},{"group":"Cookbook","pages":[{"title":"Execute Perp Trades End-to-End","href":"/cookbooks/perp-execution-flow"},{"title":"Retrieve All Perp Markets","href":"/cookbooks/retrieve-perp-markets"}]},{"group":"Streams","pages":[{"title":"Perp Positions Stream","asyncapi":"streams/asyncapi.yaml perpPositions","href":"/streams/wss-perp-positions"},{"title":"Perp Events Stream","asyncapi":"streams/asyncapi.yaml perpEvents","href":"/streams/wss-perp-events"},{"title":"Funding Stream","asyncapi":"streams/asyncapi.yaml funding","href":"/streams/wss-funding"}]},{"group":"Reference","pages":[{"title":"Perpetuals (Perps)","href":"/indexing-stream/stream/data-model/perps-data-model"}]}]},{"tab":"Chains","groups":[{"group":"Blockchains","pages":[{"title":"Supported Chains","href":"/blockchains/intro-blockchains"}]},{"group":"Supported Chains","pages":[{"title":"Real-Time Data for Abstract API","sidebarTitle":"Abstract","href":"/blockchains/abstract"},{"title":"Real-Time Data for Alephium API","sidebarTitle":"Alephium","href":"/blockchains/alephium"},{"title":"Real-Time Data for ApeChain API","sidebarTitle":"ApeChain","href":"/blockchains/apechain"},{"title":"Real-Time Data for Arbitrum API","sidebarTitle":"Arbitrum","href":"/blockchains/arbitrum"},{"title":"Real-Time Data for Arbitrum Nova API","sidebarTitle":"Arbitrum Nova","href":"/blockchains/arbitrum-nova"},{"title":"Real-Time Data for Arbitrum Sepolia Testnet API","sidebarTitle":"Arbitrum Sepolia Testnet","href":"/blockchains/arbitrum-sepolia-testnet"},{"title":"Real-Time Data for Arc API","sidebarTitle":"Arc","href":"/blockchains/arc"},{"title":"Real-Time Data for Arthera API","sidebarTitle":"Arthera","href":"/blockchains/arthera"},{"title":"Real-Time Data for Arthera Testnet API","sidebarTitle":"Arthera Testnet","href":"/blockchains/arthera-testnet"},{"title":"Real-Time Data for Astar API","sidebarTitle":"Astar","href":"/blockchains/astar"},{"title":"Real-Time Data for Aurora API","sidebarTitle":"Aurora","href":"/blockchains/aurora"},{"title":"Real-Time Data for Avalanche C-Chain API","sidebarTitle":"Avalanche C-Chain","href":"/blockchains/avalanche"},{"title":"Real-Time Data for Bahamut API","sidebarTitle":"Bahamut","href":"/blockchains/bahamut"},{"title":"Real-Time Data for Base API","sidebarTitle":"Base","href":"/blockchains/base"},{"title":"Real-Time Data for Berachain API","sidebarTitle":"Berachain","href":"/blockchains/berachain"},{"title":"Real-Time Data for Berachain bArtio API","sidebarTitle":"Berachain bArtio","href":"/blockchains/berachain-bartio"},{"title":"Real-Time Data for BitTorrent Chain API","sidebarTitle":"BitTorrent Chain","href":"/blockchains/bittorrent-chain"},{"title":"Real-Time Data for Blast API","sidebarTitle":"Blast","href":"/blockchains/blast"},{"title":"Real-Time Data for BNB Smart Chain (BEP20) API","sidebarTitle":"BNB Smart Chain (BEP20)","href":"/blockchains/bsc"},{"title":"Real-Time Data for BOB API","sidebarTitle":"BOB","href":"/blockchains/bob"},{"title":"Real-Time Data for Boba API","sidebarTitle":"Boba","href":"/blockchains/boba"},{"title":"Real-Time Data for Botanix API","sidebarTitle":"Botanix","href":"/blockchains/botanix"},{"title":"Real-Time Data for Canto API","sidebarTitle":"Canto","href":"/blockchains/canto"},{"title":"Real-Time Data for Celestia API","sidebarTitle":"Celestia","href":"/blockchains/celestia"},{"title":"Real-Time Data for Celo API","sidebarTitle":"Celo","href":"/blockchains/celo"},{"title":"Real-Time Data for Celo Alfajores Testnet API","sidebarTitle":"Celo Alfajores Testnet","href":"/blockchains/celo-alfajores-testnet"},{"title":"Real-Time Data for Conflux API","sidebarTitle":"Conflux","href":"/blockchains/conflux"},{"title":"Real-Time Data for Cronos API","sidebarTitle":"Cronos","href":"/blockchains/cronos"},{"title":"Real-Time Data for Degen API","sidebarTitle":"Degen","href":"/blockchains/degen"},{"title":"Real-Time Data for DFK Subnet API","sidebarTitle":"DFK Subnet","href":"/blockchains/dfk-subnet"},{"title":"Real-Time Data for EOS API","sidebarTitle":"EOS","href":"/blockchains/eos"},{"title":"Real-Time Data for Ethereum API","sidebarTitle":"Ethereum","href":"/blockchains/ethereum"},{"title":"Real-Time Data for Ethereum Sepolia Testnet API","sidebarTitle":"Ethereum Sepolia Testnet","href":"/blockchains/ethereum-sepolia-testnet"},{"title":"Real-Time Data for Fantom API","sidebarTitle":"Fantom","href":"/blockchains/fantom"},{"title":"Real-Time Data for GraphLinq API","sidebarTitle":"GraphLinq","href":"/blockchains/graphlinq"},{"title":"Real-Time Data for GTE Devnet API","sidebarTitle":"GTE Devnet","href":"/blockchains/gte-devnet"},{"title":"Real-Time Data for Harmony API","sidebarTitle":"Harmony","href":"/blockchains/harmony"},{"title":"Real-Time Data for HECO API","sidebarTitle":"HECO","href":"/blockchains/heco"},{"title":"Real-Time Data for Hedera API","sidebarTitle":"Hedera","href":"/blockchains/hedera"},{"title":"Real-Time Data for HyperEVM API","sidebarTitle":"HyperEVM","href":"/blockchains/hyperevm"},{"title":"Real-Time Data for HyperEVM Testnet API","sidebarTitle":"HyperEVM Testnet","href":"/blockchains/hyperevm-testnet"},{"title":"Real-Time Data for Immutable zkEVM API","sidebarTitle":"Immutable zkEVM","href":"/blockchains/immutable-zkevm"},{"title":"Real-Time Data for Ink API","sidebarTitle":"Ink","href":"/blockchains/ink"},{"title":"Real-Time Data for Klaytn API","sidebarTitle":"Klaytn","href":"/blockchains/klaytn"},{"title":"Real-Time Data for Kucoin API","sidebarTitle":"Kucoin","href":"/blockchains/kucoin"},{"title":"Real-Time Data for Linea API","sidebarTitle":"Linea","href":"/blockchains/linea"},{"title":"Real-Time Data for Manta API","sidebarTitle":"Manta","href":"/blockchains/manta"},{"title":"Real-Time Data for Mantle API","sidebarTitle":"Mantle","href":"/blockchains/mantle"},{"title":"Real-Time Data for Matchain API","sidebarTitle":"Matchain","href":"/blockchains/matchain"},{"title":"Real-Time Data for Mega Testnet API","sidebarTitle":"Mega Testnet","href":"/blockchains/mega-testnet"},{"title":"Real-Time Data for MegaETH API","sidebarTitle":"MegaETH","href":"/blockchains/megaeth"},{"title":"Real-Time Data for Merlin API","sidebarTitle":"Merlin","href":"/blockchains/merlin"},{"title":"Real-Time Data for Metis API","sidebarTitle":"Metis","href":"/blockchains/metis"},{"title":"Real-Time Data for Mode API","sidebarTitle":"Mode","href":"/blockchains/mode"},{"title":"Real-Time Data for Monad API","sidebarTitle":"Monad","href":"/blockchains/monad"},{"title":"Real-Time Data for Monad Testnet API","sidebarTitle":"Monad Testnet","href":"/blockchains/monad-testnet"},{"title":"Real-Time Data for Moonbeam API","sidebarTitle":"Moonbeam","href":"/blockchains/moonbeam"},{"title":"Real-Time Data for Moonriver API","sidebarTitle":"Moonriver","href":"/blockchains/moonriver"},{"title":"Real-Time Data for Oasis API","sidebarTitle":"Oasis","href":"/blockchains/oasis"},{"title":"Real-Time Data for Oasis Sapphire API","sidebarTitle":"Oasis Sapphire","href":"/blockchains/oasis-sapphire"},{"title":"Real-Time Data for OKEX API","sidebarTitle":"OKEX","href":"/blockchains/okex"},{"title":"Real-Time Data for Optimistic API","sidebarTitle":"Optimistic","href":"/blockchains/optimistic"},{"title":"Real-Time Data for Plasma API","sidebarTitle":"Plasma","href":"/blockchains/plasma"},{"title":"Real-Time Data for Plume API","sidebarTitle":"Plume","href":"/blockchains/plume"},{"title":"Real-Time Data for Polygon API","sidebarTitle":"Polygon","href":"/blockchains/polygon"},{"title":"Real-Time Data for Polygon zkEVM API","sidebarTitle":"Polygon zkEVM","href":"/blockchains/polygon-zkevm"},{"title":"Real-Time Data for Robinhood Chain API","sidebarTitle":"Robinhood Chain","href":"/blockchains/robinhood"},{"title":"Real-Time Data for Scroll API","sidebarTitle":"Scroll","href":"/blockchains/scroll"},{"title":"Real-Time Data for Secret Network API","sidebarTitle":"Secret Network","href":"/blockchains/secret-network"},{"title":"Real-Time Data for Sei API","sidebarTitle":"Sei","href":"/blockchains/sei"},{"title":"Real-Time Data for Shibarium API","sidebarTitle":"Shibarium","href":"/blockchains/shibarium"},{"title":"Real-Time Data for Shimmer EVM API","sidebarTitle":"Shimmer EVM","href":"/blockchains/shimmer-evm"},{"title":"Real-Time Data for SmartBCH API","sidebarTitle":"SmartBCH","href":"/blockchains/smartbch"},{"title":"Real-Time Data for Solana API","sidebarTitle":"Solana","href":"/blockchains/solana"},{"title":"Real-Time Data for Sonic API","sidebarTitle":"Sonic","href":"/blockchains/sonic"},{"title":"Real-Time Data for Stable API","sidebarTitle":"Stable","href":"/blockchains/stable"},{"title":"Real-Time Data for Starknet API","sidebarTitle":"Starknet","href":"/blockchains/starknet"},{"title":"Real-Time Data for Stellar API","sidebarTitle":"Stellar","href":"/blockchains/stellar"},{"title":"Real-Time Data for Stellar Testnet API","sidebarTitle":"Stellar Testnet","href":"/blockchains/stellar-testnet"},{"title":"Real-Time Data for Story API","sidebarTitle":"Story","href":"/blockchains/story"},{"title":"Real-Time Data for Sui API","sidebarTitle":"Sui","href":"/blockchains/sui"},{"title":"Real-Time Data for Supra API","sidebarTitle":"Supra","href":"/blockchains/supra"},{"title":"Real-Time Data for Supra Testnet API","sidebarTitle":"Supra Testnet","href":"/blockchains/supra-testnet"},{"title":"Real-Time Data for Taiko API","sidebarTitle":"Taiko","href":"/blockchains/taiko"},{"title":"Real-Time Data for TON API","sidebarTitle":"TON","href":"/blockchains/ton"},{"title":"Real-Time Data for Unichain API","sidebarTitle":"Unichain","href":"/blockchains/unichain"},{"title":"Real-Time Data for Vanar API","sidebarTitle":"Vanar","href":"/blockchains/vanar"},{"title":"Real-Time Data for Vanar Vanguard Testnet API","sidebarTitle":"Vanar Vanguard Testnet","href":"/blockchains/vanar-vanguard-testnet"},{"title":"Real-Time Data for Velas API","sidebarTitle":"Velas","href":"/blockchains/velas"},{"title":"Real-Time Data for Wemix API","sidebarTitle":"Wemix","href":"/blockchains/wemix"},{"title":"Real-Time Data for X Layer API","sidebarTitle":"X Layer","href":"/blockchains/x-layer"},{"title":"Real-Time Data for XDAI API","sidebarTitle":"XDAI","href":"/blockchains/xdai"},{"title":"Real-Time Data for Zetachain API","sidebarTitle":"Zetachain","href":"/blockchains/zetachain"},{"title":"Real-Time Data for ZkLink Nova API","sidebarTitle":"ZkLink Nova","href":"/blockchains/zklink-nova"},{"title":"Real-Time Data for ZkSync API","sidebarTitle":"ZkSync","href":"/blockchains/zksync"},{"title":"Real-Time Data for Zora API","sidebarTitle":"Zora","href":"/blockchains/zora"}]}]},{"tab":"Cookbooks","groups":[{"group":"Introduction","pages":[{"title":"Cookbooks","href":"/cookbooks/introduction"}]},{"group":"Building Frontends","pages":[{"title":"Build an Axiom-Style Pulse Feature with Next.js","href":"/cookbooks/build-axiom-pulse-feature"},{"title":"Build a Real-Time Holders Tab Like Axiom","href":"/cookbooks/build-real-time-holders-tab"},{"title":"Setup Trading View Charting Library JS for Crypto","href":"/cookbooks/setup-trading-view-chart"}]},{"group":"Data Access Patterns","pages":[{"title":"How to Access Axiom Data Using Mobulaβs Unified Crypto API","href":"/cookbooks/axiom-data-api"},{"title":"How to get token ATH/ATL values on Solana, Base \u0026 +50 other chains","href":"/cookbooks/get-token-ath-atl"},{"title":"How to Download Entire History of Trades on Solana, BNB, Base, Ethereum \u0026 +50 chains","href":"/cookbooks/batch-download-trades"},{"title":"How to Find Bonding Curve Address of a Token on Solana, Base, BNB \u0026 More","href":"/cookbooks/find-bonding-curve-address"},{"title":"Build a simple app with multi-chain prices, wallet balances, and transaction history","href":"/cookbooks/multi-chain-prices-balances-history"},{"title":"Analyze LP Locking \u0026 Rug Pull Risk","href":"/cookbooks/token-security-liquidity-analysis"}]},{"group":"Webhooks","pages":[{"title":"Wallet Balance Tracking Cookbook","href":"/indexing-stream/stream/webhook/wallet-balance-tracking-cookbook"}]}]},{"tab":"Almanac","groups":[{"group":"Memecoin","pages":[{"title":"Understanding Trade Fees - Complete Fee Breakdown","sidebarTitle":"Trade Fees","href":"/almanac/understanding-trade-fees"},{"title":"Bonding Curves Mathematics","href":"/almanac/bonding-curves"},{"title":"Detecting Snipers \u0026 Bundlers","href":"/almanac/detecting-snipers-bundlers"}]},{"group":"Spot Markets","pages":[{"title":"Pricing Engine Deep Dive","href":"/almanac/pricing-engine"},{"title":"Borsh Parsing for Solana Instructions and Logs","href":"/almanac/borsh-parsing-solana"}]},{"group":"Robinhood","pages":[{"title":"How to Integrate ApeStore on Robinhood Chain","href":"/almanac/robinhood-launchpads/apestore"},{"title":"How to Integrate Bottom.fun on Robinhood Chain","href":"/almanac/robinhood-launchpads/bottomfun"},{"title":"How to Integrate Bow.fun on Robinhood Chain","href":"/almanac/robinhood-launchpads/bowfun"},{"title":"How to Integrate DYOR.fun on Robinhood Chain","href":"/almanac/robinhood-launchpads/dyorfun"},{"title":"How to Integrate Hood.fun on Robinhood Chain","href":"/almanac/robinhood-launchpads/hoodfun"},{"title":"How to Integrate Klik on Robinhood Chain","href":"/almanac/robinhood-launchpads/klik"},{"title":"How to Integrate LaunchProof on Robinhood Chain","href":"/almanac/robinhood-launchpads/launchproof"},{"title":"How to Integrate Long.xyz on Robinhood Chain","href":"/almanac/robinhood-launchpads/longxyz"},{"title":"How to Integrate Pons on Robinhood Chain","href":"/almanac/robinhood-launchpads/pons"},{"title":"How to Integrate RobinFun on Robinhood Chain","href":"/almanac/robinhood-launchpads/robinfun"},{"title":"How to Integrate Printr on Robinhood Chain","href":"/almanac/robinhood-launchpads/printr"},{"title":"How to Integrate NoxaFun on Robinhood Chain","href":"/almanac/robinhood-launchpads/noxafun"},{"title":"How to Integrate RealFun on Robinhood Chain","href":"/almanac/robinhood-launchpads/realfun"}]}]},{"tab":"Changelog","groups":[{"group":"Changelog","pages":[{"title":"Changelog","href":"/changelog/introduction"}]},{"group":"2026","pages":[{"title":"August 6, 2026 - Cleaner Trader Rankings \u0026 Native Balances on Positions","href":"/changelog/2026-08-06"},{"title":"β¨ May 30, 2026 - Solana Minimum Fees: native-SOL floor \u0026 flat token fees","href":"/changelog/2026-05-30"},{"title":"πͺͺ May 16, 2026 - OG Coin Flag","href":"/changelog/2026-05-16"},{"title":"β¨ May 11, 2026 - Execution Analytics, TON Swap Quoting \u0026 Per-Chain Execution Docs","href":"/changelog/2026-05-11"},{"title":"β¨ May 7, 2026 - TON Swap Execution, Funding Wallet Metadata \u0026 DAMM V2 Locked Liquidity","href":"/changelog/2026-05-07"},{"title":"β¨ May 2, 2026 - Pulse LP Token Filter","href":"/changelog/2026-05-02"},{"title":"β¨ April 29, 2026 - Fast Search Liquidity Sort \u0026 Bridge Minimum","href":"/changelog/2026-04-29"},{"title":"β¨ April 27, 2026 - Bridge History \u0026 Explorer Endpoints, Prediction Markets Redeem","href":"/changelog/2026-04-27"},{"title":"β¨ April 26, 2026 - Swap Router on Linea, Blast, Mantle, Gnosis, Monad \u0026 MegaETH","href":"/changelog/2026-04-26"},{"title":"β¨ April 24, 2026 - Clankr Dev Fees Claimed","href":"/changelog/2026-04-24"},{"title":"β¨ April 23, 2026 - Wallet Position History, Bridge ERC20 Deposits \u0026 Per-Entity PubSub Channels","href":"/changelog/2026-04-23"},{"title":"β¨ April 22, 2026 - Dev History Endpoint, Klik Finance Support \u0026 Batch Event/OHLCV API","href":"/changelog/2026-04-22"},{"title":"β¨ April 21, 2026 - Fast Search POST Endpoint, Transfer Tax Detection \u0026 GraphQL Subscriptions","href":"/changelog/2026-04-21"},{"title":"β¨ April 20, 2026 - Quote Token Positions, LP Burn Percentage, Wallet Backfill Status \u0026 Pulse Asset Mode Filters","href":"/changelog/2026-04-20"},{"title":"β¨ April 19, 2026 - DexScreener Enhanced Profiles \u0026 CTO History","href":"/changelog/2026-04-19"},{"title":"β¨ April 18, 2026 - WebSocket Stream Improvements, Holdings Stream Perf Improvements \u0026 Trade Freshness","href":"/changelog/2026-04-18"},{"title":"β¨ April 12, 2026 - Token Trades Auto-Detection, Metaplex Genesis, Holder Tagging \u0026 Swagger Improvements","href":"/changelog/2026-04-12"},{"title":"β¨ April 11, 2026 - Wallet Funding Endpoint, Solana SPL Bridge \u0026 Free Bridge","href":"/changelog/2026-04-11"},{"title":"β¨ April 10, 2026 - Bounties System, Fast Search \u0026 Pulse WebSocket Filters","href":"/changelog/2026-04-10"},{"title":"β¨ April 9, 2026 - Livo Launchpad, GraphQL API \u0026 Bridge API Alpha","href":"/changelog/2026-04-09"},{"title":"β¨ April 8, 2026 - API Key Rate Limiting \u0026 Fast Trade Outlier Filtering","href":"/changelog/2026-04-08"},{"title":"β¨ April 7, 2026 - API Key Attribution, Billing Alerts \u0026 Bridge Improvements","href":"/changelog/2026-04-07"},{"title":"β¨ March 31, 2026 - Enhanced Position Fee Tracking \u0026 Pulse Performance","href":"/changelog/2026-03-31"},{"title":"β¨ March 30, 2026 - Base Pulse Perf Improvements, New Positions Fields \u0026 New Search Filters","href":"/changelog/2026-03-30"},{"title":"β¨ March 28, 2026 - Transfer Extractor, Trading Platform Discovery \u0026 MPP Support","href":"/changelog/2026-03-28"},{"title":"β¨ March 25, 2026 - Docs Benchmarks, Batch Backfill Positions \u0026 Spot Tab","href":"/changelog/2026-03-25"},{"title":"β¨ March 24, 2026 - Solana LP Analysis, Token Price-At Market Cap \u0026 Holders Performance","href":"/changelog/2026-03-24"},{"title":"β¨ March 23, 2026 - WebSocket Sessions Playground, Discord Onboarding \u0026 Holders LP Fix","href":"/changelog/2026-03-23"},{"title":"β¨ March 22, 2026 - Burned LP Detection, Multi-Word Search, MPP Subscriptions \u0026 Agentic Payments","href":"/changelog/2026-03-22"},{"title":"β¨ March 21, 2026 - Per-Wallet Rebuild, GMGN Socials \u0026 Source Factory Metadata","href":"/changelog/2026-03-21"},{"title":"β¨ March 20, 2026 - ERC4626 Vault Pricing, Swap Recipient Mode \u0026 Subscription Tags","href":"/changelog/2026-03-20"},{"title":"β¨ March 19, 2026 - Batch Holder/Trader Positions, HyperLiquid Bridge \u0026 Holders Stream Sort","href":"/changelog/2026-03-19"},{"title":"β¨ March 18, 2026 - Aggregated Feed Price Guardrails, Pulse Metadata \u0026 PM Docs Finalization","href":"/changelog/2026-03-18"},{"title":"β¨ March 17, 2026 - Trades Enriched PnL, OHLCV Accuracy \u0026 Fast Search","href":"/changelog/2026-03-17"},{"title":"β¨ March 16, 2026 - Aggregated Feed Limits, WSS Discounts \u0026 PM Docs Alignment","href":"/changelog/2026-03-16"},{"title":"β¨ March 15, 2026 - Prediction Markets Docs, x402 Payments \u0026 Perps Improvements","href":"/changelog/2026-03-15"},{"title":"β¨ March 14, 2026 - DeFi Lending Enrichment, Swap Routing Safety \u0026 Onboarding","href":"/changelog/2026-03-14"},{"title":"β¨ March 13, 2026 - PCS Infinity Router, PumpFun Agent Detection \u0026 Flaunch V4","href":"/changelog/2026-03-13"},{"title":"β¨ March 12, 2026 - Batch Wallet Positions, Cross-Chain Bridge \u0026 SafeERC20 Router","href":"/changelog/2026-03-12"},{"title":"β¨ March 11, 2026 - Chinese Search, Wallet Funding Info \u0026 Routing Performance","href":"/changelog/2026-03-11"},{"title":"β¨ March 10, 2026 - Aave aToken Pricing, V4 Hooked Pools \u0026 Native ETH E2E Tests","href":"/changelog/2026-03-10"},{"title":"β¨ March 9, 2026 - V4 Native ETH Routing, ATH/ATL Aggregation \u0026 Swap Recipient Filter","href":"/changelog/2026-03-09"},{"title":"π§ March 8, 2026 - PCS Infinity CL Fix \u0026 Liquidity Outlier Fix","href":"/changelog/2026-03-08"},{"title":"β¨ March 7, 2026 - LP Burn Verification, Fees-to-Volume Ratio \u0026 X Tracker","href":"/changelog/2026-03-07"},{"title":"β¨ March 6, 2026 - GraphQL API, Bundler Detection V3 \u0026 FourMeme Sells","href":"/changelog/2026-03-06"},{"title":"β¨ March 5, 2026 - FourMeme Direct Swap, Uniswap V4 Batch Sync \u0026 Low Liquidity Detection","href":"/changelog/2026-03-05"},{"title":"π§ March 4, 2026 - Hyperliquid HIP-3, Fee Detection Hardening \u0026 New Docs","href":"/changelog/2026-03-04"},{"title":"β¨ March 3, 2026 - Agent Mode, Token Expiry WSS \u0026 MEV Protection","href":"/changelog/2026-03-03"},{"title":"β¨ March 2, 2026 - MEV Execution Upgrades, wSOL Fee Detection \u0026 OHLCV Period Expansion","href":"/changelog/2026-03-02"},{"title":"β¨ March 1, 2026 - Slipstream Routing \u0026 Base Chain Internal Routing","href":"/changelog/2026-03-01"},{"title":"β¨ February 28, 2026 - PancakeSwap Infinity Support \u0026 Lighthouse Popover","href":"/changelog/2026-02-28"},{"title":"β¨ February 27, 2026 - Historical Price-At Endpoint, Maverick V2 \u0026 Transfer Stream Balances","href":"/changelog/2026-02-27"},{"title":"February 26, 2026 - MobulaRouter Multi-Chain Deployment \u0026 Aggregator Routing","href":"/changelog/2026-02-26"},{"title":"π§ February 25, 2026 - Metered Billing Top-Up Support \u0026 Dashboard Usage Display","href":"/changelog/2026-02-25"},{"title":"β¨ February 24, 2026 - Wallet Trades V2 \u0026 WSS Per-Subscription Throttle","href":"/changelog/2026-02-24"},{"title":"β¨ February 23, 2026 - Buy/Sell Filter on Token Trades, Lighthouse MEV Volume \u0026 5m Linechart","href":"/changelog/2026-02-23"},{"title":"β¨ February 22, 2026 - Lighthouse DEX Attribution, Mayhem/Cashback Flags \u0026 Pool Bonding Detection","href":"/changelog/2026-02-22"},{"title":"β¨ February 21, 2026 - USD Fee Calculations in Swap Streams","href":"/changelog/2026-02-21"},{"title":"β¨ February 20, 2026 - OHLCV 2000 Candles, Virtuals V2 \u0026 Wallet Metadata in Streams","href":"/changelog/2026-02-20"},{"title":"β¨ February 19, 2026 - Market Lighthouse Endpoint \u0026 Versioned Solana Swaps","href":"/changelog/2026-02-19"},{"title":"β¨ February 18, 2026 - Wallet Labels Endpoint, WSS Subscription Tracking \u0026 UniswapV4 Router","href":"/changelog/2026-02-18"},{"title":"β¨ February 17, 2026 - Single Subscription Model, Perf Tracing \u0026 Endpoint-Wise Calls","href":"/changelog/2026-02-17"},{"title":"π§ February 16, 2026 - SDK/Types Release \u0026 Free Plan Rate Limiting","href":"/changelog/2026-02-16"},{"title":"β¨ February 15, 2026 - Token Price History Endpoint","href":"/changelog/2026-02-15"},{"title":"π§ February 14, 2026 - BankrV4 Pool \u0026 v1 Endpoint Deprecations","href":"/changelog/2026-02-14"},{"title":"β¨ February 13, 2026 - Meteora DAMM v2 DeFi Positions","href":"/changelog/2026-02-13"},{"title":"π§ February 12, 2026 - Org API Keys \u0026 Transfer Serialization","href":"/changelog/2026-02-12"},{"title":"β‘ February 11, 2026 - 5x Balances Speedup \u0026 RPC Failover","href":"/changelog/2026-02-11"},{"title":"β¨ February 10, 2026 - MegaETH Miniblocks, OHLCV Gap Fill \u0026 Position Grace Period","href":"/changelog/2026-02-10"},{"title":"β¨ February 9, 2026 - Firelaunch (MegaETH), ClankerV3 \u0026 ZoraV3 Pools","href":"/changelog/2026-02-09"},{"title":"π§ February 8, 2026 - RPC Balance Verification \u0026 Fee Precision","href":"/changelog/2026-02-08"},{"title":"β¨ February 7, 2026 - Pumpfun V1, RPC Load Balancing \u0026 Wallet Analysis Defaults","href":"/changelog/2026-02-07"},{"title":"β¨ February 6, 2026 - Flexible Trade Limits \u0026 OHLCV Endpoints","href":"/changelog/2026-02-06"},{"title":"β¨ February 5, 2026 - PnL Breakdown \u0026 Wallet Labels","href":"/changelog/2026-02-05"},{"title":"β¨ February 4, 2026 - Batch Trades Download","href":"/changelog/2026-02-04"},{"title":"π§ February 3, 2026 - Embed Chart Settings","href":"/changelog/2026-02-03"},{"title":"β¨ February 2, 2026 - Position Fees Tracking","href":"/changelog/2026-02-02"},{"title":"β¨ February 1, 2026 - Swap Recipient Mode","href":"/changelog/2026-02-01"},{"title":"β‘ January 31, 2026 - UniswapV4 Optimizations","href":"/changelog/2026-01-31"},{"title":"β‘ January 30, 2026 - Flashblocks on Base","href":"/changelog/2026-01-30"},{"title":"β¨ January 29, 2026 - Lighter Funding Rates","href":"/changelog/2026-01-29"},{"title":"β¨ January 28, 2026 - Chart Trade Marks \u0026 Solana Funding","href":"/changelog/2026-01-28"},{"title":"β¨ January 27, 2026 - Protocol Logos \u0026 Lido Support","href":"/changelog/2026-01-27"},{"title":"β¨ January 26, 2026 - EVM DeFi Positions \u0026 Performance","href":"/changelog/2026-01-26"},{"title":"β¨ January 25, 2026 - Portfolio Liquidity Datapoint","href":"/changelog/2026-01-25"},{"title":"β¨ January 24, 2026 - Perpetual Execution Engine","href":"/changelog/2026-01-24"},{"title":"β¨ January 23, 2026 - Perpetual Position Tracking","href":"/changelog/2026-01-23"},{"title":"β¨ January 22, 2026 - Solana Native Staking in DeFi Positions","href":"/changelog/2026-01-22"},{"title":"β¨ January 21, 2026 - Gate.io Funding Rates Integration","href":"/changelog/2026-01-21"},{"title":"β¨ January 20, 2026 - Fluid DEX Integration","href":"/changelog/2026-01-20"},{"title":"β‘ January 19, 2026 - EVM Execution Engine Performance Optimization","href":"/changelog/2026-01-19"},{"title":"β¨ January 18, 2026 - Market Addresses in Token Trade API","href":"/changelog/2026-01-18"},{"title":"β‘ January 17, 2026 - Fast-Trades \u0026 OHLCV 1s Latency Optimization, Bundle Detection \u0026 Pulse ATH/ATL Filters","href":"/changelog/2026-01-17"},{"title":"β‘ January 16, 2026 - Security Multi-Model Analysis \u0026 Holders Stats Optimization","href":"/changelog/2026-01-16"},{"title":"β¨ January 15, 2026 - Solana DeFi SDK Optimization \u0026 Drift Perps","href":"/changelog/2026-01-15"},{"title":"β¨ January 14, 2026 - Solana Token Account Details","href":"/changelog/2026-01-14"},{"title":"β¨ January 13, 2026 - Holder \u0026 Trader Positions Enhancement","href":"/changelog/2026-01-13"},{"title":"β¨ January 12, 2026 - Get Token Price Endpoint","href":"/changelog/2026-01-12"},{"title":"β¨ January 11, 2026 - Batch Wallet Positions","href":"/changelog/2026-01-11"},{"title":"β‘ January 10, 2026 - Wallet/Position Performance Boost","href":"/changelog/2026-01-10"},{"title":"β¨ January 9, 2026 - Enhanced Security Analysis","href":"/changelog/2026-01-09"},{"title":"β¨ January 8, 2026 - DeFi Positions Tracking","href":"/changelog/2026-01-08"},{"title":"β¨ January 7, 2026 - Multi-Currency Support","href":"/changelog/2026-01-07"}]}]}]},"basePath":"","title":"Build Create-Account Payload - Mobula API","deploymentId":"dpl_8EwM6GvHDE9Atad6nsjp33Ag6RAo","buildId":"dpl_8EwM6GvHDE9Atad6nsjp33Ag6RAo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BoyERdFS.js","snippetPresets-C8q2Gbji.js","utils-CpBN6Etr.js","style-to-object-BY3JEAdk.js","utils-zNAjOBMC.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-BdAh9rdQ.js","conditional-requirements-CFM0id0Q.js","cloneDeep-j5WTiFul.js","_Uint8Array-oA0PurC4.js","isObject-FP1Yky1u.js","ApiExamples-DzrBy3TG.js","usePlaygroundInputsStore-CT4qyKJn.js","shallow-5XSxwWLg.js","isEqual-BBawN0ZR.js","CodeSnippets-CWYkiMOP.js","CodeSnippet-Bft-UfZ2.js","use-playground-group-access-DlgYim8U.js","Page-D2YKNFpK.js","api-description-markdown-yOSslhao.js","DynamicMarkdown-DmsT5gs8.js","SectionHeading-90bKWHaj.js","MethodPill-CB-DD0l8.js","getPastedJson-BW8mz8UR.js","Check2Icon-BRuHUJH6.js","axios-CsQoIw0U.js","Markdown-BW3i6kl0.js","AssistantPageLink-DAbgnQzJ.js","dist-DeBkd_DP.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}