Clarity Fintech Integration API
Clarity exposes CLRTY-1 through a native JSON-RPC endpoint and the @clrty/sdk client, so developers can read chain state and build embedded-payment and settlement flows.
- Native JSON-RPC (Solana-style methods), not an EVM shim.
- CLRTY-1 network — chain ID 1202.
- Typed client via
@clrty/sdk.
1. Connect to the CLRTY-1 RPC
Point your client at the network RPC endpoint:
const RPC_URL = "https://rpc.clarity-fintech.com"; // CLRTY-1, chainId 1202
2. Read chain state (native methods)
CLRTY-1 uses native RPC methods such as getHealth, getVersion, getBlockHeight, and getEpochInfo:
const res = await fetch(RPC_URL, {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "getHealth", params: [] })
});
const { result } = await res.json();
3. Use the @clrty/sdk client
import { Clarity } from "@clrty/sdk";
const clarity = new Clarity({ rpcUrl: "https://rpc.clarity-fintech.com" });
const height = await clarity.rpc("getBlockHeight");
Notes
CLRTY-1 is a sovereign layer-1 with native (non-EVM) RPC; addresses use the native vx family. Confirm the current network status and method set against the live Clarity documentation before production use.
See also: Clarity Fintech platform · Glossary