PolyArb V4 — Configuration Guide

Set up your
wallet in 3 minutes.

Follow the steps below to correctly fill in your .env file before launching the bot.

1
Identify your case
2
Find your keys
3
Fill in .env
4
Start the bot

How did you create your Polymarket account?

Your answer determines which keys you need. Pick the option that matches you.

CASE A — EMAIL LOGIN

You signed up with your email address

Polymarket created a Smart Wallet for you. You have two separate keys to find.

  1. 1

    Find your L2 Private Key (POLY_PRIVATE_KEY)

    This is the trading key Polymarket generated for your account. It is NOT a MetaMask key.

    polymarket.com Settings left menu Private Key

    Copy the key shown (starts with 0x). This is your POLY_PRIVATE_KEY.

  2. 2

    Find your Funder Address (POLY_FUNDER_ADDRESS)

    This is the address where your USDC actually sits — your Polymarket profile address.

    polymarket.com Settings Profile Address field

    Copy the address (starts with 0x, 42 characters). This is your POLY_FUNDER_ADDRESS.

  3. 3

    Fill in your .env file like this:

    # Your .env should look like this:
    POLY_PRIVATE_KEY=0xYourL2PrivateKeyFromPolymarketSettings POLY_FUNDER_ADDRESS=0xYourPolymarketProfileAddress # Both fields required for email users
    Both POLY_PRIVATE_KEY and POLY_FUNDER_ADDRESS are required for email accounts. They will be two different addresses — that is normal.
CASE B — METAMASK (SAME ADDRESS)

MetaMask — standard account

Your MetaMask address is the same as your Polymarket profile address. Simplest setup.

  1. 1

    Verify your addresses match

    Before anything, confirm your MetaMask address and your Polymarket profile address are identical.

    polymarket.com Settings Profile Address field

    If it matches your MetaMask address exactly, you are in Case B. If not, see Case C.

  2. 2

    Export your MetaMask private key (POLY_PRIVATE_KEY)

    MetaMask Account Details Show Private Key

    Copy it (starts with 0x). This goes into POLY_PRIVATE_KEY.

  3. 3

    Fill in your .env file like this:

    POLY_PRIVATE_KEY=0xYourMetaMaskPrivateKey POLY_FUNDER_ADDRESS=(leave this completely blank) # Do NOT put your MetaMask address in POLY_FUNDER_ADDRESS
    # The key alone is enough for Case B
    Leave POLY_FUNDER_ADDRESS completely empty. Do not put your MetaMask address there — just leave the line blank after the = sign.
CASE C — METAMASK (SMART WALLET)

MetaMask — Smart Wallet (different address)

Polymarket created a sub-wallet (Smart Wallet) for you. You have two different addresses.

  1. 1

    Find your L2 Private Key (POLY_PRIVATE_KEY)

    This is a Polymarket-specific key, not your MetaMask key. You must export it from Polymarket directly.

    polymarket.com Settings left menu Private Key

    Copy the key shown. This is your POLY_PRIVATE_KEY.

  2. 2

    Find your Polymarket Profile Address (POLY_FUNDER_ADDRESS)

    This is the Smart Wallet address where your USDC is deposited — NOT your MetaMask address.

    polymarket.com Settings Profile Address field

    Copy this address (42 chars). This is your POLY_FUNDER_ADDRESS.

  3. 3

    Fill in your .env file like this:

    POLY_PRIVATE_KEY=0xL2KeyFromPolymarketSettings POLY_FUNDER_ADDRESS=0xYourPolymarketProfileAddress # NOT your MetaMask address — the Polymarket profile address
    The most common mistake for Case C: putting your MetaMask address as POLY_FUNDER_ADDRESS. It must be the address shown in Polymarket Settings › Profile, not MetaMask.

ⓘ About the "L1/L2 auth failed" message

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.

Ready to go?

Close this guide and go back to the launcher — choose option 1 to run the wallet check, then option 2 to start.