{
  "x402Version": 2,
  "id": 37935,
  "slug": "37935",
  "resource": "https://api.teardrop.dev/tools/mcp#decode_transaction",
  "description": "Teardrop decode_transaction: Decode a transaction's calldata into a human-readable function name and arguments, and return transaction status (1=success, 0=revert), gas used, and block number. Uses a supplied ABI when provided, otherwise 4byte.directory. Supports Ethereum mainnet and Base.",
  "type": "http",
  "resourceType": "MCP Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "block_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "chain_id": {
            "type": "integer"
          },
          "decode_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "decoded_args": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_address": {
            "type": "string"
          },
          "function_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "function_selector": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "gas_used": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "default": "decoded_args values are raw ABI-decoded types; uint256 amounts have not been decimals-formatted — do not call read_contract or get_erc20_balance to interpret them unless the user explicitly asks. Addresses (from_address, to_address, decoded_args) are plain hex — do not call resolve_ens to label them unless the user explicitly asks.",
            "type": "string"
          },
          "raw_calldata": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "1=success, 0=revert, None=pending"
          },
          "to_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tx_hash": {
            "type": "string"
          },
          "value_eth": {
            "type": "string"
          }
        },
        "required": [
          "tx_hash",
          "from_address",
          "to_address",
          "value_eth",
          "gas_used",
          "block_number",
          "function_selector",
          "function_name",
          "decoded_args",
          "raw_calldata",
          "decode_source",
          "chain_id"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "description": "Decode a transaction's calldata into a human-readable function name and arguments, and return transaction status (1=success, 0=revert), gas used, and block number. Uses a supplied ABI when provided, otherwise 4byte.directory. Supports Ethereum mainnet and Base.",
          "inputSchema": {
            "properties": {
              "abi_json": {
                "anyOf": [
                  {
                    "maxLength": 65536,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Optional ABI JSON array for decoding. If omitted, 4byte.directory is used.",
                "title": "Abi Json"
              },
              "chain_id": {
                "default": 1,
                "description": "Chain ID (1=Ethereum, 8453=Base)",
                "title": "Chain Id",
                "type": "integer"
              },
              "tx_hash": {
                "description": "Transaction hash (0x… 64 hex chars)",
                "title": "Tx Hash",
                "type": "string"
              }
            },
            "required": [
              "tx_hash"
            ],
            "title": "DecodeTransactionInput",
            "type": "object"
          },
          "toolName": "decode_transaction",
          "transport": "streamable-http",
          "type": "mcp"
        },
        "output": {
          "example": {
            "block_number": 0,
            "chain_id": 0,
            "decode_source": "",
            "decoded_args": {},
            "from_address": "",
            "function_name": "",
            "function_selector": "",
            "gas_used": 0,
            "raw_calldata": "",
            "to_address": "",
            "tx_hash": "",
            "value_eth": ""
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "description": {
                "type": "string"
              },
              "inputSchema": {
                "type": "object"
              },
              "toolName": {
                "type": "string"
              },
              "transport": {
                "enum": [
                  "streamable-http",
                  "sse"
                ],
                "type": "string"
              },
              "type": {
                "const": "mcp",
                "type": "string"
              }
            },
            "required": [
              "type",
              "toolName",
              "inputSchema"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "block_number": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chain_id": {
                    "type": "integer"
                  },
                  "decode_source": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "decoded_args": {
                    "anyOf": [
                      {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "from_address": {
                    "type": "string"
                  },
                  "function_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "function_selector": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gas_used": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "note": {
                    "default": "decoded_args values are raw ABI-decoded types; uint256 amounts have not been decimals-formatted — do not call read_contract or get_erc20_balance to interpret them unless the user explicitly asks. Addresses (from_address, to_address, decoded_args) are plain hex — do not call resolve_ens to label them unless the user explicitly asks.",
                    "type": "string"
                  },
                  "raw_calldata": {
                    "type": "string"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "1=success, 0=revert, None=pending"
                  },
                  "to_address": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tx_hash": {
                    "type": "string"
                  },
                  "value_eth": {
                    "type": "string"
                  }
                },
                "required": [
                  "tx_hash",
                  "from_address",
                  "to_address",
                  "value_eth",
                  "gas_used",
                  "block_number",
                  "function_selector",
                  "function_name",
                  "decoded_args",
                  "raw_calldata",
                  "decode_source",
                  "chain_id"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.teardrop.dev",
  "lastUpdated": "2026-10-08T00:42:17.394Z",
  "quality": {
    "calls30d": 0,
    "uniquePayers30d": 0,
    "lastCalledAt": "2026-10-05T01:30:33.121Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "description": "Decode a transaction's calldata into a human-readable function name and arguments, and return transaction status (1=success, 0=revert), gas used, and block number. Uses a supplied ABI when provided, otherwise 4byte.directory. Supports Ethereum mainnet and Base.",
            "inputSchema": {
              "properties": {
                "abi_json": {
                  "anyOf": [
                    {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null,
                  "description": "Optional ABI JSON array for decoding. If omitted, 4byte.directory is used.",
                  "title": "Abi Json"
                },
                "chain_id": {
                  "default": 1,
                  "description": "Chain ID (1=Ethereum, 8453=Base)",
                  "title": "Chain Id",
                  "type": "integer"
                },
                "tx_hash": {
                  "description": "Transaction hash (0x… 64 hex chars)",
                  "title": "Tx Hash",
                  "type": "string"
                }
              },
              "required": [
                "tx_hash"
              ],
              "title": "DecodeTransactionInput",
              "type": "object"
            },
            "toolName": "decode_transaction",
            "transport": "streamable-http",
            "type": "mcp"
          },
          "output": {
            "example": {
              "block_number": 0,
              "chain_id": 0,
              "decode_source": "",
              "decoded_args": {},
              "from_address": "",
              "function_name": "",
              "function_selector": "",
              "gas_used": 0,
              "raw_calldata": "",
              "to_address": "",
              "tx_hash": "",
              "value_eth": ""
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "type": "string"
                },
                "inputSchema": {
                  "type": "object"
                },
                "toolName": {
                  "type": "string"
                },
                "transport": {
                  "enum": [
                    "streamable-http",
                    "sse"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "mcp",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "toolName",
                "inputSchema"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "block_number": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chain_id": {
                      "type": "integer"
                    },
                    "decode_source": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decoded_args": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "from_address": {
                      "type": "string"
                    },
                    "function_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "function_selector": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gas_used": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "default": "decoded_args values are raw ABI-decoded types; uint256 amounts have not been decimals-formatted — do not call read_contract or get_erc20_balance to interpret them unless the user explicitly asks. Addresses (from_address, to_address, decoded_args) are plain hex — do not call resolve_ens to label them unless the user explicitly asks.",
                      "type": "string"
                    },
                    "raw_calldata": {
                      "type": "string"
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "1=success, 0=revert, None=pending"
                    },
                    "to_address": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tx_hash": {
                      "type": "string"
                    },
                    "value_eth": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "tx_hash",
                    "from_address",
                    "to_address",
                    "value_eth",
                    "gas_used",
                    "block_number",
                    "function_selector",
                    "function_name",
                    "decoded_args",
                    "raw_calldata",
                    "decode_source",
                    "chain_id"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.teardrop.dev",
    "manifest_name": "api.teardrop.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "block_number": null,
      "chain_id": 0,
      "decode_source": null,
      "decoded_args": null,
      "from_address": "string",
      "function_name": null,
      "function_selector": null,
      "gas_used": null,
      "note": "decoded_args values are raw ABI-decoded types; uint256 amounts have not been decimals-formatted — do not call read_contract or get_erc20_balance to interpret them unless the user explicitly asks. Addresses (from_address, to_address, decoded_args) are plain hex — do not call resolve_ens to label them unless the user explicitly asks.",
      "raw_calldata": "string",
      "status": null,
      "to_address": null,
      "tx_hash": "string",
      "value_eth": "string"
    },
    "type": "string"
  }
}