web3wagmi
← All standards

ERC-4393 Micropayments for NFTs and Multi Tokens

StagnantERCcreated 2021-10-24requires ERC-165, ERC-721, ERC-1155

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

Author: Jules Lai (@julesl23)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

ITipToken0xe47a7022
The spec asserts 0x985a3267 for ITipToken, which its own interface does not produce.

The spec's own normative prose states 0xe47a7022, which agrees with the parser. The divergent value is a stray note inside an event's NatSpec.

Functions this standard introduces (9)

0x12c81d4fbalanceDepositOf(address)view
0x70a08231balanceOf(address)view
0x47e7ef24deposit(address,uint256)payable
0x12425d4eisApprovalForNFT(address,address,uint256)
0x65fd0794rewardPendingOf(address)view
0xbe3f51bbsetApprovalForNFT(address[],address,uint256,bool)
0xb7577fbetip(address,uint256,uint256)
0xed184baftipBatch(address[],address[],uint256[],uint256[])
0x523a3f08withdrawReward(uint256)payable

Events (5)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x51e6deaf506ca3c183e496755bda5c81b16dfb594f1277753170fe743ba085f8ApprovalForNFT(address[],address,uint256,bool)
0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7Deposit(address,address,uint256,uint256)
0xad71f93891cecc86a28a627d5495c28fabbd31cdd2e93851b16ce3421fdab2e5WithdrawReward(address,address,uint256)
0x3b663dfb629c8f570948272e59e33fc6aa2d141b576e5d40e50dcf954623d2caInitializeTipToken(address,address,address)
0x07f71622292de46e718e4a9a14ba9b5d88c70cf6dd723f194f34218cb2907695Tip(address,address[],address,uint256,uint256,address,uint256[])

Depends on (3)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion