Insight Transfer Endpoint Updates

Insight Transfer Endpoint Updates

Insight token transfers and NFT transfers endpoints have gotten a few updates.

Block Timestamp Filter

You can now filter transfers by the block timestamp, similarly to the previously available block number filter. The following query parameters are now available:

  • block_timestamp_from - to query transfers made starting from this timestamp
  • block_timestamp_to - to query transfers made until this timestamp

Timestamp format is either a unix timestamp or milliseconds from the epoch.

Contract Address Filter

Another addition is the contract_address query filter, which you can use to only look at transfers for specific tokens or NFT collections.
The endpoints also accept multiple e.g ?contract_address=0x321...&contract_address=0x123...

Sort Order

By default, all transfers are sorted by in a descending order by block number and in an ascending order by the log index (position in the block).

The sort_order query param controls the direction of the block number sort, so you can list the transfers either from oldest or newest.

Token Endpoint Modifications

We've also removed a few query parameters from v1/tokens/transfers that had no effect previously. The parameters were: resolve_metadata_links , sales and the sale option from transfer_type.


πŸ“– Learn more about Insight - it’s open source and ready to power your applications!