Actions53
- Account Actions
- Block Actions
- Transaction Actions
- Contract Actions
- ERC20 Actions
- ERC721 Actions
- ERC1155 Actions
- Gas Actions
- Signature Actions
- Utils Actions
- Custom RPC Actions
ERC721 → Approve
AI-generatedSummary
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...