Official EIP-721 and EIP-1155 pages, fetched on 27 November 2026 (Asia/Shanghai), HTTP 200, with HTML bytes identical to the 24 November pantry snapshots, require different receiver callbacks when a safe NFT transfer is sent to a contract. ERC-721 safeTransferFrom calls onERC721Received and throws unless the prescribed magic value is returned. ERC-1155 specifies safe transfers only, with onERC1155Received (magic 0xf23a6e61) and onERC1155BatchReceived (magic 0xbc197c81). A prepared compatibility table and stop conditions distinguish a matching hook from guaranteed recoverability. ERC-721 transferFrom is documented as unsafe and is not recommended as a workaround. No transfer, signature, or contract call was performed.

Documentation review. AI-assisted drafting. Educational information; no individual financial advice.

If the destination is a smart contract, including a contract wallet, an NFT transfer is not the same operation as sending to an ordinary externally owned account. ERC-721 and ERC-1155 both define safe-transfer hooks that ask a contract recipient to accept the token. The two standards do not use the same callback, and a contract that accepts one of them has not automatically accepted the other.

This article is a preflight compatibility guide. It is not a recovery service, a wallet review, or a suggestion to bypass a revert. No transfer, signature, or contract call was performed. The comparison table is prepared analysis. A short fictional recipient is used only to show a stop condition. Compatible receiver code is not the same thing as a guarantee that the token can later be recovered or withdrawn.

What each standard requires of a contract recipient

ERC-721, fetched from the official EIP page on 27 November 2026 (Asia/Shanghai), HTTP 200, with bytes identical to the 24 November pantry snapshot, standardizes safeTransferFrom (with or without a data argument) and an unsafe transferFrom. After a safe transfer completes, if the recipient has code (code size > 0), the token contract calls onERC721Received on that recipient and throws unless the return value is bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")).

The unsafe function is explicit about the risk. transferFrom's documentation says the caller is responsible to confirm that the recipient is capable of receiving NFTs, "or else they may be permanently lost." This article does not treat transferFrom as a workaround when a safe transfer reverts. A revert in that situation is a stop condition.

ERC-1155, fetched the same morning, also HTTP 200, with bytes identical to the 24 November snapshot, takes a different design path: safe transfers only. safeTransferFrom and safeBatchTransferFrom are the documented transfer entry points. After the stated balance and event conditions are met, if the recipient is a smart contract, the token contract must call onERC1155Received and act on the official safe-transfer rules (or, for a batch, onERC1155BatchReceived as specified).

The prescribed acceptance values are documented on the ERC-1155 Token Receiver interface. onERC1155Received must return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")), given as 0xf23a6e61, if it accepts the transfer. onERC1155BatchReceived must return the corresponding batch magic value, given as 0xbc197c81. Any other return value must cause the caller to revert. The hooks must not be called on an externally owned account. If a contract recipient does not implement the necessary receiver function, the transfer must be reverted, with the hybrid-standard caveat written in Scenario #3 of the Safe Transfer Rules (a recipient that also implements another token standard may follow that other standard's rules for sending to a contract).

Prepared compatibility table and stop conditions

The table below is the prepared original analysis. It compares official receiver rules. It is not a test report from a live wallet.

CheckERC-721ERC-1155
Safe transfer entry pointssafeTransferFrom, with or without datasafeTransferFrom and safeBatchTransferFrom
Documented unsafe transferFromYes, and the caller is responsible; tokens may be permanently lostNot part of the ERC-1155 standard, which specifies safe transfers only
Callback when the recipient has codeonERC721ReceivedonERC1155Received and, for batches, onERC1155BatchReceived as specified
Acceptance magic valuebytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))0xf23a6e61 for the single hook; 0xbc197c81 for the batch hook
Externally owned account as recipientThe safe-transfer callback is for contracts (code size > 0), not for a code-less accountonERC1155Received and onERC1155BatchReceived must not be called on an EOA
Contract that does not return the magic valueThe safe transfer throwsThe transfer must be reverted, subject to the hybrid-standard caveat in Scenario #3

Stop before sending if any of the following is true:

  • The destination is a contract, and you have not confirmed that it implements the matching receiver hook for the token standard you are sending and returns the prescribed magic value.
  • A safe transfer has already reverted. Do not retry with ERC-721 transferFrom in order to bypass that revert.
  • You are treating a successful callback as a recovery or withdrawal guarantee. Acceptance means the recipient contract accepted this transfer under the hook. It does not, by itself, prove that you can later move the token back out, that a particular wallet UI will list it, or that a recovery process exists.

Code size greater than zero is the official contract check used in these hooks. It distinguishes a contract from an EOA at the time of the call. It does not identify a "smart contract wallet" as a marketing category, and it does not guarantee that the contract's later behaviour will be wallet-like.

A labelled fictional recipient

The following recipient is fictional. No such contract was deployed or queried for this article.

Call the recipient Wallet W. Assume, for illustration only, that Wallet W implements onERC721Received and returns the ERC-721 magic value, but does not implement onERC1155Received. In that prepared scenario, an ERC-721 safeTransferFrom to Wallet W can be compatible with the ERC-721 hook rules, while an ERC-1155 safeTransferFrom to the same address should revert under the ERC-1155 rules (unless a hybrid-standard exception in Scenario #3 actually applies, which this fiction does not assert).

That contrast is the point of the preflight: receiver capability is specific to the standard and the hook. Seeing that Wallet W already holds an ERC-721 token would not, on its own, be evidence that it can accept ERC-1155 tokens. This article did not inspect any real wallet's bytecode or interfaces.

Compatibility is not recoverability

Even when a contract returns the correct magic value, later access still depends on that contract's own rules: who may call its withdrawal or transfer functions, whether a key or module is still available, and whether the token is treated as stuck in a vault, marketplace, or forwarding contract. Official receiver hooks answer the acceptance question at transfer time. They do not write a recovery promise into the token standard.

If you are still choosing a destination and a route more generally, TradeRouteLab's transfer checklist and route compatibility tool are local preflight pages for route and destination checks. The guide to comparing crypto transfer routes is the broader route-reading page. Those pages do not replace the receiver-hook checks above.

Limits

Official EIP-721 and EIP-1155 pages were re-fetched on 27 November 2026, both HTTP 200, with HTML bytes identical to the 24 November snapshots used in the prepared research base. No wallet, NFT, or contract was sent, signed, or called. Demand for the query remains unmeasured. The original contribution is the ERC-721 versus ERC-1155 receiver-interface table, the stop conditions, and the explicit distinction between a compatible receiver and guaranteed recoverability. Unsafe transfer is not recommended as a workaround.

Sources & method

What this article adds

A prepared ERC-721 versus ERC-1155 receiver-interface compatibility table, with official safe-transfer entry points, callbacks, magic values, EOA rules, and failure behaviour, plus explicit stop conditions. The draft distinguishes a compatible receiver (the hook returned the prescribed value) from guaranteed recoverability, and it rejects ERC-721 transferFrom as a workaround when a safe transfer reverts. A labelled fictional recipient is used only to show that one standard hook does not imply the other.

How it was prepared

Prepared original-research item KWREF-traderoutelab-02 was reused from the 24 November 2026 pantry research base (token transfer authorization and receiver semantics; evidence-2026-11-25-to-2026-12-01). Official EIP-721 and EIP-1155 pages were re-fetched on 27 November 2026 at about 09:08 Asia/Shanghai with box curl (HTTP 200). HTML bytes were identical to the 24 November snapshots (SHA-256 unchanged). No transfer, wallet connection, signature, or contract call was performed. The fictional Wallet W scenario is labelled as such.

The 27 November 2026 fetch of EIP-721 supplies safeTransferFrom, the onERC721Received magic-value rule, the code-size check, and the transferFrom warning that tokens may be permanently lost if the recipient cannot receive NFTs. The EIP-1155 fetch supplies safeTransferFrom and safeBatchTransferFrom, the onERC1155Received and onERC1155BatchReceived hooks and magic values 0xf23a6e61 and 0xbc197c81, the rule that those hooks must not be called on an EOA, the requirement to revert when the hook is missing or returns the wrong value, and the hybrid-standard caveat in Safe Transfer Rules Scenario #3. No affiliate links are placed, so there is no commercial disclosure in the body.

For corrections, contact the publisher. Editorial policy · Affiliate disclosure

Put it into practice