0xcalldata

ERC-721 function

approve(address,uint256)

Approves one address to manage a specific ERC-721 token.

Selector
0x095ea7b3
Mutability
nonpayable

Generate approve calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

address
uint256
calldata68 bytes
sel0x095ea7b3
approve(address,uint256)
0x000000000000000000000000003333333333333333333333333333333333333333
to · address =0x33333333…333333
0x20000000000000000000000000000000000000000000000000000000000000002a
tokenId · uint256 =42

How approve works

This is token-specific permission. The caller must be the token owner or an operator authorized for all of that owner’s NFTs.

Parameters

NameSolidity typeMeaning
toaddressAddress to approve; the zero address clears the current approval.
tokenIduint256NFT whose single-token approval should change.
View all ERC-721 functions →