---
eip: 4393
label: ERC-4393
title: Micropayments for NFTs and Multi Tokens
status: Stagnant
type: Standards Track
category: ERC
created: 2021-10-24
requires: 165, 721, 1155
official: https://eips.ethereum.org/EIPS/eip-4393
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-4393.md
canonical: https://eips.huatuo.xyz/eip-4393/
lang: en
tldr: "A stagnant interface for tip tokens: users deposit an ERC-20, receive tips, and send them to NFT or multi-token holders, who later withdraw the matching ERC-20 as rewards."
tags: [nft, tipping, micropayments, rewards, erc-1155]
---

# ERC-4393: Micropayments for NFTs and Multi Tokens

> An interface for tip tokens that allows tipping to holders of NFTs and multi tokens

**TL;DR:** A stagnant interface for tip tokens: users deposit an ERC-20, receive tips, and send them to NFT or multi-token holders, who later withdraw the matching ERC-20 as rewards.

## What problem does it solve?

Sending a small payment to "whoever holds this NFT" is awkward: you have to look up the current owner, pay a full transfer's gas for each tip, and there is no shared way for dapps to show who tipped what. For content, games or shared works represented by NFTs, creators also want a fair way to split small payments among several holders.

ERC-4393 proposes a minimal `ITipToken` interface so any dapp can offer tipping to [ERC-721](/eip-721/) and [ERC-1155](/eip-1155/) token holders, with batching to keep gas low.

## How it works

1. **Deposit.** A user deposits one specific [ERC-20](/eip-20/) (the *reward token*, fixed per tip-token contract) via `deposit(user, amount)` and is minted tip tokens in exchange. The exchange rate is left to the implementer.
2. **Approve NFTs.** The tip-token contract enables tipping for an NFT and its holders with `setApprovalForNFT(holders, nft, id, approved)`. This reverts if the NFT contract does not report ERC-721 or ERC-1155 support, or has not approved the tip contract as an operator.
3. **Tip.** `tip(nft, id, amount)` burns the sender's tip tokens and credits an equivalent value of the deposited ERC-20 to the holder's pending balance. The value is `depositBalance × tipAmount / tipBalance`, so "free" tips added to a user only dilute the value of each of their tips.
4. **Withdraw.** Holders call `withdrawReward(amount)` whenever they like to receive the ERC-20.

For ERC-1155 tokens with several holders, rewards are split in proportion to each holder's balance of that id, which makes it usable for royalty-style sharing. `tipBatch` sends many tips in one transaction, intended for tips cached offchain and settled together. Events (`Deposit`, `Tip`, `WithdrawReward`, `ApprovalForNFT`, `InitializeTipToken`) are required so the full state can be rebuilt from logs.

## Sample code

A tipping flow from a dapp using ethers v6 (addresses are placeholders):

```ts
import { Contract, Wallet, JsonRpcProvider, parseUnits } from "ethers";

const abi = [
  "function deposit(address user, uint256 amount) payable",
  "function tip(address nft, uint256 id, uint256 amount)",
  "function balanceOf(address user) view returns (uint256)",
  "function rewardPendingOf(address holder) view returns (uint256)",
  "function withdrawReward(uint256 amount) payable",
];
const signer = new Wallet(process.env.PRIVATE_KEY!, new JsonRpcProvider(process.env.RPC_URL));
const tips = new Contract(TIP_TOKEN, abi, signer);

// 1. exchange deposited ERC-20 (approved beforehand) for tip tokens
await (await tips.deposit(signer.address, parseUnits("10", 18))).wait();

// 2. tip the holder of NFT #42
await (await tips.tip(NFT_CONTRACT, 42n, parseUnits("1", 18))).wait();

// 3. the holder later checks and withdraws their reward
const pending: bigint = await tips.rewardPendingOf(HOLDER);
```

## Things to know

- Status: **Stagnant**. It was not finalized and has little known adoption; treat it as a design reference.
- Each tip-token contract supports exactly one ERC-20 deposit type; supporting several means deploying several contracts.
- The spec does not define refunds, where escrowed deposits live, or tip pricing. These are implementation choices that matter a lot for users' funds.
- The spec text quotes two different ERC-165 interface IDs (`0xE47A7022` in the prose, `0x985A3267` in a code comment); compute the ID from the final interface rather than copying either.
- Approved holders are not updated automatically when an NFT changes hands; the implementer must track ownership changes.


---

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