status-im / nim-status

MIT License
9 stars 6 forks source link

implement basic opensea integration #263

Closed iurimatias closed 3 years ago

iurimatias commented 3 years ago

related to https://github.com/status-im/status-desktop/issues/2337

goal: integrate with https://docs.opensea.io/reference/api-overview so that we can get the NFTs/collectibles

objective 1: return list of collectibles

typing /assets 0x12345 should return a list of collectibles associated to that account 0x12345

example possible output:

[
  {name, image_thumbnail, image, collection_name, collection_address}
]

objective 2: like object 1 but should return organized by collectibles

yping /assets 0x12345 should return a list of collectibles associated to that account 0x12345

example possible output:

{
  <collectible_name>:  [
    {name, image_thumbnail, image, collection_address}
  ]
 <collectible_name2>:  [
    {name, image_thumbnail, image, collection_address},
    {name, image_thumbnail, image, collection_address}
  ]

}

note: can skip database / database is optional in this task note: can use a json response in the TUI