{"uid":"cap_mE5DCJ1sY9V-imEHIv_S4","slug":"leo-shi-market-transaction-endpoint-ff8f0903","name":"Leo Shi Market Transaction Endpoint","description":"一个人的思考、创作与成长记录。关于生活、技术、商业和一切有趣的事。","url":"https://leoshi-blog.vercel.app/api/market/tx?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hash":{"type":"string","description":"Base mainnet transaction hash starting with 0x"}}},"responseSchema":{"type":"json","example":{"hash":"0x0000000000000000000000000000000000000000000000000000000000000000","status":"confirmed","blockNumber":28123456}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9ChmNR21H5H4mfrzXoa-7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits a market transaction and returns the on-chain transaction hash, status, and block number","exampleAgentPrompt":"Submit a market transaction for me and give me the transaction hash and block number once it's confirmed on-chain.","exampleUseCases":[{"title":"On-chain market trade execution","prompt":"Execute a market transaction for me and return the transaction hash and confirmation status once it's been recorded on the blockchain."},{"title":"Verify transaction finality","prompt":"I just submitted a market transaction — can you confirm it went through and tell me the block number it was included in?"},{"title":"Automated market operation recording","prompt":"Submit this market transaction and store the resulting hash and block number so I can reference it later for auditing."}],"resultDescription":"A JSON object containing the transaction hash (hex string), status ('confirmed'), and block number (integer) of the processed on-chain transaction.","failureModes":["Invalid or malformed transaction data returns an error response","Insufficient payment authorization causes rejection","Network congestion may delay confirmation and affect status","Duplicate transaction submission may fail or be rejected by the chain","Missing required fields in the POST body result in a 400-level error"],"whenToPreferThis":"Use this endpoint when you need to submit and confirm a market transaction on-chain and receive a verifiable transaction hash and block number as proof of execution. It is suitable for lightweight, pay-per-call use cases via x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:45:44.214Z","isFirstParty":false,"canonicalSlug":"leo-shi-market-transaction-endpoint-ff8f0903"}