The Initialize Batch Transaction endpoint compiles an array of flywheel pipelines into Solana transaction instructions and creates a batch transaction that requires approval from both company and project approvers. This endpoint is used to prepare complex multi-action operations that can include token burns, airdrops, buybacks, locks, unlocks, and memo attachments.Each pipeline automatically gets a proof memo prepended to verify the authenticity of the operation based on the provided type and payload.
This endpoint requires API key authentication. The API key must have either burn or airdrop scopes.To authenticate, provide your API key in the x-believe-api-key request header.Example:
Proof Memos: Each pipeline automatically gets a proof memo prepended to its actions. This memo contains a hash of the type and payload for verification purposes.
Transaction Size Limits: Each pipeline must fit within a single Solana transaction (max ~900 bytes of instruction data). Pipelines that are too large will be rejected.
Approval Required: The returned proposalApproveTx must be signed with your registered wallet address (the wallet address you provided during flywheel registration). This transaction requires approval from both the company approver and your project approver wallet before execution.
Action Limitations: Currently, only BURN, AIRDROP, and MEMO actions are fully implemented. BUYBACK, LOCK, and UNLOCK actions are coming soon.
Associated Token Accounts: For AIRDROP actions, the endpoint automatically creates associated token accounts for recipients if they don’t exist.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Believe API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/believe/kJ8FhCPHcVm_vcZv/logo/light.svg?fit=max\u0026auto=format\u0026n=kJ8FhCPHcVm_vcZv\u0026q=85\u0026s=bc04dddfeacbb5b595539e637a47fafd","dark":"https://mintcdn.com/believe/kJ8FhCPHcVm_vcZv/logo/dark.svg?fit=max\u0026auto=format\u0026n=kJ8FhCPHcVm_vcZv\u0026q=85\u0026s=9e2058a0aee2f1c6e849c6a649d2a5c8"},"footer":{"socials":{"x":"https://x.com/believeapp"}},"navigation":{"global":{"anchors":[{"anchor":"Website","href":"https://believe.app","icon":"book-open-cover"},{"anchor":"iOS App","href":"https://apps.apple.com/us/app/believe/id6737437664","icon":"apple"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"believe","hasAudioNarration":false,"actualSubdomain":"believe","customDomains":["docs.believe.app"],"gitSource":{"type":"github","owner":"b24-eng","repo":"believe-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e6f3bd0a90f91cb455e8","collectionId":"4c4ff7b0-30b9-4b25-a4b8-8bd717d22db3","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e6f3bd0a90f91cb455e8:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":13},{"language":"default","tag":"API Documentation","count":6},{"language":"default","tag":"Flywheel V1","count":4},{"language":"default","tag":"Tokenomics (Deprecated)","count":3}]},"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/flywheel/batch-init","slug":"/api-reference/endpoint/flywheel/batch-init","pageMetadata":{"title":"Initialize Batch Transaction","description":"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.","openapi":"POST /v1/flywheel/batch/init","href":"/api-reference/endpoint/flywheel/batch-init"},"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: \"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The Initialize Batch Transaction endpoint compiles an array of flywheel pipelines into Solana transaction instructions and creates a batch transaction that requires approval from both company and project approvers. This endpoint is used to prepare complex multi-action operations that can include token burns, airdrops, buybacks, locks, unlocks, and memo attachments.`}),`\n`,_jsx(_components.p,{children:`Each pipeline automatically gets a proof memo prepended to verify the authenticity of the operation based on the provided type and payload.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`This endpoint requires API key authentication. The API key must have either `,_jsx(_components.code,{children:`burn`}),` or `,_jsx(_components.code,{children:`airdrop`}),` scopes.`]}),`\n`,_jsxs(_components.p,{children:[`To authenticate, provide your API key in the `,_jsx(_components.code,{children:`x-believe-api-key`}),` request header.`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`x-believe-api-key: your_actual_api_key_here`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rate-limiting`,children:`Rate Limiting`}),`\n`,_jsx(_components.p,{children:`Requests to this endpoint are rate-limited to 10 requests per minute per API key.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pipelines`})}),_jsx(_components.td,{children:`Array`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Array of pipeline objects containing actions to execute.`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`pipeline-object`,children:`Pipeline Object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The type identifier for this pipeline (e.g., “WATCH_AD”, “PRODUCT_PURCHASE”).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payload`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`JSON string containing the proof data for this pipeline.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`actions`})}),_jsx(_components.td,{children:`Array`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Array of action objects to execute in this pipeline.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`action-types`,children:`Action Types`}),`\n`,_jsx(Heading,{level:`4`,id:`burn-action`,children:`BURN Action`}),`\n`,_jsx(_components.p,{children:`Burns a specified amount of tokens.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “BURN”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Amount of tokens to burn (in whole tokens)`})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`airdrop-action`,children:`AIRDROP Action`}),`\n`,_jsx(_components.p,{children:`Sends tokens to a specified wallet address.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “AIRDROP”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`toAddress`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Solana wallet address to send tokens to`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Amount of tokens to airdrop (in whole tokens)`})]})]})]}),`\n`,_jsxs(Heading,{level:`4`,id:`buyback-action-coming-soon`,children:[`BUYBACK Action `,_jsx(_components.em,{children:`(Coming Soon)`})]}),`\n`,_jsx(_components.p,{children:`Executes a token buyback operation.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “BUYBACK”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Amount of tokens to buyback (in whole tokens)`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Note: BUYBACK action is not yet implemented.`})}),`\n`,_jsxs(Heading,{level:`4`,id:`lock-action-coming-soon`,children:[`LOCK Action `,_jsx(_components.em,{children:`(Coming Soon)`})]}),`\n`,_jsx(_components.p,{children:`Locks tokens with vesting parameters.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “LOCK”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Amount of tokens to lock (in whole tokens)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vesting`})}),_jsx(_components.td,{children:`Object`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Vesting parameters for the locked tokens`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Note: LOCK action is not yet implemented.`})}),`\n`,_jsxs(Heading,{level:`4`,id:`unlock-action-coming-soon`,children:[`UNLOCK Action `,_jsx(_components.em,{children:`(Coming Soon)`})]}),`\n`,_jsx(_components.p,{children:`Unlocks previously locked tokens.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “UNLOCK”`})]})})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Note: UNLOCK action is not yet implemented.`})}),`\n`,_jsx(Heading,{level:`4`,id:`memo-action`,children:`MEMO Action`}),`\n`,_jsx(_components.p,{children:`Adds a memo message to the transaction.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be “MEMO”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The memo message to attach`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pipelines\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WATCH_AD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`adId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`123`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`adProvider`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`google`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BURN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AIRDROP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"toAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-body`,children:`Response Body`}),`\n`,_jsx(_components.p,{children:`On success, the API returns a JSON object with the following fields:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`proposalApproveTx`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Base64-encoded serialized transaction that must be signed with your registered wallet address (the one used during flywheel registration)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`batch`})}),_jsx(_components.td,{children:`Object`}),_jsx(_components.td,{children:`The batch object containing details about the compiled pipelines`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-success`,children:`Example Response (Success)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proposalApproveTx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDAbc9WnXF...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"batch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"batch_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"flywheelId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flywheel_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING_APPROVAL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pipelines\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WATCH_AD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`adId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ca-app-pub-6628751172535228/7816916817`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`adProvider`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`google`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BURN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AIRDROP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"toAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64_encoded_instruction_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64_encoded_instruction_2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dateCreated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-27T12:00:00.000Z\"`})]}),`\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:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Proof Memos`}),`: Each pipeline automatically gets a proof memo prepended to its actions. This memo contains a hash of the type and payload for verification purposes.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Transaction Size Limits`}),`: Each pipeline must fit within a single Solana transaction (max ~900 bytes of instruction data). Pipelines that are too large will be rejected.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Approval Required`}),`: The returned `,_jsx(_components.code,{children:`proposalApproveTx`}),` must be signed with your registered wallet address (the wallet address you provided during flywheel registration). This transaction requires approval from both the company approver and your project approver wallet before execution.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Action Limitations`}),`: Currently, only `,_jsx(_components.code,{children:`BURN`}),`, `,_jsx(_components.code,{children:`AIRDROP`}),`, and `,_jsx(_components.code,{children:`MEMO`}),` actions are fully implemented. `,_jsx(_components.code,{children:`BUYBACK`}),`, `,_jsx(_components.code,{children:`LOCK`}),`, and `,_jsx(_components.code,{children:`UNLOCK`}),` actions are coming soon.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Associated Token Accounts`}),`: For `,_jsx(_components.code,{children:`AIRDROP`}),` actions, the endpoint automatically creates associated token accounts for recipients if they don’t exist.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsx(_components.p,{children:`The batch init endpoint can return specific error codes related to the compilation and validation process.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_TOKEN_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The token associated with the API key could not be found.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_KEY_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The API key could not be found or is invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_FLYWHEEL_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`No flywheel is associated with the provided API key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_BATCH_INIT_FAILED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Failed to compile pipelines or initialize the batch transaction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_FLYWHEEL_ACTIONS_EMPTY`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`One or more pipelines contain no actions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_FLYWHEEL_INVALID_ACTION`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`One or more actions in the pipelines are invalid or unsupported.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_FLYWHEEL_NO_INSTRUCTIONS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Pipeline compilation resulted in no transaction instructions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_FLYWHEEL_PIPELINE_TOO_BIG`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Pipeline contains too many actions to fit in a single Solana transaction.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-error-response`,children:`Example Error Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ERR_FLYWHEEL_PIPELINE_TOO_BIG\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pipeline has too many actions to fit in a single transaction\"`})]}),`\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":{"title":"Initialize Batch Transaction","description":"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.","openapi":"POST /v1/flywheel/batch/init","href":"/api-reference/endpoint/flywheel/batch-init"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Rate Limiting","slug":"rate-limiting","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[{"title":"Pipeline Object","slug":"pipeline-object","depth":3,"children":[]},{"title":"Action Types","slug":"action-types","depth":3,"children":[]},{"title":"BURN Action","slug":"burn-action","depth":4,"children":[]},{"title":"AIRDROP Action","slug":"airdrop-action","depth":4,"children":[]},{"title":"BUYBACK Action (Coming Soon)","slug":"buyback-action-coming-soon","depth":4,"children":[]},{"title":"LOCK Action (Coming Soon)","slug":"lock-action-coming-soon","depth":4,"children":[]},{"title":"UNLOCK Action (Coming Soon)","slug":"unlock-action-coming-soon","depth":4,"children":[]},{"title":"MEMO Action","slug":"memo-action","depth":4,"children":[]},{"title":"Example Request","slug":"example-request","depth":3,"children":[]}]},{"title":"Response Body","slug":"response-body","depth":2,"children":[{"title":"Example Response (Success)","slug":"example-response-success","depth":3,"children":[]}]},{"title":"Important Notes","slug":"important-notes","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[{"title":"Example Error Response","slug":"example-error-response","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Initialize Batch Transaction","description":"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.","tags":["Flywheel"],"security":["b6c63685-9bca-48aa-ae18-92d758b547b7"],"parameters":["d3464b7d-e459-4316-833d-612cadbf42e0"],"requestBody":"7c86301c-7a5a-4f38-bc1d-9e9282f3b934","responses":{"200":"73204a90-c39a-45c3-b3b5-1c58e62b5a2a","400":"d98d5dce-9692-4ad3-82fb-0a270a8433ab","401":"74bf9799-b2a7-4e2b-86b7-eeaf8dce3b82","404":"4b8e9aba-dab6-410c-a7dd-8f9bf5c5f9a4","500":"137a2342-36a5-4eef-89e4-0a02ca0ef0e6"},"method":"post","type":"path","servers":["5c79eeef-a99e-4506-831c-1be16cd564fa"],"path":"/v1/flywheel/batch/init","baseUrlOptions":["https://public.believe.app"],"title":"Initialize Batch Transaction","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d3464b7d-e459-4316-833d-612cadbf42e0":{"name":"x-idempotency-key","in":"header","description":"A unique key generated by the client to ensure a request is processed at most once.","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"A unique key generated by the client to ensure a request is processed at most once.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"description":"Array of flywheel pipelines to compile into batch transaction.","required":true,"content":{"application/json":{"schema":{"type":"object","required":["pipelines"],"properties":{"pipelines":{"type":"array","description":"Array of pipeline objects containing actions to execute.","items":{"type":"object","required":["type","payload","actions"],"properties":{"type":{"type":"string","description":"The type identifier for this pipeline (e.g., \"WATCH_AD\", \"PRODUCT_PURCHASE\").","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].type","typeLabel":"string"},"payload":{"type":"string","description":"JSON string containing the proof data for this pipeline.","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].payload","typeLabel":"string"},"actions":{"type":"array","description":"Array of action objects to execute in this pipeline.","items":{"oneOf":[{"type":"object","required":["action","amount"],"properties":{"action":{"type":"string","enum":["BURN"],"description":"Must be \"BURN\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to burn (in whole tokens)","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0.amount","typeLabel":"number"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["action","toAddress","amount"],"properties":{"action":{"type":"string","enum":["AIRDROP"],"description":"Must be \"AIRDROP\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.action","typeLabel":"enum\u003cstring>"},"toAddress":{"type":"string","description":"Solana wallet address to send tokens to","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.toAddress","typeLabel":"string"},"amount":{"type":"number","description":"Amount of tokens to airdrop (in whole tokens)","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.amount","typeLabel":"number"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["action","amount"],"properties":{"action":{"type":"string","enum":["BUYBACK"],"description":"Must be \"BUYBACK\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to buyback (in whole tokens)","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2.amount","typeLabel":"number"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["action","amount","vesting"],"properties":{"action":{"type":"string","enum":["LOCK"],"description":"Must be \"LOCK\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to lock (in whole tokens)","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.amount","typeLabel":"number"},"vesting":{"type":"object","description":"Vesting parameters for the locked tokens","additionalProperties":true,"isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.vesting","typeLabel":"object"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["UNLOCK"],"description":"Must be \"UNLOCK\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.4.action","typeLabel":"enum\u003cstring>"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["action","message"],"properties":{"action":{"type":"string","enum":["MEMO"],"description":"Must be \"MEMO\"","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5.action","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"The memo message to attach","isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5.message","typeLabel":"string"}},"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5","typeLabel":"object"}],"uniqueKey":"pipelines.items.[INDEX].actions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"pipelines.items.[INDEX].actions","typeLabel":"object[]"}},"uniqueKey":"pipelines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"pipelines","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pipelines":[{"type":"\u003cstring>","payload":"\u003cstring>","actions":[{"action":"BURN","amount":123}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"73204a90-c39a-45c3-b3b5-1c58e62b5a2a":{"description":"Successful batch initialization.","content":{"application/json":{"schema":{"type":"object","required":["proposalApproveTx","batch"],"properties":{"proposalApproveTx":{"type":"string","description":"Base64-encoded serialized transaction that must be signed with your registered wallet address.","isRequired":true,"uniqueKey":"proposalApproveTx","typeLabel":"string"},"batch":{"type":"object","required":["id","flywheelId","status","pipelines","dateCreated"],"properties":{"id":{"type":"string","description":"The unique batch identifier (UUID).","isRequired":true,"uniqueKey":"batch.id","typeLabel":"string"},"flywheelId":{"type":"string","description":"The flywheel this batch belongs to.","isRequired":true,"uniqueKey":"batch.flywheelId","typeLabel":"string"},"status":{"type":"string","enum":["AVAILABLE_TO_QUEUE","FINALIZED","EXECUTED","FAILED"],"description":"Current batch status.","isRequired":true,"uniqueKey":"batch.status","typeLabel":"enum\u003cstring>"},"pipelines":{"type":"array","description":"Array of compiled pipeline objects.","items":{"type":"object","required":["type","payload","actions","instructions"],"properties":{"type":{"type":"string","description":"The type identifier for this pipeline.","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].type","typeLabel":"string"},"payload":{"type":"string","description":"JSON string containing the proof data for this pipeline.","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].payload","typeLabel":"string"},"actions":{"type":"array","description":"Array of action objects to execute in this pipeline.","items":{"oneOf":[{"type":"object","required":["action","amount"],"properties":{"action":{"type":"string","enum":["BURN"],"description":"Must be \"BURN\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to burn (in whole tokens)","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0.amount","typeLabel":"number"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["action","toAddress","amount"],"properties":{"action":{"type":"string","enum":["AIRDROP"],"description":"Must be \"AIRDROP\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.action","typeLabel":"enum\u003cstring>"},"toAddress":{"type":"string","description":"Solana wallet address to send tokens to","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.toAddress","typeLabel":"string"},"amount":{"type":"number","description":"Amount of tokens to airdrop (in whole tokens)","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1.amount","typeLabel":"number"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["action","amount"],"properties":{"action":{"type":"string","enum":["BUYBACK"],"description":"Must be \"BUYBACK\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to buyback (in whole tokens)","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2.amount","typeLabel":"number"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["action","amount","vesting"],"properties":{"action":{"type":"string","enum":["LOCK"],"description":"Must be \"LOCK\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.action","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Amount of tokens to lock (in whole tokens)","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.amount","typeLabel":"number"},"vesting":{"type":"object","description":"Vesting parameters for the locked tokens","additionalProperties":true,"isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3.vesting","typeLabel":"object"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["UNLOCK"],"description":"Must be \"UNLOCK\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.4.action","typeLabel":"enum\u003cstring>"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["action","message"],"properties":{"action":{"type":"string","enum":["MEMO"],"description":"Must be \"MEMO\"","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5.action","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"The memo message to attach","isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5.message","typeLabel":"string"}},"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX].oneOf.5","typeLabel":"object"}],"uniqueKey":"batch.pipelines.items.[INDEX].actions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].actions","typeLabel":"object[]"},"instructions":{"type":"array","description":"Array of base64-encoded Solana transaction instructions.","items":{"type":"string","uniqueKey":"batch.pipelines.items.[INDEX].instructions.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"batch.pipelines.items.[INDEX].instructions","typeLabel":"string[]"}},"uniqueKey":"batch.pipelines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"batch.pipelines","typeLabel":"object[]"},"dateCreated":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the batch was created.","isRequired":true,"uniqueKey":"batch.dateCreated","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"batch","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"proposalApproveTx":"\u003cstring>","batch":{"id":"\u003cstring>","flywheelId":"\u003cstring>","status":"AVAILABLE_TO_QUEUE","pipelines":[{"type":"\u003cstring>","payload":"\u003cstring>","actions":[{"action":"BURN","amount":123}],"instructions":["\u003cstring>"]}],"dateCreated":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d98d5dce-9692-4ad3-82fb-0a270a8433ab":{"description":"Bad Request - Invalid input or compilation error.","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"error","typeLabel":"integer\u003cint32>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"74bf9799-b2a7-4e2b-86b7-eeaf8dce3b82":{"description":"Unauthorized - API key is missing or invalid.","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"error","typeLabel":"integer\u003cint32>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4b8e9aba-dab6-410c-a7dd-8f9bf5c5f9a4":{"description":"Not Found - Token or flywheel not found.","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"error","typeLabel":"integer\u003cint32>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"137a2342-36a5-4eef-89e4-0a02ca0ef0e6":{"description":"Internal Server Error - Batch initialization failed.","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"error","typeLabel":"integer\u003cint32>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"b6c63685-9bca-48aa-ae18-92d758b547b7":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-believe-api-key","scopes":[]}}},"servers":{"5c79eeef-a99e-4506-831c-1be16cd564fa":{"url":"https://public.believe.app"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-believe-api-key","scopes":[]},"schema":{"title":"x-believe-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-believe-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"believe","siteName":"Believe API","title":"Initialize Batch Transaction - Believe API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:43:00.401Z","originalFileLocation":"api-reference/endpoint/flywheel/batch-init.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=\"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Believe 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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_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/believe/Sb7_B-Hs0itRNxzK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Initialize Batch Transaction - Believe API\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Believe API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://believe.mintlify.app/_mintlify/api/og/v2?division=Flywheel+V1\u0026amp;title=Initialize+Batch+Transaction\u0026amp;description=This+endpoint+compiles+flywheel+pipelines+into+Solana+transaction+instructions+and+creates+a+batch+transaction+for+approval.\u0026amp;theme=d26715c49fcb7e1be5f7a635\u0026amp;signature=ce3149babc5548891438d2ce30c7c3bebc9765bcd1ea28ef2061d201aaa07ada\">\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=\"Initialize Batch Transaction - Believe API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://believe.mintlify.app/_mintlify/api/og/v2?division=Flywheel+V1\u0026amp;title=Initialize+Batch+Transaction\u0026amp;description=This+endpoint+compiles+flywheel+pipelines+into+Solana+transaction+instructions+and+creates+a+batch+transaction+for+approval.\u0026amp;theme=d26715c49fcb7e1be5f7a635\u0026amp;signature=ce3149babc5548891438d2ce30c7c3bebc9765bcd1ea28ef2061d201aaa07ada\">\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/believe/Sb7_B-Hs0itRNxzK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Believe API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/flywheel/batch-init.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.believe.app/#organization\",\"name\":\"Believe API\",\"url\":\"https://docs.believe.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/believe/kJ8FhCPHcVm_vcZv/logo/light.svg?fit=max\u0026auto=format\u0026n=kJ8FhCPHcVm_vcZv\u0026q=85\u0026s=bc04dddfeacbb5b595539e637a47fafd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.believe.app#website\",\"name\":\"Believe API\",\"url\":\"https://docs.believe.app\",\"publisher\":{\"@id\":\"https://docs.believe.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init#webpage\",\"url\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init\",\"name\":\"Initialize Batch Transaction\",\"description\":\"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\",\"dateModified\":\"2026-01-07T08:43:00.401Z\",\"isPartOf\":{\"@id\":\"https://docs.believe.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Believe API\",\"item\":\"https://docs.believe.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Initialize Batch Transaction\",\"item\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init#apireference\",\"headline\":\"Initialize Batch Transaction\",\"name\":\"Initialize Batch Transaction\",\"description\":\"This endpoint compiles flywheel pipelines into Solana transaction instructions and creates a batch transaction for approval.\",\"url\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init\",\"mainEntityOfPage\":{\"@id\":\"https://docs.believe.app/api-reference/endpoint/flywheel/batch-init#webpage\"},\"dateModified\":\"2026-01-07T08:43:00.401Z\",\"publisher\":{\"@id\":\"https://docs.believe.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.believe.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Believe API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Believe API","nav":{"global":{"anchors":[{"anchor":"Website","href":"https://believe.app","icon":"book-open-cover"},{"anchor":"iOS App","href":"https://apps.apple.com/us/app/believe/id6737437664","icon":"apple"}]},"tabs":[{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Getting Started","href":"/api-reference/getting-started"},{"title":"Use Cases \u0026 Examples","href":"/api-reference/use-cases"},{"title":"Glossary","href":"/api-reference/glossary"},{"title":"Proof Schema Definition","href":"/api-reference/proof-schema"},{"title":"Error Codes","description":"Error Codes reference","href":"/api-reference/error-codes"}]},{"group":"Flywheel V1","pages":[{"title":"Initialize Batch Transaction","openapi":"POST /v1/flywheel/batch/init","href":"/api-reference/endpoint/flywheel/batch-init"},{"title":"Execute Batch Transaction","description":"This endpoint executes a flywheel batch after approval, processing all pipeline transactions and returning detailed execution results.","openapi":"POST /v1/flywheel/batch/execute","href":"/api-reference/endpoint/flywheel/batch-execute"},{"title":"Get Batch Status","openapi":"GET /v1/flywheel/batch/{batchId}","href":"/api-reference/endpoint/flywheel/batch-status"},{"title":"Get Current Batch","openapi":"GET /v1/flywheel/batch/current","href":"/api-reference/endpoint/flywheel/batch-current"}]},{"group":"Tokenomics (Deprecated)","pages":[{"title":"Burn Tokens (Deprecated)","openapi":"POST /v1/tokenomics/burn","href":"/api-reference/endpoint/tokenomics/burn"},{"title":"Burn Batch Tokens (Deprecated)","openapi":"POST /v1/tokenomics/burn-batch","href":"/api-reference/endpoint/tokenomics/burn-batch"},{"title":"Get Market Summary (Deprecated)","openapi":"GET /v1/tokenomics/market-summary/{address}","href":"/api-reference/endpoint/tokenomics/market-summary"}]}]}]},"basePath":"","title":"Initialize Batch Transaction - Believe API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}