LogoLogo
Landing PageMarketplaceDeveloper PortalDeveloper Discord
  • 👋Welcome to Altura
  • Getting started
    • 🚀Altura NFTs
    • đŸ›ī¸The Altura Marketplace
    • đŸĒ…Minting & Importing NFTs
    • 👔Users & Authentication
    • 🔑Altura Guard
  • đŸ’ģDeveloper Portal
    • 🧰The Developer Wallet
  • 🌐REST API
    • 🎴Get Your API Key
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get a User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item's Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • 🔮Update an Item's Properties
      • âœī¸Update an Item's data
      • đŸ§ŦBulk Update an Item's Properties
      • đŸĒ„Update an Item's Image
      • 📸Add a New Image
      • đŸĒŸMint Additional Supply
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
      • â˜‘ī¸Verify item Ownership
      • đŸĒ™Check User's ERC20 Balance
      • 💰Check User's Balance
  • 🔆JavaScript SDK
    • đŸ› ī¸Installation
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item's Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • đŸĒŸMint Additional Supply
      • 🔮Update Property
      • đŸĒ„Update Primary Image
      • 🆕Add a New Image
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
    • đŸŽ›ī¸Schemas
    • âŒ¨ī¸Connector API
  • đŸ•šī¸Unity SDK
    • đŸ› ī¸Installation
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • đŸĒŸMint Additional Supply
      • 🔮Update Property
      • đŸĒ„Update Primary Image
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
    • đŸŽ›ī¸Schema
  • More
    • đŸˇī¸White Label Marketplaces
    • 🛒List Your Game on the Altura Marketplace
    • â˜‘ī¸Get Your Collection Verified
    • 🎁Create a Loot Box
  • 🎮Unreal SDK (ALPHA)
    • đŸ› ī¸Installation (Alpha)
    • đŸ›Ąī¸Authenticate User
    • 👤Get User
    • đŸ‘ĨGet Users
    • đŸ–ŧī¸Get Item
    • 🌈Get Items
    • 👾Get an Item's Holders
    • 📜Get an Item's History
    • 📁Get Collection
    • 📂Get Collections
    • đŸĒ™Get User ERC20 balance
Powered by GitBook
On this page

Was this helpful?

  1. Unity SDK
  2. Methods

Get Collections

Use this method to get metadata of multiple collections at the same time.

Usage in your script

GetCollections
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    perPage: "20",
    page: "1",
    sortBy: "name",
    sortDir: "asc"
  )
  .filter( //optional
    address:"0x2A...2"
)
  .OnError(error => Debug.Log(error))
  .OnComplete(result => Debug.Log(result))
  .Run();

Member Functions

.Initialize()

Parameter
Type
Required
Description

destroyAtEnd

bool

Optional

defines if this component will be destroyed after .Run()

.SetParameters()

Parameter
Type
Required
Description

perPage

String

Optional

The number of collections to return

page

String

Optional

The offset for returned collections. Calculated as (page - 1) * perPage

sortBy

String

Optional

The field to sort the collections by (any field in the collection schema may be used)

sortDir

String

Optional

Choose to sort in ascending (asc) or descending (desc) order

.filter()

Parameter
Type
Required
Description

isVerified

Bool

Optional

filter if collection is verfied by Altura

address

String

Optional

filter by collection address

chainId

String

Optional

filter by chainId

name

String

Optional

filter by collection name

holders

String

Optional

filter by amount of holders

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns Auth_model type.

.Run()

Runs the API call and fills the corresponding model in the component on success.

PreviousGet CollectionNextUpdate Collection

Last updated 2 years ago

Was this helpful?

đŸ•šī¸
🔧
đŸ—‚ī¸