| | 1 | | namespace MainScripts.DCL.ServiceProviders.OpenSea |
| | 2 | | { |
| | 3 | | internal static class OpenSeaAPI |
| | 4 | | { |
| | 5 | | public const int REQUESTS_RETRY_ATTEMPS = 3; |
| | 6 | |
|
| | 7 | | private const string BASE_URL = "https://opensea.decentraland"; |
| | 8 | | private const string DEFAULT_CHAIN = "ethereum"; |
| | 9 | |
|
| | 10 | | public static string GetSingleAssetUrl(string chain, string address, string id, string tld) => |
| 0 | 11 | | $"{BASE_URL}{tld}/api/v2/chain/{chain}/contract/{address}/nfts/{id}"; |
| | 12 | |
|
| | 13 | | public static string GetOwnedAssetsUrl(string address, string tld) => |
| 0 | 14 | | $"{BASE_URL}{tld}/api/v2/chain/{DEFAULT_CHAIN}/account/{address}/nfts"; |
| | 15 | | } |
| | 16 | | } |