moonstream-to / api

Building blocks for your blockchain economy
https://moonstream.to
Apache License 2.0
134 stars 49 forks source link

Watching a new address #810

Open zomglings opened 1 year ago

zomglings commented 1 year ago

When a user watches a new address, we provide different functionality depending on whether:

  1. The address can be an externally owned account (EOA)
  2. The address is a smart contract on a chain that we support

This requires us to:

We need to add the following queries for EOAs (each query should be possible to run on every supported blockchain):

Default values: start_timestamp = 0, end_timestamp = int(time.time()). This can be implemented on frontend.

Decisions

  1. We will not display query results in v2.0.0 frontend. We will only provide users with a download link for a JSON file.
  2. We will not provide information about public contracts (e.g. Open Sea, Uniswap) in v2.0.0. This is a feature we will add in a future version of Moonstream Analytics. The purpose of this feature will be to improve the onboarding experience for users.
zomglings commented 1 year ago

@Anton-Mushnin : Default values for timestamps -- let us make it end_timestamp = int(time.time()) and start_timestamp = end_timestamp - (1 month).

Andrei-Dolgolev commented 1 year ago

Partially covered need add small fixes for missing parts.

PR for tags and descriptions: https://github.com/moonstream-to/api/pull/826 we in review process.

Tempalte endpoint for smart contracts or EOAs. Will comunicate with @Anton-Mushnin for deside correct tags structure for split SC and EOA.

Disclose the chains that we support via an API endpoint missing in current moment.