github.com/DapperCollectives/CAST/backend@v0.0.0-20230921221157-1350c8be7c96/main/cadence/scripts/get_example_nft_ids.cdc (about) 1 import NonFungibleToken from "../contracts/NonFungibleToken.cdc" 2 import ExampleNFT from "../contracts/ExampleNFT.cdc" 3 4 pub fun main(address: Address): [UInt64] { 5 let account = getAccount(address) 6 7 let collectionRef = account 8 .getCapability(ExampleNFT.CollectionPublicPath) 9 .borrow<&{NonFungibleToken.CollectionPublic}>() 10 ?? panic("Could not borrow capability from public collection") 11 12 return collectionRef.getIDs() 13 }