Skip to content
Logo

createClient

A new JSON-RPC client can be created using the createClient constructor by simply providing the uri of the server.

import { createClient } from "@cartesi/rpc";
 
const client = createClient({ uri: "http://127.0.0.1:6751/rpc" });

The above uri is the default value for a local development execution environment provided by the Cartesi CLI.