@polymarket/polymarket-fe-sdk
v0.1.0
Published
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.
Downloads
8
Maintainers
Keywords
Readme
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();