@phantom/react-sdk 1.0.0-beta.20 → 1.0.0-beta.21

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.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -507,12 +507,27 @@ function EthereumOperations() {
507
507
  - `signTypedData(typedData)` - Sign EIP-712 typed data
508
508
  - `signTransaction(transaction)` - Sign transaction without sending
509
509
  - `sendTransaction(transaction)` - Sign and send transaction
510
- - `switchChain(chainId)` - Switch chains
510
+ - `switchChain(chainId)` - Switch chains (accepts chain ID as number or a hex string)
511
511
  - `getChainId()` - Get current chain ID
512
512
  - `getAccounts()` - Get connected accounts
513
513
  - `isConnected` - Connection status
514
514
  - `isAvailable` - Provider availability
515
515
 
516
+ **Supported EVM Networks:**
517
+
518
+ | Network | Chain ID | Usage |
519
+ |---------|----------|-------|
520
+ | Ethereum Mainnet | `1` | `ethereum.switchChain(1)` |
521
+ | Ethereum Sepolia | `11155111` | `ethereum.switchChain(11155111)` |
522
+ | Polygon Mainnet | `137` | `ethereum.switchChain(137)` |
523
+ | Polygon Amoy | `80002` | `ethereum.switchChain(80002)` |
524
+ | Base Mainnet | `8453` | `ethereum.switchChain(8453)` |
525
+ | Base Sepolia | `84532` | `ethereum.switchChain(84532)` |
526
+ | Arbitrum One | `42161` | `ethereum.switchChain(42161)` |
527
+ | Arbitrum Sepolia | `421614` | `ethereum.switchChain(421614)` |
528
+ | Monad Mainnet | `143` | `ethereum.switchChain(143)` |
529
+ | Monad Testnet | `10143` | `ethereum.switchChain(10143)` |
530
+
516
531
  ### Auto-Confirm Hook (Injected Provider Only)
517
532
 
518
533
  #### useAutoConfirm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/react-sdk",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-beta.21",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -26,9 +26,9 @@
26
26
  "prettier": "prettier --write \"src/**/*.{ts,tsx}\""
27
27
  },
28
28
  "dependencies": {
29
- "@phantom/browser-sdk": "^1.0.0-beta.20",
30
- "@phantom/chain-interfaces": "^1.0.0-beta.8",
31
- "@phantom/constants": "^1.0.0-beta.8"
29
+ "@phantom/browser-sdk": "^1.0.0-beta.21",
30
+ "@phantom/chain-interfaces": "^1.0.0-beta.9",
31
+ "@phantom/constants": "^1.0.0-beta.9"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@testing-library/dom": "^10.4.0",