decode_offer
Decode a Chia offer string into structured coin spends, amounts, signature presence, and spend bundle hash for local inspection; conditions and requested payments are not decoded.
Instructions
Decode a Chia offer string (offer1...) into a structured summary. Returns an array of coin_spends, each with coin_id, parent_coin_info, puzzle_hash, amount_mojos, puzzle_reveal_size_bytes, and solution_size_bytes. Also reports has_aggregated_signature (boolean), num_coin_spends, and spend_bundle_hash. Uses the chia-wallet-sdk for correct bech32m and CLVM deserialization — pure local computation, no RPC calls. STRUCTURE ONLY — shows coin spends and their amounts but does not decode conditions or requested payments. This tool cannot enumerate CREATE_COIN conditions, surface the requested side of the trade, or provide the full picture needed to assess offer fairness. For full offer evaluation, a wallet-level tool is needed. Useful for: identifying which coins are being spent, their amounts, and whether a signature is attached (partial bundles from the maker side typically have one).
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": {
"offer": "<offer>"
},
"name": "decode_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | The Chia offer string (bech32m-encoded, starts with 'offer1...') |