SQL Query
The Sort <SQLQuery/>
React Component lets you easily include blockchain data from a Sort SQL Query in your application.
Light mode
Dark mode
Props
Name | Default Value | Description |
---|---|---|
query | SQL query to run and show output within the React component | |
api_key | A free API key can be found by logging to your account at sort.xyz and viewing your profile | |
height | 600px | CSS height property |
theme | dark | "dark" or "light |
Code Example
import { SQLQuery } from "@sort/react-components";
export default function SampleQuery() {
return
<SQLQuery
query="select * from ethereum.transaction where to_address='0xdac17f958d2ee523a2206206994597c13d831ec7' order by block_id desc"
api_key="MY_API_KEY"
/>
}
Updated 10 days ago