0.1.0 • Published 2 years ago

@polymarket/polymarket-fe-sdk v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Markets SDK Client

This is a simple wrapper around the markets sdk. The markets-sdk doesn't directly interact with the onchain contracts(for flexibility), it generates transactions which can be executed by others.

This client takes in:

  • The address where the MarketsRegistry contract is deployed

  • An ethers provider/signer that populates and executes the transactions that are generated by the sdk.

Usage

const sdkClient = MarketsSdkClient(kovanMarketsRegistryAddress, provider); //Initialize the client

await sdkClient.getMarkets();

await sdkClient.getPendingProposals();