Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.
Optional: signed token transfer-fee schedule ceilings. Defaults to the observed active schedule; a higher execution-time rate or cap fails the bounded transaction. Maximum 4 entries.
A staged, potentially multi-transaction plan for a custom quote operation. Sign and send the entries in transactions in order; if readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bags API Documentation","colors":{"primary":"#02FF40","light":"#07C983","dark":"#2764EF"},"logo":{"light":"https://mintcdn.com/bags/RKWqNxf_W11XpLHf/logo/bags-icon-black.png?fit=max\u0026auto=format\u0026n=RKWqNxf_W11XpLHf\u0026q=85\u0026s=69b17952f62b673093120afdb6aef487","dark":"https://mintcdn.com/bags/RKWqNxf_W11XpLHf/logo/bags-icon-white.png?fit=max\u0026auto=format\u0026n=RKWqNxf_W11XpLHf\u0026q=85\u0026s=c48ca310fff068aca2e49aba81f228be"},"favicon":"https://mintcdn.com/bags/w5EkpKbzNJ9_Wl2G/favicon.ico?fit=max\u0026auto=format\u0026n=w5EkpKbzNJ9_Wl2G\u0026q=85\u0026s=90ce97dfa89bfcb8818dad93b7b3b23e","navbar":{"links":[{"href":"https://support.bags.fm","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://dev.bags.fm"}},"footer":{"socials":{"x":"https://x.com/BagsApp","github":"https://github.com/bagsfm","linkedin":"https://www.linkedin.com/company/bagsfm"}},"contextual":{"options":["chatgpt","cursor","view","claude","perplexity","mcp","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bags","hasAudioNarration":false,"actualSubdomain":"bags","customDomains":["docs.bags.fm"],"gitSource":{"type":"github","owner":"bagsfm","repo":"bags-public-api-v2-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af261602f16495db304a4ae","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API reference","count":82},{"language":"default","tag":"Guides","count":40},{"language":"default","tag":"Robinhood Chain","count":22},{"language":"default","tag":"How-to Guides","count":18},{"language":"default","tag":"Token Launch","count":13},{"language":"default","tag":"Core Principles","count":9},{"language":"default","tag":"BagsPay","count":8},{"language":"default","tag":"Fee Claiming","count":6},{"language":"default","tag":"Fee Share","count":6},{"language":"default","tag":"Analytics","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-claim-transactions-v2","slug":"/api-reference/create-claim-transactions-v2","pageMetadata":{"title":"Create custom quote claim plan","openapi":"POST /token-launch/create-claim-txs/v2","og:image":"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png","twitter:image":"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png","description":"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in `response.transactions` in order. If `response.readiness.status` is `setup_required`, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.","href":"/api-reference/create-claim-transactions-v2"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in \", _jsx(_components.code, {\n children: \"response.transactions\"\n }), \" in order. If \", _jsx(_components.code, {\n children: \"response.readiness.status\"\n }), \" is \", _jsx(_components.code, {\n children: \"setup_required\"\n }), \", confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\"]\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/how-to-guides/claim-custom-quote-fees`,children:`Claim Custom Quote Fees`}),` for discovery, source selection, and claiming.`]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create custom quote claim plan","openapi":"POST /token-launch/create-claim-txs/v2","og:image":"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png","twitter:image":"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png","description":"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in `response.transactions` in order. If `response.readiness.status` is `setup_required`, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.","href":"/api-reference/create-claim-transactions-v2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/bags/40eef5b427cd9b0f/api-reference/scripts/bundle-openapi.js"],"openApiReferenceData":{"operation":{"tags":["Fee Claiming"],"summary":"Create custom quote claim plan","description":"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in `response.transactions` in order. If `response.readiness.status` is `setup_required`, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.","security":["7789d7ec-8b39-44e0-b6c9-0472713dc418"],"requestBody":"c99e5f88-67bb-43f2-911d-1d5ddac1651c","responses":{"200":"d5f36339-56af-437b-94cc-30b33604cd28","400":"d0fafc4d-c56e-4c28-a0bd-004d3f6dcc9c","401":"7d9b5559-840d-4f45-ba77-61a26df1c8a7","500":"e7d00da4-1ca4-427d-887b-d13532f0c2e6"},"method":"post","type":"path","servers":["8e95ce3b-30f8-4fe6-a112-0688716e4f6f"],"path":"/token-launch/create-claim-txs/v2","baseUrlOptions":["https://public-api-v2.bags.fm/api/v1"],"title":"Create custom quote claim plan","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["feeClaimer","tokenMint"],"properties":{"feeClaimer":{"type":"string","description":"Public key of the fee claimer wallet","isRequired":true,"uniqueKey":"feeClaimer","typeLabel":"string"},"tokenMint":{"type":"string","description":"Token mint public key","isRequired":true,"uniqueKey":"tokenMint","typeLabel":"string"},"transactionFormat":{"oneOf":[{"type":"string","enum":["v0","v1"],"description":"Optional: requested transaction wire format. Defaults to v0.","uniqueKey":"transactionFormat.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["v0","v1"],"description":"Optional: requested transaction wire format. Defaults to v0.","uniqueKey":"transactionFormat.oneOf.1","typeLabel":"null"}],"uniqueKey":"transactionFormat","typeLabel":"enum\u003cstring> | null"},"feeLimits":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"asset":{"type":"object","properties":{"mint":{"type":"string","description":"Public key of the asset mint","isRequired":true,"uniqueKey":"feeLimits.oneOf.0.items.[INDEX].asset.mint","typeLabel":"string"},"tokenProgram":{"type":"string","description":"Public key of the SPL token program that owns this mint (Token or Token-2022)","isRequired":true,"uniqueKey":"feeLimits.oneOf.0.items.[INDEX].asset.tokenProgram","typeLabel":"string"}},"required":["mint","tokenProgram"],"isRequired":true,"uniqueKey":"feeLimits.oneOf.0.items.[INDEX].asset","typeLabel":"object"},"basisPoints":{"type":"number","minimum":0,"maximum":10000,"description":"Ceiling on the active token transfer-fee rate, in basis points. Checked independently from maximumFeeRaw.","isRequired":true,"uniqueKey":"feeLimits.oneOf.0.items.[INDEX].basisPoints","typeLabel":"number"},"maximumFeeRaw":{"type":"string","description":"Ceiling on the active token transfer-fee schedule cap, as a decimal string to support bigint (raw u64 units). This is not an aggregate fee budget.","isRequired":true,"uniqueKey":"feeLimits.oneOf.0.items.[INDEX].maximumFeeRaw","typeLabel":"string"}},"required":["asset","basisPoints","maximumFeeRaw"],"uniqueKey":"feeLimits.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Optional: signed token transfer-fee schedule ceilings. Defaults to the observed active schedule; a higher execution-time rate or cap fails the bounded transaction. Maximum 4 entries.","maxItems":4,"uniqueKey":"feeLimits.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"asset":{"type":"object","properties":{"mint":{"type":"string","description":"Public key of the asset mint"},"tokenProgram":{"type":"string","description":"Public key of the SPL token program that owns this mint (Token or Token-2022)"}},"required":["mint","tokenProgram"]},"basisPoints":{"type":"number","minimum":0,"maximum":10000,"description":"Ceiling on the active token transfer-fee rate, in basis points. Checked independently from maximumFeeRaw."},"maximumFeeRaw":{"type":"string","description":"Ceiling on the active token transfer-fee schedule cap, as a decimal string to support bigint (raw u64 units). This is not an aggregate fee budget."}},"required":["asset","basisPoints","maximumFeeRaw"]},"description":"Optional: signed token transfer-fee schedule ceilings. Defaults to the observed active schedule; a higher execution-time rate or cap fails the bounded transaction. Maximum 4 entries.","maxItems":4,"uniqueKey":"feeLimits.oneOf.1","typeLabel":"null"}],"uniqueKey":"feeLimits","typeLabel":"object[] | null"},"additionalLookupTables":{"oneOf":[{"type":"array","items":{"type":"string","description":"Public key of a lookup table address","uniqueKey":"additionalLookupTables.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Optional: extra address lookup tables to compile the transactions against. Maximum 8 entries.","maxItems":8,"uniqueKey":"additionalLookupTables.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","description":"Public key of a lookup table address"},"description":"Optional: extra address lookup tables to compile the transactions against. Maximum 8 entries.","maxItems":8,"uniqueKey":"additionalLookupTables.oneOf.1","typeLabel":"null"}],"uniqueKey":"additionalLookupTables","typeLabel":"string[] | null"},"quoteMint":{"oneOf":[{"type":"string","description":"Optional: expected quote mint. Must match the selected config or holding vault; it does not change the payout asset.","uniqueKey":"quoteMint.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional: expected quote mint. Must match the selected config or holding vault; it does not change the payout asset.","uniqueKey":"quoteMint.oneOf.1","typeLabel":"null"}],"uniqueKey":"quoteMint","typeLabel":"string | null"},"source":{"oneOf":[{"type":"object","description":"Optional: which specific claimable source to build a claim for. Omit to let the server pick the default (position/pair) source.","required":["kind"],"properties":{"kind":{"type":"string","enum":["position"],"isRequired":true,"uniqueKey":"source.oneOf.0.kind","typeLabel":"enum\u003cstring>"}},"uniqueKey":"source.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional: which specific claimable source to build a claim for. Omit to let the server pick the default (position/pair) source.","required":["kind"],"properties":{"kind":{"type":"string","enum":["pair"],"isRequired":true,"uniqueKey":"source.oneOf.1.kind","typeLabel":"enum\u003cstring>"}},"uniqueKey":"source.oneOf.1","typeLabel":"object"},{"type":"object","description":"Optional: which specific claimable source to build a claim for. Omit to let the server pick the default (position/pair) source.","required":["kind","protocol","pool"],"properties":{"kind":{"type":"string","enum":["pool"],"isRequired":true,"uniqueKey":"source.oneOf.2.kind","typeLabel":"enum\u003cstring>"},"protocol":{"type":"string","enum":["dbc","damm_v2"],"isRequired":true,"uniqueKey":"source.oneOf.2.protocol","typeLabel":"enum\u003cstring>"},"pool":{"type":"string","description":"Public key of the pool to claim from","isRequired":true,"uniqueKey":"source.oneOf.2.pool","typeLabel":"string"}},"uniqueKey":"source.oneOf.2","typeLabel":"object"},{"type":"object","description":"Optional: which specific claimable source to build a claim for. Omit to let the server pick the default (position/pair) source.","required":["kind","authority"],"properties":{"kind":{"type":"string","enum":["holding"],"isRequired":true,"uniqueKey":"source.oneOf.3.kind","typeLabel":"enum\u003cstring>"},"authority":{"type":"string","description":"Public key of the holding vault authority","isRequired":true,"uniqueKey":"source.oneOf.3.authority","typeLabel":"string"}},"uniqueKey":"source.oneOf.3","typeLabel":"object"},{"type":"null","uniqueKey":"source.oneOf.4","typeLabel":"null"}],"uniqueKey":"source","typeLabel":"object · object · object · object · null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"feeClaimer":"\u003cstring>","tokenMint":"\u003cstring>","feeLimits":[{"asset":{"mint":"\u003cstring>","tokenProgram":"\u003cstring>"},"basisPoints":5000,"maximumFeeRaw":"\u003cstring>"}],"additionalLookupTables":["\u003cstring>"],"quoteMint":"\u003cstring>","source":{"kind":"position"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d5f36339-56af-437b-94cc-30b33604cd28":{"description":"Successfully built the claim transaction plan","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean","example":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"response":{"type":"object","description":"A staged, potentially multi-transaction plan for a custom quote operation. Sign and send the entries in `transactions` in order; if `readiness.status` is `setup_required`, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan.","required":["contractVersion","operation","asset","feeLimits","transactions","readiness"],"properties":{"contractVersion":{"type":"number","enum":[1],"description":"Version of the quote transaction plan contract","isRequired":true,"uniqueKey":"response.contractVersion","typeLabel":"enum\u003cnumber>"},"operation":{"oneOf":[{"type":"object","description":"What this transaction plan accomplishes.","required":["kind","baseMint","flow"],"properties":{"kind":{"type":"string","enum":["config"],"isRequired":true,"uniqueKey":"response.operation.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"baseMint":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.0.baseMint","typeLabel":"string"},"flow":{"type":"string","enum":["dbc","damm_v2_direct"],"isRequired":true,"uniqueKey":"response.operation.oneOf.0.flow","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"response.operation.oneOf.0","typeLabel":"object"},{"type":"object","description":"What this transaction plan accomplishes.","required":["kind","baseMint","flow"],"properties":{"kind":{"type":"string","enum":["manager_update"],"isRequired":true,"uniqueKey":"response.operation.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"baseMint":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.1.baseMint","typeLabel":"string"},"flow":{"type":"string","enum":["dbc","damm_v2_direct"],"isRequired":true,"uniqueKey":"response.operation.oneOf.1.flow","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"response.operation.oneOf.1","typeLabel":"object"},{"type":"object","description":"What this transaction plan accomplishes.","required":["kind","baseMint","flow"],"properties":{"kind":{"type":"string","enum":["launch"],"isRequired":true,"uniqueKey":"response.operation.oneOf.2.kind","typeLabel":"enum\u003cstring>"},"baseMint":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.2.baseMint","typeLabel":"string"},"flow":{"type":"string","enum":["dbc","damm_v2_direct"],"isRequired":true,"uniqueKey":"response.operation.oneOf.2.flow","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"response.operation.oneOf.2","typeLabel":"object"},{"type":"object","description":"What this transaction plan accomplishes.","required":["kind","baseMint","wallet","authority"],"properties":{"kind":{"type":"string","enum":["holding_claim"],"isRequired":true,"uniqueKey":"response.operation.oneOf.3.kind","typeLabel":"enum\u003cstring>"},"baseMint":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.3.baseMint","typeLabel":"string"},"wallet":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.3.wallet","typeLabel":"string"},"authority":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.3.authority","typeLabel":"string"}},"isRequired":true,"uniqueKey":"response.operation.oneOf.3","typeLabel":"object"},{"type":"object","description":"What this transaction plan accomplishes.","required":["kind","baseMint","wallet"],"properties":{"kind":{"type":"string","enum":["position_claim"],"isRequired":true,"uniqueKey":"response.operation.oneOf.4.kind","typeLabel":"enum\u003cstring>"},"baseMint":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.4.baseMint","typeLabel":"string"},"wallet":{"type":"string","isRequired":true,"uniqueKey":"response.operation.oneOf.4.wallet","typeLabel":"string"}},"isRequired":true,"uniqueKey":"response.operation.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"response.operation","typeLabel":"object"},"asset":{"type":"object","properties":{"mint":{"type":"string","description":"Public key of the asset mint","isRequired":true,"uniqueKey":"response.asset.mint","typeLabel":"string"},"tokenProgram":{"type":"string","description":"Public key of the SPL token program that owns this mint (Token or Token-2022)","isRequired":true,"uniqueKey":"response.asset.tokenProgram","typeLabel":"string"},"decimals":{"oneOf":[{"type":"number","description":"Decimals configured on the mint, or null when it could not be observed","isRequired":true,"uniqueKey":"response.asset.decimals.oneOf.0","typeLabel":"number"},{"type":"null","description":"Decimals configured on the mint, or null when it could not be observed","isRequired":true,"uniqueKey":"response.asset.decimals.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"response.asset.decimals","typeLabel":"number | null"}},"required":["mint","tokenProgram","decimals"],"isRequired":true,"uniqueKey":"response.asset","typeLabel":"object"},"feeLimits":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"object","properties":{"mint":{"type":"string","description":"Public key of the asset mint","isRequired":true,"uniqueKey":"response.feeLimits.items.[INDEX].asset.mint","typeLabel":"string"},"tokenProgram":{"type":"string","description":"Public key of the SPL token program that owns this mint (Token or Token-2022)","isRequired":true,"uniqueKey":"response.feeLimits.items.[INDEX].asset.tokenProgram","typeLabel":"string"}},"required":["mint","tokenProgram"],"isRequired":true,"uniqueKey":"response.feeLimits.items.[INDEX].asset","typeLabel":"object"},"basisPoints":{"type":"number","minimum":0,"maximum":10000,"description":"Ceiling on the active token transfer-fee rate, in basis points. Checked independently from maximumFeeRaw.","isRequired":true,"uniqueKey":"response.feeLimits.items.[INDEX].basisPoints","typeLabel":"number"},"maximumFeeRaw":{"type":"string","description":"Ceiling on the active token transfer-fee schedule cap, as a decimal string to support bigint (raw u64 units). This is not an aggregate fee budget.","isRequired":true,"uniqueKey":"response.feeLimits.items.[INDEX].maximumFeeRaw","typeLabel":"string"}},"required":["asset","basisPoints","maximumFeeRaw"],"uniqueKey":"response.feeLimits.items.[INDEX]","typeLabel":"object"},"description":"Fee limits that were applied while building this plan","isRequired":true,"uniqueKey":"response.feeLimits","typeLabel":"object[]"},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifier for this stage, unique within the plan","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].id","typeLabel":"string"},"kind":{"type":"string","enum":["config","claim","manager_update","launch","lookup_table_setup"],"description":"What this stage's transaction does","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"dependsOn":{"type":"array","items":{"type":"string","uniqueKey":"response.transactions.items.[INDEX].dependsOn.items.[INDEX]","typeLabel":"string"},"description":"Ids of stages that must land before this one can be submitted","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].dependsOn","typeLabel":"string[]"},"format":{"type":"string","enum":["v0","v1"],"description":"Selected wire format for this stage's transaction","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].format","typeLabel":"enum\u003cstring>"},"encoding":{"type":"string","enum":["base64"],"description":"Encoding of the transaction field","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].encoding","typeLabel":"enum\u003cstring>"},"transaction":{"type":"string","description":"Base64 encoded transaction, partially signed where required","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].transaction","typeLabel":"string"},"messageSha256":{"type":"string","description":"Hex-encoded SHA-256 hash of the transaction's unsigned message bytes","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].messageSha256","typeLabel":"string"},"requiredSigners":{"type":"array","items":{"type":"string","uniqueKey":"response.transactions.items.[INDEX].requiredSigners.items.[INDEX]","typeLabel":"string"},"description":"All public keys required to sign, including signers whose signatures may already be present. Preserve existing signatures and add missing ones.","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].requiredSigners","typeLabel":"string[]"},"lifetime":{"type":"object","properties":{"blockhash":{"type":"string","description":"Recent blockhash the transaction was built against","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].lifetime.blockhash","typeLabel":"string"},"lastValidBlockHeight":{"type":"string","description":"Last block height for which the blockhash is valid, as a string-encoded amount","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].lifetime.lastValidBlockHeight","typeLabel":"string"}},"required":["blockhash","lastValidBlockHeight"],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].lifetime","typeLabel":"object"},"budget":{"type":"object","properties":{"computeUnitLimit":{"type":"number","description":"Compute unit limit requested for this transaction","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.computeUnitLimit","typeLabel":"number"},"loadedAccountsDataSizeLimit":{"type":"number","description":"Loaded accounts data size limit requested for this transaction, in bytes","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.loadedAccountsDataSizeLimit","typeLabel":"number"},"priorityFee":{"oneOf":[{"type":"object","description":"Priority fee for this stage's transaction. The unit depends on the selected transaction format: v1 stages report a total lamport amount, v0 stages report a micro-lamports-per-compute-unit rate.","required":["unit","amount"],"properties":{"unit":{"type":"string","enum":["total_lamports"],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.0.unit","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","description":"Total priority fee in lamports, as a string-encoded amount","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.0.amount","typeLabel":"string"}},"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.0","typeLabel":"object"},{"type":"object","description":"Priority fee for this stage's transaction. The unit depends on the selected transaction format: v1 stages report a total lamport amount, v0 stages report a micro-lamports-per-compute-unit rate.","required":["unit","amount"],"properties":{"unit":{"type":"string","enum":["micro_lamports_per_compute_unit"],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.1.unit","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","description":"Priority fee rate in micro-lamports per compute unit, as a string-encoded amount","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.1.amount","typeLabel":"string"}},"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget.priorityFee","typeLabel":"object"}},"required":["computeUnitLimit","loadedAccountsDataSizeLimit","priorityFee"],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].budget","typeLabel":"object"},"size":{"type":"object","properties":{"bytes":{"type":"number","description":"Serialized transaction size in bytes","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].size.bytes","typeLabel":"number"},"accounts":{"type":"number","description":"Number of accounts referenced by the transaction","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].size.accounts","typeLabel":"number"},"signatures":{"type":"number","description":"Number of signatures required by the transaction","isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].size.signatures","typeLabel":"number"}},"required":["bytes","accounts","signatures"],"isRequired":true,"uniqueKey":"response.transactions.items.[INDEX].size","typeLabel":"object"}},"required":["id","kind","dependsOn","format","encoding","transaction","messageSha256","requiredSigners","lifetime","budget","size"],"uniqueKey":"response.transactions.items.[INDEX]","typeLabel":"object"},"description":"Ordered transaction stages to sign and send. Empty when readiness.status is setup_required and the lookup table is still warming up.","isRequired":true,"uniqueKey":"response.transactions","typeLabel":"object[]"},"readiness":{"oneOf":[{"type":"object","description":"Whether the plan's transactions are ready to send, or whether an address lookup table needs to be created/warmed up first.","required":["status"],"properties":{"status":{"type":"string","enum":["ready"],"isRequired":true,"uniqueKey":"response.readiness.oneOf.0.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"response.readiness.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whether the plan's transactions are ready to send, or whether an address lookup table needs to be created/warmed up first.","required":["status","lookupTables","minimumSlotExclusive","action"],"properties":{"status":{"type":"string","enum":["setup_required"],"isRequired":true,"uniqueKey":"response.readiness.oneOf.1.status","typeLabel":"enum\u003cstring>"},"lookupTables":{"type":"array","items":{"type":"string","uniqueKey":"response.readiness.oneOf.1.lookupTables.items.[INDEX]","typeLabel":"string"},"description":"Lookup table address(es) involved in the setup step","isRequired":true,"uniqueKey":"response.readiness.oneOf.1.lookupTables","typeLabel":"string[]"},"minimumSlotExclusive":{"oneOf":[{"type":"string","description":"Slot after which the lookup table can be relied on, as a string-encoded amount, or null while it is still being created","isRequired":true,"uniqueKey":"response.readiness.oneOf.1.minimumSlotExclusive.oneOf.0","typeLabel":"string"},{"type":"null","description":"Slot after which the lookup table can be relied on, as a string-encoded amount, or null while it is still being created","isRequired":true,"uniqueKey":"response.readiness.oneOf.1.minimumSlotExclusive.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"response.readiness.oneOf.1.minimumSlotExclusive","typeLabel":"string | null"},"action":{"type":"string","enum":["confirm_setup_refetch_and_rebuild"],"description":"Confirm the setup transaction(s) in `transactions`, then call this endpoint again to fetch the rebuilt plan","isRequired":true,"uniqueKey":"response.readiness.oneOf.1.action","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"response.readiness.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"response.readiness","typeLabel":"object"}},"uniqueKey":"response","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"response":{"contractVersion":1,"operation":{"kind":"config","baseMint":"\u003cstring>","flow":"dbc"},"asset":{"mint":"\u003cstring>","tokenProgram":"\u003cstring>","decimals":123},"feeLimits":[{"asset":{"mint":"\u003cstring>","tokenProgram":"\u003cstring>"},"basisPoints":5000,"maximumFeeRaw":"\u003cstring>"}],"transactions":[{"id":"\u003cstring>","kind":"config","dependsOn":["\u003cstring>"],"format":"v0","encoding":"base64","transaction":"\u003cstring>","messageSha256":"\u003cstring>","requiredSigners":["\u003cstring>"],"lifetime":{"blockhash":"\u003cstring>","lastValidBlockHeight":"\u003cstring>"},"budget":{"computeUnitLimit":123,"loadedAccountsDataSizeLimit":123,"priorityFee":{"unit":"total_lamports","amount":"\u003cstring>"}},"size":{"bytes":123,"accounts":123,"signatures":123}}],"readiness":{"status":"ready"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d0fafc4d-c56e-4c28-a0bd-004d3f6dcc9c":{"description":"Bad request - invalid parameters, or nothing available to claim","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7d9b5559-840d-4f45-ba77-61a26df1c8a7":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e7d00da4-1ca4-427d-887b-d13532f0c2e6":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7789d7ec-8b39-44e0-b6c9-0472713dc418":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key authentication. Provide your API key as the header value.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"8e95ce3b-30f8-4fe6-a112-0688716e4f6f":{"url":"https://public-api-v2.bags.fm/api/v1","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key authentication. Provide your API key as the header value.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key authentication. Provide your API key as the header value.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"bags","siteName":"Bags API Documentation","title":"Create custom quote claim plan - Bags API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-27T21:30:15.171Z","originalFileLocation":"api-reference/create-claim-transactions-v2.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 transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bags API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_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/bags/G7OIIkKXO4sDjQZ2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create custom quote claim plan - Bags API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bags API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bags.fm/api-reference/create-claim-transactions-v2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create custom quote claim plan - Bags API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/bags/G7OIIkKXO4sDjQZ2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bags API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#02FF40\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bags.fm/api-reference/create-claim-transactions-v2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-claim-transactions-v2.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bags.fm/#organization\",\"name\":\"Bags API Documentation\",\"url\":\"https://docs.bags.fm\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bags/RKWqNxf_W11XpLHf/logo/bags-icon-black.png?fit=max\u0026auto=format\u0026n=RKWqNxf_W11XpLHf\u0026q=85\u0026s=69b17952f62b673093120afdb6aef487\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bags.fm#website\",\"name\":\"Bags API Documentation\",\"url\":\"https://docs.bags.fm\",\"publisher\":{\"@id\":\"https://docs.bags.fm/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2#webpage\",\"url\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2\",\"name\":\"Create custom quote claim plan\",\"description\":\"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\",\"dateModified\":\"2026-09-27T21:30:15.171Z\",\"isPartOf\":{\"@id\":\"https://docs.bags.fm#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Fee Claiming\",\"item\":\"https://docs.bags.fm/api-reference/get-claim-transactions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create custom quote claim plan\",\"item\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2#apireference\",\"headline\":\"Create custom quote claim plan\",\"name\":\"Create custom quote claim plan\",\"description\":\"Build a transaction plan to claim custom quote fees or a holding balance for a wallet. Returns a staged transaction plan: sign and send the entries in response.transactions in order. If response.readiness.status is setup_required, confirm the setup transaction(s) first, then call this endpoint again to fetch the rebuilt plan. Sponsorship depends on the operation. The wallet must still fund applicable rent or reimbursements; holding-only withdrawals use the user as payer. Payouts remain in the original quote token, subject to token transfer fees.\",\"url\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bags.fm/api-reference/create-claim-transactions-v2#webpage\"},\"image\":\"https://docs.bags.fm/images/og/api-reference--create-claim-transactions-v2.png\",\"dateModified\":\"2026-09-27T21:30:15.171Z\",\"publisher\":{\"@id\":\"https://docs.bags.fm/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bags.fm#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bags API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bags API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/create-claim-transactions-v2.md","siteName":"Bags API Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"API documentation","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Auth","pages":[{"title":"Get Current User Info","openapi":"GET /auth/me","href":"/api-reference/get-auth-me"}]},{"group":"Agent","pages":[{"title":"Initialize Agent Authentication","openapi":"POST /agent/v2/auth/init","href":"/api-reference/agent-auth-init"},{"title":"Complete Agent Authentication Callback","openapi":"POST /agent/v2/auth/callback","href":"/api-reference/agent-auth-callback"}]},{"group":"Token Launch","pages":[{"title":"Get Token Launch","openapi":"GET /token-launch","href":"/api-reference/get-token-launch"},{"title":"Get Token Launch Bulk","openapi":"POST /token-launch/bulk","href":"/api-reference/get-token-launch-bulk"},{"title":"Get DAMM v2 Custody Quote Tokens","openapi":"GET /token-launch/damm-v2/supported-quote-tokens","href":"/api-reference/get-damm-v2-supported-quote-tokens"},{"title":"Get DAMM v2 Vault Claimables","openapi":"GET /token-launch/damm-v2/vault-claimables","href":"/api-reference/get-damm-v2-vault-claimables"},{"title":"Create DAMM v2 Custody Launch Transactions","openapi":"POST /token-launch/damm-v2/create-transaction","href":"/api-reference/create-damm-v2-launch-transaction"},{"title":"Claim DAMM v2 Vault","openapi":"POST /token-launch/damm-v2/claim-vault","href":"/api-reference/claim-damm-v2-vault"},{"title":"Get Token Launch Feed","openapi":"GET /token-launch/feed","href":"/api-reference/get-token-launch-feed"},{"title":"Get DAMM v2 Direct Launches","openapi":"GET /token-launch/damm-v2/launches","href":"/api-reference/get-damm-v2-launches"},{"title":"Create Token Info and Metadata","openapi":"POST /token-launch/create-token-info","href":"/api-reference/create-token-info"},{"title":"Create Token Launch Transaction","openapi":"POST /token-launch/create-launch-transaction","href":"/api-reference/create-token-launch-transaction"},{"title":"Create custom quote DBC launch plan","openapi":"POST /token-launch/create-transaction/v2","href":"/api-reference/create-token-launch-transaction-v2"},{"title":"Create custom quote DAMM v2 launch plan","openapi":"POST /token-launch/damm-v2/create-transaction/v2","href":"/api-reference/create-damm-v2-launch-transaction-v2"},{"title":"Get supported custom quote tokens","openapi":"GET /token-launch/supported-quote-tokens","href":"/api-reference/get-supported-quote-tokens"}]},{"group":"Fee Share","pages":[{"title":"Get Fee Share Wallet V2","openapi":"GET /token-launch/fee-share/wallet/v2","href":"/api-reference/get-fee-share-wallet"},{"title":"Get Fee Share Wallet V2 (Bulk)","openapi":"POST /token-launch/fee-share/wallet/v2/bulk","href":"/api-reference/get-fee-share-wallet-bulk"},{"title":"Create Fee Share Config creation transaction","openapi":"POST /fee-share/config","href":"/api-reference/create-fee-share-configuration"},{"title":"Create custom quote Fee Share config plan","openapi":"POST /fee-share/config/v2","href":"/api-reference/create-fee-share-config-v2"},{"title":"Get Deployer Claimable Positions","openapi":"GET /fee-share/deployer/claimable-positions","href":"/api-reference/get-deployer-claimable-positions"},{"title":"Create Deployer Claim Transactions","openapi":"POST /fee-share/deployer/claim-txs","href":"/api-reference/create-deployer-claim-transactions"}]},{"group":"Fee Share Admin","pages":[{"title":"Get Fee Share Admin List","openapi":"GET /fee-share/admin/list","href":"/api-reference/get-fee-share-admin-list"},{"title":"Create Fee Share Admin Transfer Transaction","openapi":"POST /fee-share/admin/transfer-tx","href":"/api-reference/create-fee-share-admin-transfer-tx"},{"title":"Create Fee Share Admin Update Config","openapi":"POST /fee-share/admin/update-config","href":"/api-reference/create-fee-share-admin-update-config"},{"title":"Create custom quote Fee Share config update plan","openapi":"POST /fee-share/admin/update-config/v2","href":"/api-reference/create-fee-share-admin-update-config-v2"}]},{"group":"BagsPay","pages":[{"title":"Get BagsPay Token","openapi":"GET /bags-payout/token","href":"/api-reference/get-bags-payout-token"},{"title":"Get BagsPay Tokens (Bulk)","openapi":"POST /bags-payout/token/bulk","href":"/api-reference/get-bags-payout-token-bulk"},{"title":"Set BagsPay Token Cashout","openapi":"POST /bags-payout/token/cashout","href":"/api-reference/create-bags-payout-token-cashout"},{"title":"Get BagsPay Payout History","openapi":"GET /bags-payout/history","href":"/api-reference/get-bags-payout-history"},{"title":"Get BagsPay Payout","openapi":"GET /bags-payout/payout","href":"/api-reference/get-bags-payout"},{"title":"Get BagsPay Claims","openapi":"GET /bags-payout/claims","href":"/api-reference/get-bags-payout-claims"},{"title":"Get BagsPay Token Events","openapi":"GET /bags-payout/token/events","href":"/api-reference/get-bags-payout-token-events"},{"title":"Get BagsPay Feed","openapi":"GET /bags-payout/feed","href":"/api-reference/get-bags-payout-feed"}]},{"group":"Analytics","pages":[{"title":"Get Token Launch Creators","openapi":"GET /token-launch/creator/v3","href":"/api-reference/get-token-launch-creators"},{"title":"Get Token Lifetime Fees","openapi":"GET /token-launch/lifetime-fees","href":"/api-reference/get-token-lifetime-fees"},{"title":"Get Token Claim Stats","openapi":"GET /token-launch/claim-stats","href":"/api-reference/get-token-claim-stats"},{"title":"Get Token Claim Stats v4","openapi":"GET /token-launch/claim-stats/v4","href":"/api-reference/get-token-claim-stats-v4"},{"title":"Get Token Claim Events","openapi":"GET /fee-share/token/claim-events","href":"/api-reference/get-token-claim-events"},{"title":"Get Global Claim Feed v2","openapi":"GET /feed/global-claim/v2","href":"/api-reference/get-global-claim-feed-v2"}]},{"group":"State","pages":[{"title":"Get Pool Config Keys by Fee Claimer Vaults","openapi":"POST /token-launch/state/pool-config","href":"/api-reference/get-pool-config-keys"},{"title":"Get Bags Pools","openapi":"GET /solana/bags/pools","href":"/api-reference/get-bags-pools"},{"title":"Get Bags Pool by Token Mint","openapi":"GET /solana/bags/pools/token-mint","href":"/api-reference/get-bags-pool-by-token-mint"}]},{"group":"Fee Claiming","pages":[{"title":"Get Claim Transactions","openapi":"POST /token-launch/claim-txs/v2","href":"/api-reference/get-claim-transactions"},{"title":"Get Claim Transactions (v3)","openapi":"POST /token-launch/claim-txs/v3","href":"/api-reference/get-claim-transactions-v3"},{"title":"Get Claimable Positions","openapi":"GET /token-launch/claimable-positions","href":"/api-reference/get-claimable-positions"},{"title":"Get custom quote claimable positions","openapi":"GET /token-launch/claimable-positions/v2","href":"/api-reference/get-claimable-positions-v2"},{"title":"Get custom quote claimable position for a token","openapi":"GET /token-launch/claimable-position/solo/v2","description":"List claimable custom quote fee positions/holdings for a wallet, scoped to a single base mint.","href":"/api-reference/get-claimable-position-solo-v2"},{"title":"Create custom quote claim plan","openapi":"POST /token-launch/create-claim-txs/v2","href":"/api-reference/create-claim-transactions-v2"}]},{"group":"Trade","pages":[{"title":"Get Trade Quote","openapi":"GET /trade/quote","description":"Get a quote for swapping tokens. Returns expected output amount, price impact, slippage, and route plan.","href":"/api-reference/get-trade-quote"},{"title":"Create Swap Transaction","openapi":"POST /trade/swap","href":"/api-reference/create-swap-transaction"},{"title":"Get Trade V2 Quote","openapi":"GET /trade/v2/quote","href":"/api-reference/get-trade-v2-quote"},{"title":"Create Trade V2 Swap Transaction","openapi":"POST /trade/v2/swap","href":"/api-reference/create-trade-v2-swap"}]},{"group":"Partner","pages":[{"title":"Get Partner Stats","openapi":"GET /fee-share/partner-config/stats","href":"/api-reference/get-partner-stats"},{"title":"Create Partner Claim Transactions","openapi":"POST /fee-share/partner-config/claim-tx","href":"/api-reference/get-partner-claim-transactions"},{"title":"Create Partner Config","openapi":"POST /fee-share/partner-config/creation-tx","href":"/api-reference/create-partner-configuration"}]},{"group":"Solana","pages":[{"title":"Send Transaction","openapi":"POST /solana/send-transaction","href":"/api-reference/send-transaction"}]},{"group":"EVM","pages":[{"title":"Get EVM Token Creators","openapi":"GET /evm/token-creator","href":"/api-reference/get-evm-token-creator"}]},{"group":"Robinhood Chain","pages":[{"title":"Get Robinhood Token List","openapi":"GET /evm/rh/tokens","href":"/api-reference/get-rh-tokens"},{"title":"Get Robinhood Token","openapi":"GET /evm/rh/token","href":"/api-reference/get-rh-token"},{"title":"Get Robinhood Token State","openapi":"GET /evm/rh/token-state","href":"/api-reference/get-rh-token-state"},{"title":"Get Robinhood Token Creations","openapi":"GET /evm/rh/token-creations","href":"/api-reference/get-rh-token-creations"},{"title":"Get Robinhood Trade History","openapi":"GET /evm/rh/trades","href":"/api-reference/get-rh-trades"},{"title":"Get Robinhood Trade Stats","openapi":"GET /evm/rh/trade-stats","href":"/api-reference/get-rh-trade-stats"},{"title":"Get Robinhood Creator Fees","openapi":"GET /evm/rh/creator-fees","href":"/api-reference/get-rh-creator-fees"},{"title":"Get Robinhood Creator Roster","openapi":"GET /evm/rh/creator-roster","href":"/api-reference/get-rh-creator-roster"},{"title":"Get Robinhood Creator Earnings","openapi":"GET /evm/rh/creator-earnings","href":"/api-reference/get-rh-creator-earnings"},{"title":"Get Robinhood Swap Quote","openapi":"GET /evm/rh/quote","href":"/api-reference/get-rh-quote"},{"title":"Get Robinhood Pool Price","openapi":"GET /evm/rh/pool-price","href":"/api-reference/get-rh-pool-price"},{"title":"Get Robinhood Balances","openapi":"GET /evm/rh/balances","href":"/api-reference/get-rh-balances"},{"title":"Get Robinhood Portfolio","openapi":"GET /evm/rh/portfolio","href":"/api-reference/get-rh-portfolio"},{"title":"Get Robinhood Claimable Positions","openapi":"GET /evm/rh/claimable-positions","href":"/api-reference/get-rh-claimable-positions"},{"title":"Create Robinhood Claim Transactions","openapi":"POST /evm/rh/create-claim-txs","href":"/api-reference/create-rh-claim-txs"},{"title":"Get Robinhood Creation Fee","openapi":"GET /evm/rh/creation-fee","href":"/api-reference/get-rh-creation-fee"},{"title":"Get Robinhood Top Volume","openapi":"GET /evm/rh/top-volume","href":"/api-reference/get-rh-top-volume"},{"title":"Get Index Token History","openapi":"GET /evm/rh/index-token/history","href":"/api-reference/get-rh-index-token-history"},{"title":"Get Index Token Statuses","openapi":"POST /evm/rh/index-token/status","href":"/api-reference/get-rh-index-token-status"},{"title":"Initialize Index Token","openapi":"POST /evm/rh/index-token/init","href":"/api-reference/init-rh-index-token"}]},{"group":"Dexscreener","pages":[{"title":"Check Dexscreener Order Availability","openapi":"GET /solana/dexscreener/order-availability","href":"/api-reference/get-dexscreener-order-availability"},{"title":"Create Dexscreener Order","openapi":"POST /solana/dexscreener/create-order","href":"/api-reference/create-dexscreener-order"},{"title":"Submit Dexscreener Payment","openapi":"POST /solana/dexscreener/submit-payment","href":"/api-reference/submit-dexscreener-payment"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/changelog"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/what-is-bags-api"}]}]},"basePath":"","title":"Create custom quote claim plan - Bags API Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}