sorare / api

Sorare API documentation
156 stars 49 forks source link

All Cards for an ethereum account #214

Open EdouardW opened 2 years ago

EdouardW commented 2 years ago

Hi everybody!

I'm trying to retrieve all cards of my account. For now, I only use graphQL playground, so I'm no authentified.

I've seen "ethereumCards" to get a list of cards owned by an ethereum account, so I first use this query to retrieve my ethereum address:

{ user(slug: $slug){ ethereumAddress } }

But when I use the result ethereum address from the previous query, with this query: { ethereumCards(address: $myAddress){ name age } }

I just get this empty result: { "data": { "ethereumCards": [] } }

Am i missing something? (I am discovering GraphQL since recently..)

Thanks a lot if you can help me! Regards

kykp commented 2 years ago

Hi, have you solved this problem?

EdouardW commented 2 years ago

Hi

No, I still have the issue. Do you have the same problem?

kykp commented 2 years ago

Hi, yes i have the same, but if u use this ethereumCards(address:"0x2a961dd93af08f66a4cb3251fd355c7a878eafb5") its work, looks like problem in adress, i dont know =(

EdouardW commented 2 years ago

Yes you'right it works with this address. It's weird

kykp commented 2 years ago

But in fact, we specify our eth addresses, and we get an empty array, something is wrong here :)