Skip to main content

Account is Setup

Account is Setup

Check to see if an account looks like it has been set up to hold Golazos NFTs.

Returns: bool - A bool indicating if the account has been setup.

import NonFungibleToken from 0xNONFUNGIBLETOKENADDRESS
import Golazos from 0xGOLAZOSADDRESS

pub fun main(address: Address): Bool {
let account = getAccount(address)
return account.getCapability<&{
NonFungibleToken.CollectionPublic,
Golazos.MomentNFTCollectionPublic
}>(Golazos.CollectionPublicPath)
!= nil
}