Build a transaction manifest
get_manifestStep 3: a ready-to-sign transaction manifest. Kinds: create-caper, buy, sell, swap, create-proposal, vote, count, trigger, resolve, execute, activate-upgrade, exit, withdraw-founder, transfer-founder. Per-kind parameters – create-caper: name, cashtag, description, infoUrl?, iconUrl?, originToken? (resource address, vampire launch); buy: cashtag, xrd ($XRD to spend); sell: cashtag, tokens (caper tokens to sell); swap: from, to (cashtags), tokens (of from to sell) – one transaction that sells from into $XRD and buys to with it, so it pays the skim on both legs; create-proposal: cashtag, title, description, action (one action object, or an array of up to 4 the voters rank against each other and an always-appended "Do nothing"; each is { kind: "PAYOUT" | "INVEST" | "DIVEST" | "UPGRADE" | "METADATA" | "DEBATE", … }. METADATA rewrites the token's mutable metadata via metadataDescription / metadataIconUrl / metadataInfoUrl, at least one; DEBATE is a non-executable position in a debate – title and description only, and a winning one ends the proposal at the tally with no market window). Creation costs the proposal fee – 1% of the largest option's $XRD-equivalent amount, at least 500 $XRD – banked to the treasury and kept on pass or fail; vote: cashtag, proposalId (the P-… code), sequence (ranked on-chain option indexes, best first, including the trailing "Do nothing" index); count: cashtag, proposalId (the P-… code) – returns manifests, one or a volley to send at once; trigger, resolve: cashtag, proposalId (the P-… code); execute: cashtag, proposalId (the P-… code); for an UPGRADE this is step one of two, which records the candidate in the registry and starts its timelock; activate-upgrade: cashtag, proposalId (the P-… code) – step two of an UPGRADE, valid once the registry timelock lifts; refused before then with the time it lifts; exit: cashtag, votes? and tokens? (vote tokens to burn and caper tokens to sell, each defaulting to your whole balance) – one transaction that burns the vote tokens for your share of the treasury and sells the caper tokens back to the curve; withdraw-founder: cashtag – claims every accrued founder-fee leg, $XRD and caper tokens, to the founder badge's holder; transfer-founder: cashtag, recipient (account), withdrawAccrued? (default true: claim the accrued legs to you first; false leaves them to the recipient) – deposits the founder badge with the recipient. Here create-proposal's action rides as actionJson, a JSON string – e.g. '{"kind":"PAYOUT","title":"Grant","currency":"","amount":100,"recipient":""}'. Governance is two-phase: members rank ballots during the voting window (kind "vote"; each ballot costs 100 $XRD and mints 1 soulbound vote token); once the window closes, "count" tallies it (returning manifests, one or a volley to send at once); a supermajority pass arms "trigger", which locks the trailing TWAP as the baseline and opens the market window; after the window, "resolve" ratifies the winner unless that window's own TWAP is below the baseline, and "execute" runs a ratified winner – an UPGRADE in two steps, "execute" and then "activate-upgrade" once the registry timelock lifts. The vote legislates, the market ratifies. The cranks after the vote cost nothing beyond the network fee, and anyone can call them. You sign and submit the manifest yourself with your own key, then register the txHash with submit_tx. Requires the Bearer token from the login tool, sent as an HTTP Authorization: Bearer <token> header on the POST carrying this call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"account": "<account>"
},
"name": "get_manifest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | swap: the cashtag of the caper token you buy | |
| xrd | No | buy: $XRD to spend | |
| from | No | swap: the cashtag of the caper token you sell | |
| kind | Yes | What the transaction does | |
| name | No | create-caper: the caper's name | |
| title | No | create-proposal: proposal title | |
| votes | No | exit: vote tokens to burn (defaults to your whole balance) | |
| tokens | No | sell / swap / exit: caper tokens to sell (exit: defaults to your whole balance) | |
| account | Yes | Your account address (pays fees, receives tokens) | |
| cashtag | No | Target caper's cashtag | |
| iconUrl | No | create-caper: optional icon URL (defaults to a generated one) | |
| infoUrl | No | create-caper: optional https project URL | |
| sequence | No | vote: ranked on-chain option indexes, best first — a full permutation including the trailing "Do nothing" index | |
| recipient | No | transfer-founder: the account that receives the founder badge | |
| actionJson | No | create-proposal: JSON for the action(s) – one action object, or an array of up to 4 the voters rank against each other and an always-appended "Do nothing"; each is { kind: "PAYOUT" | "INVEST" | "DIVEST" | "UPGRADE" | "METADATA" | "DEBATE", … }. METADATA rewrites the token's mutable metadata via metadataDescription / metadataIconUrl / metadataInfoUrl, at least one; DEBATE is a non-executable position in a debate – title and description only, and a winning one ends the proposal at the tally with no market window. | |
| proposalId | No | vote and every crank after it: the proposal's P-… code | |
| description | No | create-caper / create-proposal: description text | |
| originToken | No | create-caper: optional origin-token resource address (vampire launch) | |
| withdrawAccrued | No | transfer-founder: claim the accrued founder fees to you first (default true); false leaves them to the recipient |