Collection
Get Collection
Returns details regarding the collection.
Usage
Input Parameters
- id:
string
: The Collection to retrieve.
The Function will throw an error if Id does not has necessary Tags as per the Collection Protocol
Return Value
The return value is a Promise that resolves to the object
. It has the following properties:
- id:
string
: The transaction ID of the Collection - owner: The Owner of the Transaction, it has the following tow feilds:
- id:
string
: The Address of the owner. - key:
string
: The key of the owner.
- id:
- tags: Tag[]: The Tags of the Atomic Asset.
- state:
CollectionData
: The Collection Data, it has the following fields:- type:
string
: Collection - items:
string[]
: The Items of the Collection.
- type:
Example
Response:
Was this page helpful?