@moonpay/cli 0.6.23 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonpay/cli",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: moonpay-fund-polymarket
3
+ description: Install the Polymarket CLI and fund its wallet with USDC.e and POL on Polygon via MoonPay.
4
+ tags: [trading, setup, polymarket, polygon]
5
+ ---
6
+
7
+ # Fund Polymarket
8
+
9
+ ## Goal
10
+
11
+ Install the Polymarket CLI and fund its wallet with POL (gas) and USDC.e (trading) via MoonPay so it's ready to trade on Polymarket.
12
+
13
+ Polymarket runs on Polygon. To trade, the user needs:
14
+ - **POL** — native gas token for transaction fees
15
+ - **USDC.e** (`0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174`) — the token Polymarket uses for bets
16
+
17
+ ## Key addresses
18
+
19
+ | Token | Chain | Address |
20
+ |-------|-------|---------|
21
+ | POL (native) | Polygon | `0x0000000000000000000000000000000000000000` |
22
+ | USDC.e | Polygon | `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174` |
23
+ | ETH (native) | Ethereum | `0x0000000000000000000000000000000000000000` |
24
+
25
+ ## Workflow
26
+
27
+ ### 1. Install Polymarket CLI
28
+
29
+ Check if the Polymarket CLI is already installed:
30
+
31
+ ```bash
32
+ polymarket --version
33
+ ```
34
+
35
+ If not installed, download and install:
36
+
37
+ ```bash
38
+ curl -sSL https://raw.githubusercontent.com/Polymarket/polymarket-cli/main/install.sh | sh
39
+ ```
40
+
41
+ This downloads the binary for your platform, verifies the SHA-256 checksum, and installs to `/usr/local/bin`. If that fails due to sudo permissions, install to a user-writable location:
42
+
43
+ ```bash
44
+ mkdir -p ~/.local/bin
45
+ # Download and extract the binary for your platform, then:
46
+ cp polymarket ~/.local/bin/polymarket && chmod +x ~/.local/bin/polymarket
47
+ ```
48
+
49
+ ### 2. Set up Polymarket wallet
50
+
51
+ Run the guided setup if no wallet exists:
52
+
53
+ ```bash
54
+ polymarket setup
55
+ ```
56
+
57
+ This creates a wallet, sets up a proxy wallet, and approves Polymarket contracts on Polygon.
58
+
59
+ Then get the wallet address:
60
+
61
+ ```bash
62
+ polymarket wallet address
63
+ ```
64
+
65
+ Use this address as the `--wallet` for all MoonPay funding commands below. EVM addresses are the same across all chains, so the Polymarket address works directly with MoonPay.
66
+
67
+ ### 3. Check existing Polygon balances
68
+
69
+ ```bash
70
+ mp token balance list --wallet <polymarket-address> --chain polygon
71
+ ```
72
+
73
+ If the wallet already has POL and USDC.e, they're set.
74
+
75
+ ### 4. Get POL for gas
76
+
77
+ Buy POL directly with fiat — easiest way to get gas on Polygon:
78
+
79
+ ```bash
80
+ mp buy --token pol_polygon --amount 5 --wallet <polymarket-address> --email <email>
81
+ ```
82
+
83
+ Alternatively, bridge ETH → POL if the user already has ETH:
84
+
85
+ ```bash
86
+ mp token bridge \
87
+ --from-wallet <wallet-name> --from-chain ethereum \
88
+ --from-token 0x0000000000000000000000000000000000000000 \
89
+ --from-amount 0.001 \
90
+ --to-chain polygon \
91
+ --to-token 0x0000000000000000000000000000000000000000
92
+ ```
93
+
94
+ ~$2-5 worth of POL covers hundreds of transactions.
95
+
96
+ ### 5. Get USDC.e for trading
97
+
98
+ Bridge ETH on Ethereum to USDC.e on Polygon in one step:
99
+
100
+ ```bash
101
+ mp token bridge \
102
+ --from-wallet <wallet-name> --from-chain ethereum \
103
+ --from-token 0x0000000000000000000000000000000000000000 \
104
+ --from-amount 0.005 \
105
+ --to-chain polygon \
106
+ --to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
107
+ ```
108
+
109
+ Alternatively, if the user already has USDC on Ethereum, bridge it directly:
110
+
111
+ ```bash
112
+ mp token bridge \
113
+ --from-wallet <wallet-name> --from-chain ethereum \
114
+ --from-token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 \
115
+ --from-amount 10 \
116
+ --to-chain polygon \
117
+ --to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
118
+ ```
119
+
120
+ ### 6. Verify
121
+
122
+ ```bash
123
+ mp token balance list --wallet <polymarket-address> --chain polygon
124
+ ```
125
+
126
+ Confirm both POL and USDC.e are present.
127
+
128
+ ### 7. Trade on Polymarket
129
+
130
+ Once funded, use the Polymarket CLI to trade:
131
+
132
+ ```bash
133
+ polymarket markets search "query" # find markets
134
+ polymarket clob price <token_id> # check prices
135
+ polymarket clob market-order ... # place orders
136
+ polymarket clob balance # check trading balance
137
+ ```
138
+
139
+ ## Tips
140
+
141
+ - `polymarket wallet address` gives you the address to fund — use it as `--wallet` in all MoonPay commands
142
+ - EVM addresses are shared across chains, so one address works for Polygon, Ethereum, Base, etc.
143
+ - Bridge times from Ethereum → Polygon are typically 5-20 seconds
144
+ - POL is very cheap for gas — a few dollars covers hundreds of transactions
145
+ - The fiat buy option (`mp buy`) is the fastest path if the user has no crypto yet
146
+
147
+ ## Related skills
148
+
149
+ - **moonpay-swap-tokens** — Bridge commands and supported chains
150
+ - **moonpay-check-wallet** — Check Polygon balances
151
+ - **moonpay-buy-crypto** — Buy POL or ETH with fiat
@@ -1,3 +1,9 @@
1
+ ---
2
+ name: moonpay-upgrade
3
+ description: "Increase your MoonPay API rate limit by paying with crypto via x402."
4
+ tags: [payments]
5
+ ---
6
+
1
7
  # Upgrade Rate Limit
2
8
 
3
9
  Increase your MoonPay API rate limit by paying with crypto via x402.
@@ -1,112 +0,0 @@
1
- ---
2
- name: moonpay-polymarket-ready
3
- description: Fund a Polygon wallet for Polymarket trading. Buy POL for gas and bridge or buy USDC.e so the wallet is ready to trade.
4
- tags: [trading, setup]
5
- ---
6
-
7
- # Polymarket ready
8
-
9
- ## Goal
10
-
11
- Get a Polygon wallet funded with POL (gas) and USDC.e (trading) so it's ready for Polymarket.
12
-
13
- Polymarket runs on Polygon. To trade, the user needs:
14
- - **POL** — native gas token for transaction fees
15
- - **USDC.e** (`0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174`) — the token Polymarket uses for bets
16
-
17
- ## Key addresses
18
-
19
- | Token | Chain | Address |
20
- |-------|-------|---------|
21
- | POL (native) | Polygon | `0x0000000000000000000000000000000000000000` |
22
- | USDC.e | Polygon | `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174` |
23
- | ETH (native) | Ethereum | `0x0000000000000000000000000000000000000000` |
24
-
25
- ## Workflow
26
-
27
- ### 1. Check or create wallet
28
-
29
- ```bash
30
- mp wallet list
31
- ```
32
-
33
- The user's Polygon address is the same as their Ethereum address (EVM wallets share one address across all EVM chains).
34
-
35
- If no wallets exist, create one:
36
-
37
- ```bash
38
- mp wallet create --name main
39
- ```
40
-
41
- ### 2. Check existing Polygon balances
42
-
43
- ```bash
44
- mp token balance list --wallet <eth-address> --chain polygon
45
- ```
46
-
47
- If the wallet already has POL and USDC.e, they're set.
48
-
49
- ### 3. Get POL for gas
50
-
51
- Buy POL directly with fiat — easiest way to get gas on Polygon:
52
-
53
- ```bash
54
- mp buy --token pol_polygon --amount 5 --wallet <eth-address> --email <email>
55
- ```
56
-
57
- Alternatively, bridge ETH → POL if the user already has ETH:
58
-
59
- ```bash
60
- mp token bridge \
61
- --from-wallet <wallet-name> --from-chain ethereum \
62
- --from-token 0x0000000000000000000000000000000000000000 \
63
- --from-amount 0.001 \
64
- --to-chain polygon \
65
- --to-token 0x0000000000000000000000000000000000000000
66
- ```
67
-
68
- ~$2-5 worth of POL covers hundreds of transactions.
69
-
70
- ### 4. Get USDC.e for trading
71
-
72
- Bridge ETH on Ethereum to USDC.e on Polygon in one step:
73
-
74
- ```bash
75
- mp token bridge \
76
- --from-wallet <wallet-name> --from-chain ethereum \
77
- --from-token 0x0000000000000000000000000000000000000000 \
78
- --from-amount 0.005 \
79
- --to-chain polygon \
80
- --to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
81
- ```
82
-
83
- Alternatively, if the user already has USDC on Ethereum, bridge it directly:
84
-
85
- ```bash
86
- mp token bridge \
87
- --from-wallet <wallet-name> --from-chain ethereum \
88
- --from-token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 \
89
- --from-amount 10 \
90
- --to-chain polygon \
91
- --to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
92
- ```
93
-
94
- ### 5. Verify
95
-
96
- ```bash
97
- mp token balance list --wallet <eth-address> --chain polygon
98
- ```
99
-
100
- Confirm both POL and USDC.e are present.
101
-
102
- ## Tips
103
-
104
- - Bridge times from Ethereum → Polygon are typically 5-20 seconds
105
- - POL is very cheap for gas — a few dollars covers hundreds of transactions
106
- - The fiat buy option (`mp buy`) is the fastest path if the user has no crypto yet
107
-
108
- ## Related skills
109
-
110
- - **moonpay-swap-tokens** — Bridge commands and supported chains
111
- - **moonpay-check-wallet** — Check Polygon balances
112
- - **moonpay-buy-crypto** — Buy POL or ETH with fiat