GetApproved

ERC721 Getter Plugin - GetApproved

Description

Get the approved address for a single NFT

Method

getApproved(uint256)

Input Parameters

NamePlugin TypeDescription

to

FctAddress

ERC721 Contract Address

Method Parameters

NamePlugin TypeDescription

tokenId

FctValue

Returned Values

NamePlugin TypeSolidity Type

operator

FctAddress

address

Example

Example with initParams

const getApproved = new ERC721.getter.GetApproved({
 chainId: 1,
 initParams: {
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     tokenId: "3",
   }
 }
})

Example without initParams

const getApproved = new ERC721.getter.GetApproved({ chainId: 1 })

getApproved.input.set({
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     tokenId: "3",
   }
})

Learn more

Learn more about EIP712 NFT standard here

Last updated