Skip to content

I'm having trouble using the method 'LookupAssetByID(UInt64, Optional<Boolean>)' and getting the API return an AssetResponse. #199

Answered by jasonboukheir
ulrikds asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ulrikds , don't forget to await!

indexer.LookupAssetByID returns a sent web request. To get the returned response, you need to await it:

var (lookupAssetResponse, lookupAssetError) = await indexer.LookupAssetByID(item.AssetId, true);
Debug.Log(lookupAssetResponse);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ulrikds
Comment options

Answer selected by jasonboukheir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants