IsApprovedForAll

ERC721 Getter Plugin - IsApprovedForAll

Description

Query if an address is an authorized operator for another address

Method

isApprovedForAll(uint256)

Input Parameters

NamePlugin TypeDescription

to

FctAddress

ERC721 Contract Address

Method Parameters

NamePlugin TypeDescription

owner

FctAddress

operator

FctAddress

Returned Values

NamePlugin TypeSolidity Type

isApproved

FctBoolean

bool

Example

Example with initParams

const isApprovedForAll = new ERC721.getter.IsApprovedForAll({
 chainId: 1,
 initParams: {
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     owner: "0x...",
     operator: "0x...",
   }
 }
})

Example without initParams

const isApprovedForAll = new ERC721.getter.IsApprovedForAll({ chainId: 1 })

isApprovedForAll.input.set({
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     owner: "0x...",
     operator: "0x...",
   }
})

Learn more

Learn more about EIP712 NFT standard here

Last updated