Maker liquidity: create, fund, withdraw, update, and close ads
The maker-side API. Like every v2 endpoint, responses carry contract call
data only — no authorization token or relayer signature.
Endpoints
Endpoint
Purpose
GET /v1/ads
list ads — filter by status, creatorAddresses, route; cursor-paginated
GET /v1/ads/:id
one ad with its route, pool, and limits
POST /v1/ads/create
create an ad → the createAd transaction data for the ad chain
POST /v1/ads/:id/fund
top up the pool → fundAd transaction data
POST /v1/ads/:id/withdraw
withdraw from the pool → transaction data
PATCH /v1/ads/:id/update
change limits / metadata
POST /v1/ads/:id/close
close the ad and reclaim liquidity
POST /v1/ads/:id/confirm
confirm a pending ad action landed on-chain
Create an ad
POST /v1/ads/create{ "routeId": "123e4567-e89b-12d3-a456-426614174000", "creatorDstAddress": "0x…", // where you receive on the order chain "fundAmount": "1000000000000000000", "minAmount": "100000000000000000", // optional "maxAmount": "5000000000000000000", // optional "metadata": { "title": "My Ad" } // optional}
Response — the data for the createAd transaction on the ad chain:
Submit the transaction from the maker wallet, then
POST /v1/ads/:id/confirm. Fund, withdraw, update, and close follow the
same pattern: request → transaction data → wallet submits → confirm.
Accounting
An ad’s available liquidity is its on-chain pool minus the unreleased
holds of open trades. Trade reservations that expire or get replaced
release their hold automatically — see
Trades for the reservation lifecycle.
Before creating an ad, the maker wallet needs a registered
settlement key — every trade on the ad
will require the maker’s co-signature.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"ProofBridge","colors":{"primary":"#6366f1","light":"#a5b4fc","dark":"#4338ca"},"logo":{"light":"https://media.brand.dev/01d04b17-1525-498f-a261-b4fbd27e1404.svg","dark":"https://media.brand.dev/01d04b17-1525-498f-a261-b4fbd27e1404.svg"},"favicon":"https://mintcdn.com/proofbridge/mT75KlHafko4VkmZ/favicon.ico?fit=max\u0026auto=format\u0026n=mT75KlHafko4VkmZ\u0026q=85\u0026s=f7bfd2bf21787f318ed1d2aae6915037","background":{},"navbar":{"primary":{"type":"github","href":"https://github.com/Explore-Beyond-Innovations/ProofBridge"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"proofbridge","hasAudioNarration":false,"actualSubdomain":"proofbridge","customDomains":["docs.pfbridge.xyz"],"gitSource":{"type":"github","owner":"explore-beyond-innovations","repo":"proofbridge-docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":"","_id":"6b10e25a9ffae5051c411e1a"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af575ec9e01b82c5918ae41","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Documentation","count":92},{"language":"default","tag":"Guides","count":30},{"language":"default","tag":"Core Concepts","count":27},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Get Started","count":11},{"language":"default","tag":"Reference","count":11},{"language":"default","tag":"Architecture","count":8},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"Trading","count":6},{"language":"default","tag":"Soak","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"v2/api/ads","slug":"/v2/api/ads","pageMetadata":{"title":"Ads","description":"Maker liquidity: create, fund, withdraw, update, and close ads","href":"/v2/api/ads"},"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: \"Maker liquidity: create, fund, withdraw, update, and close ads\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The maker-side API. Like every v2 endpoint, responses carry contract call\ndata only — no authorization token or relayer signature.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoints`,children:`Endpoints`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /v1/ads`})}),_jsxs(_components.td,{children:[`list ads — filter by `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`creatorAddresses`}),`, route; cursor-paginated`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /v1/ads/:id`})}),_jsx(_components.td,{children:`one ad with its route, pool, and limits`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/ads/create`})}),_jsxs(_components.td,{children:[`create an ad → the `,_jsx(_components.code,{children:`createAd`}),` transaction data for the ad chain`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/ads/:id/fund`})}),_jsxs(_components.td,{children:[`top up the pool → `,_jsx(_components.code,{children:`fundAd`}),` transaction data`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/ads/:id/withdraw`})}),_jsx(_components.td,{children:`withdraw from the pool → transaction data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH /v1/ads/:id/update`})}),_jsx(_components.td,{children:`change limits / metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/ads/:id/close`})}),_jsx(_components.td,{children:`close the ad and reclaim liquidity`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/ads/:id/confirm`})}),_jsx(_components.td,{children:`confirm a pending ad action landed on-chain`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-ad`,children:`Create an ad`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`POST /v`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/ads/create`})]}),`\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:` \"routeId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123e4567-e89b-12d3-a456-426614174000\"`}),_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:` \"creatorDstAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// where you receive on the order chain`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fundAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000000000000000000\"`}),_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:` \"minAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"100000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maxAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"My Ad\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Response — the data for the `,_jsx(_components.code,{children:`createAd`}),` transaction on the ad chain:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,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:` \"chainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000001\"`}),_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:` \"chainKind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STELLAR\"`}),_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:` \"contractAddress\"`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the AdManager`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"adId\"`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"adToken\"`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"initialAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000000000000000000\"`}),_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:` \"orderChainId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"11155111\"`}),_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:` \"adRecipient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Submit the transaction from the maker wallet, then\n`,_jsx(_components.code,{children:`POST /v1/ads/:id/confirm`}),`. Fund, withdraw, update, and close follow the\nsame pattern: request → transaction data → wallet submits → confirm.`]}),`\n`,_jsx(Heading,{level:`2`,id:`accounting`,children:`Accounting`}),`\n`,_jsxs(_components.p,{children:[`An ad’s `,_jsx(_components.strong,{children:`available`}),` liquidity is its on-chain pool minus the unreleased\nholds of open trades. Trade reservations that expire or get replaced\nrelease their hold automatically — see\n`,_jsx(_components.a,{href:`/v2/api/trades`,children:`Trades`}),` for the reservation lifecycle.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Before creating an ad, the maker wallet needs a registered\n`,_jsx(_components.a,{href:`/v2/concepts/settlement-keys`,children:`settlement key`}),` — every trade on the ad\nwill require the maker’s co-signature.`]})})]})}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":"Ads","description":"Maker liquidity: create, fund, withdraw, update, and close ads","href":"/v2/api/ads"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoints","slug":"endpoints","depth":2,"children":[]},{"title":"Create an ad","slug":"create-an-ad","depth":2,"children":[]},{"title":"Accounting","slug":"accounting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"proofbridge","siteName":"ProofBridge","title":"Ads - ProofBridge","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v3":{"href":"/v3/api/ads","matchLevel":1},"v2":{"href":"/v2/api/ads","matchLevel":0},"v1 (pre-BLS)":{"href":"/api/ads","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-07-28T11:51:59.739Z","originalFileLocation":"v2/api/ads.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=\"Maker liquidity: create, fund, withdraw, update, and close ads\">\u003cmeta data-mint-head name=\"application-name\" content=\"ProofBridge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_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/proofbridge/5MZ7VDrQZnZ3onSK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ads - ProofBridge\">\u003cmeta data-mint-head property=\"og:description\" content=\"Maker liquidity: create, fund, withdraw, update, and close ads\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ProofBridge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pfbridge.xyz/v2/api/ads\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://proofbridge.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Ads\u0026amp;description=Maker+liquidity%3A+create%2C+fund%2C+withdraw%2C+update%2C+and+close+ads\u0026amp;theme=87d54fda6da76cca45ca02e6\u0026amp;signature=4ea3f6dd9c0278113db18822b618981fd57b4b915c463f99214485b775f9f20d\">\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=\"Ads - ProofBridge\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Maker liquidity: create, fund, withdraw, update, and close ads\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://proofbridge.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Ads\u0026amp;description=Maker+liquidity%3A+create%2C+fund%2C+withdraw%2C+update%2C+and+close+ads\u0026amp;theme=87d54fda6da76cca45ca02e6\u0026amp;signature=4ea3f6dd9c0278113db18822b618981fd57b4b915c463f99214485b775f9f20d\">\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/proofbridge/5MZ7VDrQZnZ3onSK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ProofBridge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pfbridge.xyz/v2/api/ads\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/api/ads.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pfbridge.xyz/#organization\",\"name\":\"ProofBridge\",\"url\":\"https://docs.pfbridge.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/01d04b17-1525-498f-a261-b4fbd27e1404.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pfbridge.xyz#website\",\"name\":\"ProofBridge\",\"url\":\"https://docs.pfbridge.xyz\",\"publisher\":{\"@id\":\"https://docs.pfbridge.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pfbridge.xyz/v2/api/ads#webpage\",\"url\":\"https://docs.pfbridge.xyz/v2/api/ads\",\"name\":\"Ads\",\"description\":\"Maker liquidity: create, fund, withdraw, update, and close ads\",\"dateModified\":\"2026-07-28T11:51:59.739Z\",\"isPartOf\":{\"@id\":\"https://docs.pfbridge.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pfbridge.xyz/v2/api/ads#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pfbridge.xyz/v2/api/ads#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.pfbridge.xyz/api/chains\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ads\",\"item\":\"https://docs.pfbridge.xyz/v2/api/ads\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pfbridge.xyz/v2/api/ads#article\",\"headline\":\"Ads\",\"name\":\"Ads\",\"description\":\"Maker liquidity: create, fund, withdraw, update, and close ads\",\"url\":\"https://docs.pfbridge.xyz/v2/api/ads\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pfbridge.xyz/v2/api/ads#webpage\"},\"dateModified\":\"2026-07-28T11:51:59.739Z\",\"publisher\":{\"@id\":\"https://docs.pfbridge.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pfbridge.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ProofBridge\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ProofBridge\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v2/api/ads.md","siteName":"ProofBridge","nav":{"global":null,"versions":[{"version":"v3","default":true,"tag":"Latest","pages":[{"title":"v3","href":"/v3/api/ads"}]},{"version":"v2","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v2/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference: ProofBridge Relayer REST API Overview","sidebarTitle":"Overview","href":"/api/overview"},{"title":"Authentication: Wallet-Based Sign-In for API Access","sidebarTitle":"Authentication","href":"/api/authentication"}]},{"group":"Endpoints","pages":[{"title":"Chains API: Query Supported Blockchain Networks Info","sidebarTitle":"Chains","href":"/api/chains"},{"title":"Routes API: Browse Supported Cross-Chain Token Pairs","sidebarTitle":"Routes","description":"Query ProofBridge cross-chain routes — the directional token pair mappings that define which tokens can be bridged between which chains.","href":"/api/routes"},{"title":"Ads","href":"/v2/api/ads"},{"title":"Trades","description":"Create, fund, lock, and confirm trades — no authorization token anywhere","href":"/v2/api/trades"},{"title":"Settlement \u0026 keys","href":"/v2/api/settlement-and-keys"}]}]}]},{"version":"v1 (pre-BLS)","pages":[{"title":"v1 (pre-BLS)","href":"/api/ads"}]}]},"basePath":"","title":"Ads - ProofBridge","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}