Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC721 → Approve

AI-generated

Summary

Approve an ERC721 token for transfer to a specified address.

Inputs

  • contractAddress (required) — ERC721 NFT contract address
  • tokenId (required) — Token ID of the NFT to approve
  • to (required) — Address to approve for transferring the NFT

Output shape

transaction hash

Returned only on successful execution; may be omitted on error.

Examples

Example 1: Approve an NFT for transfer to a marketplace

contractAddress=0x123..., tokenId=456, to=0xabc...

Links

Discussion