Endpoint¶
Used by¶
- exchain-java-sdk
- Metamask
Mainnet JSON-RPC Endpoint (chain-id: exchain-66)¶
- https://exchainrpc.okex.org
Mainnet Websocket Endpoint¶
- wss://exchainws.okex.org:8443
How to configure MetaMask with OKExChain(Mainnet) in one step¶
currentProvider.send({
"method": "wallet_addEthereumChain",
"params": [
{
"chainId": "0x42",
"chainName": "OKExChain Main",
"rpcUrls": ["https://exchainrpc.okex.org/"],
"nativeCurrency": {
"name": "OKT",
"symbol": "OKT",
"decimals": 18
},
"blockExplorerUrls": ["https://www.oklink.com/okexchain"]
}
]
})
Testnet JSON-RPC Endpoint (chain-id: exchain-65):¶
- https://exchaintestrpc.okex.org
Testnet Websocket Endpoint¶
- wss://exchaintestws.okex.org:8443
How to configure MetaMask with OKExChain(Testnet) in one step¶
currentProvider.send({
"method": "wallet_addEthereumChain",
"params": [
{
"chainId": "0x41",
"chainName": "OKExChain Testnet",
"rpcUrls": ["https://exchaintestrpc.okex.org"],
"nativeCurrency": {
"name": "OKT",
"symbol": "OKT",
"decimals": 18
},
"blockExplorerUrls": ["https://www.oklink.com/okexchain-test"]
}
]
})