{"uid":"cap_n6lHH6xCMM-t1VsLkoJ8v","slug":"speraxos-governance-preparetx-2cc68749","name":"SperaxOS Governance prepareTx","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/tools/governance/prepareTx?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"choice":{"type":"number","description":"Choice index (1-indexed, matching the proposal choices array)"},"wallet":{"type":"string","description":"Wallet address (0x...)"},"proposalId":{"type":"string","description":"The Snapshot proposal ID"}}},"responseSchema":null,"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_ZBb9zK2XbzL25XRm1BBF0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Prepares a Snapshot governance vote transaction for a given proposal, wallet, and choice index","exampleAgentPrompt":"Prepare a governance vote transaction for Snapshot proposal 0xabc123 — I want to vote for choice 2 using my wallet 0xDEF456...","exampleUseCases":[{"title":"Delegate votes on a DAO proposal","prompt":"I want to vote yes (choice 1) on Snapshot proposal 0x7f3a... using my wallet 0xABCD... — can you prepare the vote transaction for me?"},{"title":"Automate governance participation","prompt":"My wallet is 0x1234... and I need to vote against option 3 on Snapshot proposal 0xdead... — prepare the transaction so I can sign it."},{"title":"Build vote tx for agent-driven DAO automation","prompt":"Prepare the governance vote transaction for proposal 0xbeef... on Snapshot — my wallet is 0x9999... and I want to select choice 2."}],"resultDescription":"Returns a prepared transaction payload or structured vote data that the caller can then sign and submit to cast a governance vote on the specified Snapshot proposal, encoding the wallet address and selected choice index.","failureModes":["Invalid or non-existent proposalId returns an error","Choice index out of range for the proposal's options causes a validation error","Malformed wallet address (non-0x or wrong length) triggers a bad request error","Payment not fulfilled via x402 results in a 402 Payment Required response","Proposal already closed or expired may return an error"],"whenToPreferThis":"Use this endpoint when an agent or user needs to programmatically prepare a governance vote transaction for a Snapshot proposal without manually constructing the payload — particularly in automated DAO participation workflows or when integrating DeFi governance into an AI agent pipeline. It is pay-per-request with no API key required, making it ideal for low-frequency or ad-hoc governance automation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:40:47.450Z","isFirstParty":false,"canonicalSlug":"speraxos-governance-preparetx-2cc68749"}