enjin / platform-csharp-sdk

SDK for connecting to and interacting with the Enjin Platform.
GNU Lesser General Public License v3.0
7 stars 8 forks source link

API Proposal for Retrieving Tokens from Managed Wallet #11

Open gormaaen opened 1 year ago

gormaaen commented 1 year ago

With the new Managed Wallet feature one of the most useful (and likely most used) queries will be 'return all Tokens belonging to this list of Colletions in this Player's managed wallet' . Executing this basic query today requires ALOT of framents/sub queries either starting with GetWallet or GetTokens.

Suggestion 1: Add a .SetExternalID and/or a .SetAddress to the GetToken API request. This will still require a 2-3 level dive in Edges/Nodes to get the Tokens but atleast only for the requested ones.

Suggestion 2: Add a .SetCollections to GetWallet as this would also give the desired result. The good thing here is that the returned Tokens will only be one level down in the Edge/Node tree.

Suggestion 3. Create a new query altogether GetTokensInWallet (or something to that effect) with a .SetCollections and SetExternalID/SetAddress params and then return a clean Connection.