A TokenProvider represents a source for token metadata. It can be any possible source, though generally
speaking it would be an indexer of blockchain/marketplace/contract transaction metadata.
A TokenProvider can have its own set of constructor arguments, and may provide additional methods.
- See:
Members
key :String
Unique key used to identify provider instance.
Type:
- String
Methods
fetchTokens(tokenQuery) → {Array}
Fetch tokens and return a normalized set of tokenMetadata.
Parameters:
Name | Type | Description |
---|---|---|
tokenQuery |
Object | See tokenQuery. |
Returns:
Set of tokenMetadata.
- Type
- Array