---
eip: 7946
label: ERC-7946
title: Unidirectional Wallet Uplink aka UWULink
status: Draft
type: Standards Track
category: ERC
created: 2025-05-10
requires: 155, 7702
official: https://eips.ethereum.org/EIPS/eip-7946
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7946.md
canonical: https://eips.huatuo.xyz/eip-7946/
lang: en
tldr: "UWULink lets a dApp hand a wallet an atomic batch of calls through a one-way QR code, NFC tag or link, without connecting the wallet or learning the user's address."
tags: [wallet, qr-code, privacy, batching, protobuf]
---

# ERC-7946: Unidirectional Wallet Uplink aka UWULink

> Unidirectional app to wallet communication for private construction of transactions

**TL;DR:** UWULink lets a dApp hand a wallet an atomic batch of calls through a one-way QR code, NFC tag or link, without connecting the wallet or learning the user's address.

## What problem does it solve?

To do anything on a dApp today, you usually "connect" your wallet first. That reveals your address to the site before you have decided to transact, and it needs a live session (an injected provider or WalletConnect). Multi-step actions such as approve-then-swap often still mean several prompts.

UWULink (Unidirectional Wallet Uplink) is a **one-way** request format: the dApp encodes a batch of contract calls into a compact payload, shows it as a QR code, NFC tag or deep link, and the wallet executes it as one atomic transaction. The dApp never learns who scanned it, and nothing is sent back. Because the payload is binary Protocol Buffers rather than a human-readable URI like [ERC-681](/eip-681/), more calls fit in a QR code.

## How it works

A `UWULinkRequest` contains a chain ID ([EIP-155](/eip-155/)) and exactly one of two modes:

- **Static mode:** a list of calls, each with a 20-byte `to`, optional `value` (big-endian, leading zeros stripped) and optional `data`.
- **Programmable mode:** a resolver contract address plus opaque `resolver_data`. The wallet runs `getCalls(userAddress, resolver_data)` on that contract with `eth_call` and uses the returned list. This lets the batch depend on live chain state and on the user, while the user's address is seen only by the wallet's RPC node, not by the dApp.

The serialized message is base64-encoded and placed after the scheme: `uwulink:<base64>`.

Wallet rules:

- All calls MUST execute atomically: all succeed or all revert. On accounts without native batching this relies on features such as [EIP-7702](/eip-7702/); a wallet that cannot batch on that chain must reject.
- Addresses that are not exactly 20 bytes make the message invalid.
- If the wallet is on another chain it should prompt to switch, or reject if it cannot.
- In programmable mode, a reverting resolver means the wallet must abort.
- The wallet always shows the final calls, including those produced by a resolver, for the user to approve.

## Sample code

The protobuf schema from the proposal:

```protobuf
syntax = "proto3";
package org.ethereum.uwulink;

message UWULinkRequest {
  uint64 chain_id = 1;
  oneof request_type {
    Batch batch = 2;
    ResolverReference resolver = 3;
  }
}
message Batch { repeated Call calls = 1; }
message Call {
  bytes to = 1;               // 20 bytes
  optional bytes value = 2;   // up to 32 bytes, big-endian
  optional bytes data = 3;
}
message ResolverReference {
  bytes resolver_address = 1; // 20 bytes
  bytes resolver_data = 2;
}
```

The resolver interface for programmable mode:

```solidity
interface UWUResolver {
    struct Call { address target; uint256 value; bytes data; }
    error CallGenerationFailure(uint256 errorCode);

    function getCalls(address requester, bytes calldata data) external returns (Call[] memory calls);
    function getErrorCodeDetails(uint256 errorCode) external returns (string memory information);
}
```

## Things to know

- **Status: Draft.** The rationale section and reference implementation are still marked TBD, and the format may change.
- It is the one-way, offline counterpart to [EIP-5792](/eip-5792/) `wallet_sendCalls`, which needs a connected session.
- Phishing risk is real: a malicious QR code can request approvals or transfers. With no website origin, wallets cannot use domain allow- or blocklists, so clear decoding of calls and simulation matter.
- A resolver contract can return anything, including a call draining your funds. Treat resolver output exactly like a static request and review it.
- Wallets should cap payload size and the gas given to the resolver's `eth_call` to avoid denial-of-service.
- Base64 output may need URL-safe encoding when used in links.


---

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