# RPC Endpoints Update - ChainID 138

## ✅ Updated RPC Endpoint Information

### Correct RPC Endpoints

1. **Public RPC** (for general use, MetaMask, dApps):
   - URL: `https://rpc-http-pub.d-bis.org`
   - Status: ✅ Public and accessible
   - Use Case: General public access, MetaMask integration, dApp connections

2. **Permissioned RPC** (for authorized/private access):
   - URL: `https://rpc-http-prv.d-bis.org`
   - Status: ✅ Permissioned access
   - Use Case: Authorized users, private access, restricted operations

3. **Internal RPC** (VMID 2500 - internal network only):
   - URL: `http://192.168.11.250:8545` (HTTP)
   - URL: `ws://192.168.11.250:8546` (WebSocket)
   - Status: ⚠️ **Internal only, NOT public**
   - Use Case: Internal services, local development, VM-to-VM communication

### ❌ Incorrect/Deprecated

- ~~`https://rpc-core.d-bis.org`~~ - This is **internal only** and should NOT be used as a public endpoint

---

## 📝 Files Updated

### Chainlist Configuration
- ✅ `token-lists/chainlists/chain-138.json` - Updated RPC URLs to use public and permissioned endpoints

### Documentation
- ✅ `explorer-monorepo/docs/CHAINLIST_AND_METAMASK_DATA_FLOW.md` - Updated all RPC references
- ✅ `explorer-monorepo/docs/CHAINLIST_METAMASK_BLOCKSCOUT_RELATIONSHIP.md` - Updated RPC information

### Token List
- ✅ Token list is hosted at: https://raw.githubusercontent.com/Defi-Oracle-Meta-Blockchain/metamask-integration/main/config/token-list.json
- ✅ Token list content is correct and matches local version

---

## 🔍 Verification

### Test Public RPC
```bash
curl -X POST https://rpc-http-pub.d-bis.org \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
# Should return: {"jsonrpc":"2.0","id":1,"result":"0x8a"}
```

### Test Permissioned RPC
```bash
curl -X POST https://rpc-http-prv.d-bis.org \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
# Should return: {"jsonrpc":"2.0","id":1,"result":"0x8a"}
```

### Verify Token List
```bash
curl -s https://raw.githubusercontent.com/Defi-Oracle-Meta-Blockchain/metamask-integration/main/config/token-list.json | jq '.tokens | length'
# Should return: 3 (WETH9, WETH10, ETH/USD Oracle)
```

---

## 📚 References

- **Public RPC**: https://rpc-http-pub.d-bis.org
- **Permissioned RPC**: https://rpc-http-prv.d-bis.org
- **Token List**: https://raw.githubusercontent.com/Defi-Oracle-Meta-Blockchain/metamask-integration/main/config/token-list.json
- **Chainlist Config**: `token-lists/chainlists/chain-138.json`

---

**Last Updated**: 2025-12-24
**Status**: ✅ RPC endpoints corrected and documentation updated

