checkOnERC721Received
checkOnERC721Received is a mechanism within the ERC-721 standard used to verify that a token recipient can properly handle ERC-721 tokens, especially when the recipient is a smart contract. In typical implementations, it is an internal function invoked during safe transfer operations to ensure compatibility and prevent tokens from being sent to contracts that cannot manage them.
During a safe transfer, such as safeTransferFrom, the contract first transfers the token and then calls checkOnERC721Received
The primary purpose of this check is to prevent tokens from being permanently locked in contracts that
Implementation notes: various ERC-721 implementations expose a function named _checkOnERC721Received (or a similarly named internal helper)
See also: ERC-721 standard, IERC721Receiver, SafeTransferFrom, and common libraries like OpenZeppelin's ERC721.