Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/MoralisWeb3/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathbabu-moralis committed Oct 8, 2024
2 parents 69006d1 + 934f925 commit d51f567
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
14 changes: 9 additions & 5 deletions blog/2024-10-07-planned-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ tags: [Web3 Data API]
## Endpoints Deprecating (60 Days Notice)
The following changes will take effect in 60 days, on 6th December 2024:

### Log APIs
The following endpoints will be removed from all chains:

- [`/{address}/logs`](/web3-data-api/evm/reference/get-contract-logs)
- [`/{address}/events`](/web3-data-api/evm/reference/get-contract-events)
### Endpoints on All Chains
The following endpoints will be removed from all chains:

**Recommendation:** We recommend retrieving logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs).
| Deprecated Endpoint | Recommendation |
| ---------------------------------- | -------------------------------------- |
| [`/{address}/logs`](/web3-data-api/evm/reference/get-contract-logs) | Retrieve logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs). |
| [`/{address}/events`](/web3-data-api/evm/reference/get-contract-events) | Retrieve logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs). |
| [`/block/{block_number_or_hash}/stats`](/web3-data-api/evm/reference/get-block-stats) | Migrate to our [Streams API](/streams-api/evm) to monitor block stats in real time. |
| [`/nft/{address}/{token_id}/stats`](/web3-data-api/evm/reference/get-nft-token-stats) | Migrate to our [Streams API](/streams-api/evm) to monitor NFT stats in real time. |
| [`/transaction/{transaction_hash}/internal-transactions`](/web3-data-api/evm/reference/get-internal-transactions) | Migrate to [getTransactionHash](/web3-data-api/evm/reference/get-transaction) using `include=internal_transactions`. |

### Gnosis NFT APIs
We will be removing all NFT APIs on Gnosis Mainnet and Gnosis Testnet due to ongoing network spam issues.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ slug: /web3-data-api/breaking-changes/endpoint-deprecations

The following changes will take effect in **60 days**, on **6th December 2024**:

### Log APIs

### Endpoints on All Chains
The following endpoints will be removed from all chains:

- [`/{address}/logs`](/web3-data-api/evm/reference/get-contract-logs)
- [`/{address}/events`](/web3-data-api/evm/reference/get-contract-events)

**Recommendation:** We recommend retrieving logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs).
| Deprecated Endpoint | Recommendation |
| ---------------------------------- | -------------------------------------- |
| [`/{address}/logs`](/web3-data-api/evm/reference/get-contract-logs) | Retrieve logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs). |
| [`/{address}/events`](/web3-data-api/evm/reference/get-contract-events) | Retrieve logs via our RPC nodes instead. You can learn more about this in [our documentation here](/rpc-nodes/reference/eth_getLogs). |
| [`/block/{block_number_or_hash}/stats`](/web3-data-api/evm/reference/get-block-stats) | Migrate to our [Streams API](/streams-api/evm) to monitor block stats in real time. |
| [`/nft/{address}/{token_id}/stats`](/web3-data-api/evm/reference/get-nft-token-stats) | Migrate to our [Streams API](/streams-api/evm) to monitor NFT stats in real time. |
| [`/transaction/{transaction_hash}/internal-transactions`](/web3-data-api/evm/reference/get-internal-transactions) | Migrate to [getTransactionHash](/web3-data-api/evm/reference/get-transaction) using `include=internal_transactions`. |

### Gnosis NFT APIs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Yes, rarity scores can be updated in the event of NFT reveals, new mints, or col

## How does the sync/resync process work?

Initially, no traits or rarity data is available. When a collection is first queried via `getNFTTraitsByCollection`, it is placed in a processing queue. The system will first sync all traits, then calculate the rarity. During this processing period, any attempt to fetch traits using `getNFTTraitsByCollection` will return a `404` response with the message: `Contract is being resynced at the moment. Please try again later.`
Initially, no traits or rarity data is available. When a collection is first queried via `getNFTTraitsByCollection`, it is placed in a processing queue. The system will first sync all traits, then calculate the rarity. During this processing period, any attempt to fetch traits using `getNFTTraitsByCollection` will return a `202` response with the message: `Contract is being resynced at the moment. Please try again later.`

Typically, traits and rarity information should be available within 5 to 60 seconds, depending on the collection size and queue. Larger collections (20,000+ NFTs) may take longer to process. If the collection hasn't been processed after 5 minutes, please reach out to our support team.

Expand Down

0 comments on commit d51f567

Please sign in to comment.