@polymarket/registry-v0-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

Registry SDK npm

The Polymarket registry sdk (@polymarket/registry-v0-sdk) provides an easy-to-use, lightweight wrapper around the MarketRegistryVZero contract.

Installation

The sdk can be easily installed using yarn with the following command:

yarn add @polymarket/registry-v0-sdk

Usage

The sdk provides importable types.

import { Market } from "@polymarket/registry-v0-sdk";

Primarily though, the sdk allows a Registry object to be initialized with a signer (JsonRpcSigner) and a chainID (number). This object provides a simple interface to various registry contract functions and utilities.

import { Registry } from "@polymarket/registry-v0-sdk";

registry = new Registry(signer, 1);

const markets = await registry.getMarkets();

You can refer to the registry sdk source code for available functions and types.

Readme

Keywords

none

Package Sidebar

Install

npm i @polymarket/registry-v0-sdk

Weekly Downloads

18

Version

1.0.15

License

MIT

Unpacked Size

113 kB

Total Files

29

Last publish

Collaborators

  • schestakov
  • chloe-tan
  • javamonnnn
  • nickbytes
  • niraek
  • poly-rodr
  • mshrieve
  • esinger93457
  • jonamen
  • l-kov
  • sherrbss
  • mttwlkr