Skip to content
Visit Covalent docs on GitHub
Set theme to dark (⇧+D)
Covalent docs

2021-08-31

ADDED

  • The API now supports image resizing for NFTs for the following resolutions: 256, 512, 1024.

  • Developers can check if a network is a Testnet or Mainnet using is_testnet on the Get all chainsand Get all chain statuses. The "is_testnet" is a boolean response returning false when a network is not a testnet and true for when a network is a testnet. image

image

The percent change is calculated thus:

Quote - Quote24h = X
X / Quote24h * 100% = % change in a 24h period

$pow Example query - [https://api.covalenthq.com/v1/1/events/address/0xcd4EC7b66fbc029C116BA9Ffb3e59351c20B5B06/?ending-block=12894073&key='your_api_key'&primer=[{"$match":{"decoded.name":"Buy"}},{"$group":{"_id":{"buyer":"decoded.params.7.value"},"ethPrice":{"$divide":[89000000000000000,{"$pow": [10,18]}]}}}]](https://api.covalenthq.com/v1/1/events/address/0xcd4EC7b66fbc029C116BA9Ffb3e59351c20B5B06/?ending-block=12894073&key=ckey_66c94c405aae4cb38d94092f634&primer=[{"$match":{"decoded.name":"Buy"}},{"$group":{"_id":{"buyer":"decoded.params.7.value"},"ethPrice":{"$divide":[89000000000000000,{"$pow": [10,18]}]}}}])

UPDATE

  • The Historical Portfolio is running faster, this is a result of a Caffeine caching object which we implemented that ensures data is stored in memory rather than having to query the entire database. This results in much faster response times for parts of the API layer. Making the internal fetch of pricing data many times faster. This we have applied across the many of our endpoints that use our pricing services.

BUG FIXES