Skip to main content

Creating the Polywrap client instance

Once the Polywrap JS client has been installed, the next step is to create a PolywrapClient instance:

import { PolywrapClient } from "@polywrap/client-js";

const client = new PolywrapClient();

At this point, you can already invoke wraps. In the simple example below, we send one to the "hello world" wrap.

uri: "",
method: "info",
args: {
message: "Hello World!"