I'm having trouble using the method 'LookupAssetByID(UInt64, Optional<Boolean>)' and getting the API return an AssetResponse. #199
-
I placed a request inside the WalletConnectManager script, in the PollForAsset method, that asks for the return of the assets. Here is the code:
But the return is something that is neither the AssetResponse structure nor asset information.
I end up not knowing how to use the method correctly. Could someone assist me in how to use the method and receive the asset properties? |
Beta Was this translation helpful? Give feedback.
Answered by
jasonboukheir
Feb 27, 2023
Replies: 1 comment 1 reply
-
Hi @ulrikds , don't forget to
var (lookupAssetResponse, lookupAssetError) = await indexer.LookupAssetByID(item.AssetId, true);
Debug.Log(lookupAssetResponse); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jasonboukheir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ulrikds , don't forget to
await
!indexer.LookupAssetByID
returns a sent web request. To get the returned response, you need to await it: