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.
client.invoke({
uri: "wrapscan.io/polywrap/logging@1.0",
method: "info",
args: {
message: "Hello World!"
}
});