Insights API Now Supports Contract Metadata and ABI Queries

Insights API Now Supports Contract Metadata and ABI Queries

The Insights API now supports querying contract metadata and ABIs. Powered by our contract indexing and verification backend, developers can now access verified contract metadata and ABIs for all supported chains directly within Insights. This eliminates the need to interact with block explorers and third party source code verifiers to get contract metadata and ABIs.

We've added the following endpoints:

Get contract ABI

curl https://insight.thirdweb.com/v1/contracts/abi/0x66a9893cc07d91d95644aedd05d03f95e1dba8af?chain=1&clientId=THIRDWEB_CLIENT_ID

Get contract ABI

Get contract ABI

Get contract metadata

curl https://insight.thirdweb.com/v1/contracts/metadata/0x66a9893cc07d91d95644aedd05d03f95e1dba8af?chain=1&clientId=THIRDWEB_CLIENT_ID

Get contract metadata

Get contract metadata

Both endpoints are available in the playground to test.

Stay tuned for more updates and exciting features from Thirdweb!