Insight API Updates

There are 2 changes to the Insight API to improve usability and fix a numeric overflow in Javascript.
Token & NFT Transfers
The NFT and Token transfer endpoints have been changed and now the owner_address
query param is not mandatory anymore, enabling queries for all transfers on a chain.
Since this query can be heavy, we also added block number filters. You can narrow down the query using block_number_from
and block_number_to
query params.

Decoded Data Numeric Overflow Fix
Since Solidity supports numbers larger the Javascript's max number, APIs consuming the decoded events and transactions would receive some numeric values in scientific notation, losing precision.
We updated the decoded data to return large numeric values as string to prevent this. This is what a decoded transaction would look like now
{
"data": [
{
...rest of transaction...
"decoded": {
"name": "transfer",
"signature": "transfer(address,uint256)",
"inputs": {
"_to": "0x28c6c06298d514db089934071355e5743bf21d60",
"_value": "4179950264410000000000"
}
}
}
]
}
Note that the _value uint256
input is returned as string 4179950264410000000000
π Learn more about Insight - itβs open source and ready to power your applications!