SQL Query

The Sort <SQLQuery/> React Component lets you easily include blockchain data from a Sort SQL Query in your application.

Source code

Light mode

Dark mode


NameDefault ValueDescription
querySQL query to run and show output within the React component
api_keyA free API key can be found by logging to your account at sort.xyz and viewing your profile
height600pxCSS height property
themedark"dark" or "light

Code Example

import { SQLQuery } from "@sort/react-components";

export default function SampleQuery() {
     query="select * from ethereum.transaction where to_address='0xdac17f958d2ee523a2206206994597c13d831ec7' order by block_id desc"