# Gnosis Safe execTransaction Decoder

> Gnosis Safe execTransaction Decoder is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Decodes a Gnosis Safe multisig transaction hash or raw calldata into its constituent fields (target, value, data, operation, gas, signers), and auto-decodes inner MultiSend batches.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/safe-tx-decode
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-b2223f3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xRosZtyw-Wm6IF_NUN--B

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-b2223f3e -d '<json body>'
```

Example prompt: Decode this Gnosis Safe transaction hash 0x3a7c...f1b2 for me — I need to see the target address, value, calldata, operation type, gas settings, and which signers approved it, and if it's a MultiSend batch please break out each inner transaction too.

## When to prefer this

Use this endpoint when you need to programmatically inspect, audit, or display the contents of a Gnosis Safe multisig transaction — especially when you have a raw tx hash or calldata and need to surface human-readable fields for security review, compliance, or debugging. Particularly valuable when dealing with MultiSend batches where multiple inner calls are bundled together.

## Known failure modes

- Invalid or unrecognized transaction hash returns an error
- Malformed calldata that doesn't match execTransaction ABI fails to decode
- Transaction hash not found on-chain or not a Safe tx returns not found error
- Non-Safe contract calldata passed in returns a decoding error
- Network/RPC timeout if chain data fetch is slow

## How this service works

Gnosis Safe execTransaction decoder. Decodes a Safe multisig tx hash or raw calldata into target/value/data/operation/gas/signers. Auto-decodes inner MultiSend batches.

## Output

Returns a structured breakdown of the Safe execTransaction including: target contract address, ETH value, inner calldata/data, operation type (call vs delegate), gas parameters, and the list of signers. If the transaction is a MultiSend batch, each inner sub-transaction is also decoded and returned separately.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "to": {
       "type": "string",
       "description": "Optional Safe address to echo back in the response when not resolvable from tx_hash."
      },
      "chain": {
       "type": "string",
       "description": "'ethereum' (default), 'base', 'arbitrum', 'optimism', 'polygon', or 'gnosis'. Only used when resolving tx_hash via RPC."
      },
      "tx_hash": {
       "type": "string",
       "description": "On-chain hash of the Safe execTransaction call to fetch and decode. Provide this or 'calldata'."
      },
      "calldata": {
       "type": "string",
       "description": "Raw execTransaction calldata to decode directly, skipping the RPC lookup. Provide this or 'tx_hash'."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "is_multisend": {
       "type": "boolean"
      },
      "multisend_op_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-b2223f3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
