Skip to content

Repository files navigation

polywrap-banner

Javascript Client

Implementation of the Polywrap client in JavaScript.

Installation

npm install @polywrap/client
# or
yarn add @polywrap/client

Getting Started

Create a new Polywrap client config builder instance, add the bundles you want to use, and then create a new Polywrap client instance with the config.

import{PolywrapClient,PolywrapClientConfigBuilder}from"@polywrap/client";constbuilder=newPolywrapClientConfigBuilder();builder.addBundle("sys");constclient=newPolywrapClient(builder.build());constresult=awaitclient.invoke<boolean>({uri: "wrapscan.io/polywrap/logging@1.0.0",method: "info",args: {message: "Hello from hello world wrap!",}});if(!result.ok){throwError("Log message error: "+result.error);}

Resources

Support

For any questions or problems, please visit our Discord.

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages