---
eip: 7896
label: EIP-7896
title: ABI attachment in `wallet_sendCalls`
status: Stagnant
type: Standards Track
category: Interface
created: 2025-02-27
requires: 5792
official: https://eips.ethereum.org/EIPS/eip-7896
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7896.md
canonical: https://eips.huatuo.xyz/eip-7896/
lang: en
tldr: Adds an `interfaces` capability to `wallet_sendCalls` so dapps can attach contract ABIs, letting wallets decode calldata and show users what they are signing instead of raw hex.
tags: [wallet, rpc, abi, security, capabilities]
---

# EIP-7896: ABI attachment in `wallet_sendCalls`

> A capability to enable calldata decoding in wallets.

**TL;DR:** Adds an `interfaces` capability to `wallet_sendCalls` so dapps can attach contract ABIs, letting wallets decode calldata and show users what they are signing instead of raw hex.

## What problem does it solve?

"Blind signing" is one of Ethereum's biggest user-safety problems. When a dapp asks a wallet to send a transaction, the wallet receives `data` as an opaque bytestring. To show something meaningful ("transfer 100 tokens to 0xf0c8…") the wallet must guess the contract's ABI, either from a database of 4-byte selectors (which fails for new contracts and can be fooled by deliberate selector collisions) or from a verified-source service (which is centralised).

Transaction simulation helps but cannot predict every outcome. The dapp, on the other hand, always knows the ABI it used to build the call. This EIP lets it hand that ABI to the wallet.

## How it works

It extends the batch-call API of [EIP-5792](/eip-5792/) with a new capability called `interfaces`:

- In a `wallet_sendCalls` request, `capabilities.interfaces` maps contract addresses (normally the `to` addresses in `calls`) to `{ version, spec }`.
- Two versions are defined: `abi-v1` and `abi-v2`, matching Solidity's ABI coder v1 and v2. The `spec` is the standard Solidity JSON ABI array. It may include events and errors, but should be trimmed to what is relevant.
- Dapps should set `optional: true` so the request still works on wallets that do not support the capability.
- Wallets that support it should decode each call's `data` with the supplied ABI and display the arguments. They may cross-check the ABI against a database of verified or trusted specs.
- `wallet_getCapabilities` advertises support with a `versions` array, e.g. `["abi-v1", "abi-v2"]`.

## Sample code

A `wallet_sendCalls` request with an attached ABI for an ERC-20 `transfer`:

```ts
await provider.request({
  method: "wallet_sendCalls",
  params: [{
    version: "1.0",
    from: account,
    chainId: "0x1",
    calls: [{ to: token, value: "0x0", data: transferCalldata }],
    capabilities: {
      interfaces: {
        optional: true,
        [token]: {
          version: "abi-v2",
          spec: [{
            type: "function", name: "transfer", stateMutability: "nonpayable",
            inputs: [{ name: "to", type: "address" }, { name: "value", type: "uint256" }],
            outputs: [{ name: "", type: "bool" }],
          }],
        },
      },
    },
  }],
});
```

Checking wallet support first:

```json
{ "0x0": { "interfaces": { "supported": true, "versions": ["abi-v1", "abi-v2"] } } }
```

## Things to know

- **Status: Stagnant.** The proposal has seen no recent activity and its Rationale and Security Considerations sections were left as TODO. Wallet support should not be assumed.
- An attached ABI is supplied by the dapp, which may itself be malicious. It improves *readability*, not trust; wallets are encouraged to validate it against trusted sources.
- Addresses in `interfaces` are compared to `to` addresses case-sensitively, so use consistent casing.
- Builds on [EIP-5792](/eip-5792/), which wallets expose through the standard [EIP-1193](/eip-1193/) provider.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7896
