Skip to main content
Version: Next

Resource Interface CollectionPublic

pub resource interface CollectionPublic {
}

Interface that an account would commonly publish for their collection

Functions

deposit()

fun deposit(token: NFT)

getIDs()

fun getIDs(): [UInt64]

borrowNFT()

fun borrowNFT(id: UInt64): &NFT

borrowNFTSafe()

fun borrowNFTSafe(id: UInt64): &NFT?