$ man safe-tx-decode
/safe-tx-decode(1)
PRICE / CALL
$0.003
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
safe-tx-decode — gnosis safe exectransaction decoder
SYNOPSIS
POST https://x402.org/v1/safe-tx-decode
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
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.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| tx_hash | string | Safe transaction hash to look up and decode via on-chain execTransaction call data. | optional |
| calldata | string | Raw execTransaction calldata hex string to decode directly without an on-chain lookup. | optional |
| chain | string | Chain name or ID where the Safe lives (e.g. ethereum, base, 1, 8453) for RPC routing. | optional |
| to | string | Safe contract address; pairs with tx_hash or calldata to scope the decode to that multisig. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| is_multisend | string | True if the decoded call targets the MultiSend contract and was unpacked into inner sub-transactions. |
| multisend_op_count | string | Number of inner operations unpacked from the MultiSend batch, or 0 when not a MultiSend. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/safe-tx-decode \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the safe-tx-decode tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- gnosis-safemultisigtransaction-decodercalldatamultisendexectransaction
- methods
- POST
- cluster
- edgemarket
- price
- $0.003 USDC per call
ADJACENT — other endpoints in edgemarket
| endpoint | description | price |
|---|---|---|
| erc20-balance | ERC-20 balance reader / balanceOf / on-chain token balance / wallet balance lookup / multi-chain ERC20 balance / read Base / read Ethereu… | $0.002 |
| erc20-metadata | ERC-20 metadata reader / token info / token symbol lookup / token decimals / total supply / multi-chain ERC20 reader / Base / Ethereum /… | $0.002 |
| funding-rates | Perp funding rates / Binance USD-M futures funding / next-funding-time / 24h history / perp basis. | $0.002 |
| agent-card-resolve | Agent card resolver / ERC-8004 Identity Registry lookup / Trustless Agents / agentId → owner + agentURI / A2A identity / agent.json fetch… | $0.005 |
| arbitrage-spread | Cross-exchange arbitrage spread / max-min price / CEX price dispersion / spread % calculator. | $0.005 |
| basename-resolve | Basename resolver / Coinbase Basenames / .base.eth lookup / Base name service / on-chain name resolution. | $0.005 |
| defi-yield-pools | DeFi yield pools / APY aggregator / yield-farming opportunities / DeFiLlama yields / cross-protocol APY ranking / stablecoin yields / LP… | $0.005 |
| ipfs-fetch | IPFS fetch / IPFS gateway / Web3 storage retrieval / NFT metadata fetcher / Filecoin gateway / decentralized content / pinned-content reader. | $0.005 |
SEE ALSO