Find your L2 Private Key (POLY_PRIVATE_KEY)
This is the trading key Polymarket generated for your account. It is NOT a MetaMask key.
Copy the key shown (starts with 0x). This is your POLY_PRIVATE_KEY.
Follow the steps below to correctly fill in your .env file before launching the bot.
Your answer determines which keys you need. Pick the option that matches you.
Polymarket created a Smart Wallet for you. You have two separate keys to find.
This is the trading key Polymarket generated for your account. It is NOT a MetaMask key.
Copy the key shown (starts with 0x). This is your POLY_PRIVATE_KEY.
This is the address where your USDC actually sits — your Polymarket profile address.
Copy the address (starts with 0x, 42 characters). This is your POLY_FUNDER_ADDRESS.
Your MetaMask address is the same as your Polymarket profile address. Simplest setup.
Before anything, confirm your MetaMask address and your Polymarket profile address are identical.
If it matches your MetaMask address exactly, you are in Case B. If not, see Case C.
Copy it (starts with 0x). This goes into POLY_PRIVATE_KEY.
Polymarket created a sub-wallet (Smart Wallet) for you. You have two different addresses.
This is a Polymarket-specific key, not your MetaMask key. You must export it from Polymarket directly.
Copy the key shown. This is your POLY_PRIVATE_KEY.
This is the Smart Wallet address where your USDC is deposited — NOT your MetaMask address.
Copy this address (42 chars). This is your POLY_FUNDER_ADDRESS.
When you run the wallet check or start the bot, you may see a line saying
L1/L2 auth failed: 400 "Could not create api key".
This is not an error that stops the bot. It just means the optional API key
(which gives higher rate limits) could not be generated. Orders are still submitted and
executed normally using L1 headers as a fallback.
As long as you see Bot running and a valid wallet balance in the logs, everything is working correctly.
Close this guide and go back to the launcher — choose option 1 to run the wallet check, then option 2 to start.