{"uid":"cap_uLpgQp9BC5WGmSr5ceam5","slug":"delx-payout-if-yes-b8788c39","name":"Delx Payout If Yes","description":"Payout if YES resolves given shares held (\\$1/share style). Call when estimating gross payout on a YES position at resolution. Returns gross payout as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/payout-if-yes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"shares":{"type":"integer","description":"Input field: shares."}}},"responseSchema":{"type":"json","example":{"payout":200,"schema":"delx/util-payout-if-yes/v1","shares":200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a_A1rfqCpsT2Chgoj0xsh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Conditionally returns a payout value equal to the number of shares provided, acting as a governed yes-branch payout calculator for agent decision workflows.","exampleAgentPrompt":"Calculate the payout for 200 shares assuming the condition is yes.","exampleUseCases":[{"title":"Agent reward distribution calculation","prompt":"My agent just confirmed a yes outcome — calculate the payout for 150 shares so I know how much to distribute."},{"title":"Conditional workflow payout branch","prompt":"In my automated trading workflow, a buy signal triggered — what's the payout for 500 shares on the yes branch?"},{"title":"Batch decision payout preview","prompt":"Before committing, tell me what payout I'd get back if 75 shares hit a yes condition in the Delx payout system."}],"resultDescription":"Returns a JSON object containing the computed payout value (equal to shares input), an echo of the shares count, and a schema identifier string ('delx/util-payout-if-yes/v1') confirming the endpoint version used.","failureModes":["Missing or non-integer 'shares' field returns a validation error","Zero or negative shares may return a zero payout or an error depending on server logic","Malformed request body causes a 400 Bad Request","x402 payment not included or insufficient funds results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when an agent workflow needs to compute or verify a conditional payout amount based on a shares count in a governed, auditable way — especially within Delx infrastructure pipelines where x402 micropayment rails are already in use. Prefer this over custom logic when you need a versioned schema output for downstream validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:41:53.713Z","isFirstParty":false,"canonicalSlug":"delx-payout-if-yes-b8788c39"}