Socket
Book a DemoInstallSign in
Socket

@polymarket/registry-v0-sdk

Package Overview
Dependencies
Maintainers
8
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymarket/registry-v0-sdk

Polymarket Market Registry Version Zero SDK

latest
Source
npmnpm
Version
1.0.15
Version published
Weekly downloads
11
-38.89%
Maintainers
8
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts