Home

Awesome

polymarket-examples

Code examples for Polymarket

See examples for more information

Examples

Polymarket uses smart contract wallets internally. Every account created using the Polymarket website is a smart contract wallet.

There are 2 kinds of smart contract wallets used:

Proxy Wallet Examples

Code examples for interacting with Polymarket Proxy Wallets are available here

Magic accounts use Proxy Wallets on the backend

Safe Wallet Examples

Code examples for interacting with Safe Wallets are available here

Browser wallets(Metamask, Coinbase Wallet, etc) use Safes on the backend

Usage

Populate your .env file based on .env.example.

Run examples using ts-node:

ts-node examples/safeWallet/split.ts