IsApprovedForAll

ERC1155 Getter Plugin - IsApprovedForAll

Description

Queries the approval status of an operator for a given owner.

Method

isApprovedForAll(address, uint256)

Method Parameters

NamePlugin TypeDescription

account

FctAddress

operator

FctAddress

Returned Values

NamePlugin TypeSolidity Type

isApproved

FctBoolean

bool

Example

Example with initParams

const isApprovedForAll = new ERC1155.getter.IsApprovedForAll({
 chainId: 1,
 initParams: {
   to: "0x495f947276749Ce646f68AC8c248420045cb7b5e" // OpenSea Shared Storefront
   methodParams: {
     account: "0x...",
     operator: "0x..."
   }
 }
})

Example without initParams

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

isApprovedForAll.input.set({
   to: "0x495f947276749Ce646f68AC8c248420045cb7b5e" // OpenSea Shared Storefront
   methodParams: {
     account: "0x...",
     operator: "0x..."
   }
})

Learn more

Learn more about EIP1155 Multi Token standard here

Last updated