TokenByIndex

ERC721 Getter Plugin - TokenByIndex

Description

Enumerate valid NFTs

Method

tokenByIndex(uint256)

Input Parameters

Method Parameters

Returned Values

Example

Example with initParams

const tokenByIndex = new ERC721.getter.TokenByIndex({
 chainId: 1,
 initParams: {
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     index: "2"
   }
 }
})

Example without initParams

const tokenByIndex = new ERC721.getter.TokenByIndex({ chainId: 1 })

tokenByIndex.input.set({
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     index: "2"
   }
})

Learn more

Learn more about EIP712 NFT standard here

Last updated