Skip to main content

What developers use

Trustblock offers three ready-made pieces, and an API behind them. Try each one on the Playground.

1. Project label

A label you add to your page with a script and a div. It shows a project’s audit state.
swap-simulation

Example of a label on a swap interface

Labels Widget

Learn how to integrate Trustblock’s labels on your website.

2. Auditor widget

A card for an audit provider and its published audits.

Auditor Widget

Learn how to show an audit provider’s metrics on your website.

3. Explorer cards

Two compact cards for block explorers: one shaped for the Etherscan contract page, one for Blockscout. They are read-only JSON routes.

Explorer cards

Read the Etherscan and Blockscout cards for a project.

The API

The security route returns a project’s published audits, the findings that still stand and any recorded exploits.

Security Data API

Read a project’s published audit state from your own code.

Your API key and usage

Create a developer account in the app. Your Developer dashboard shows your API key, your credits and your recent calls. Send the key as Authorization: Bearer <key>.
  • The project security route uses one API credit when it returns a project.
  • The two card routes use no API credit.
  • The security route answers 402 when your credits are exhausted.

Creating a developer account

Complete the sign-up form in the app.