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