Skip to main content

Public JSON-RPC Endpoints

Public JSON-RPC endpoints let you read the chain and send transactions without running a node of your own. They are the fastest way to start, and for many applications they are enough permanently.

Running your own Endpoint Node buys you a dedicated rate limit, access to namespaces the public endpoints do not serve, and independence from a third party — at the cost of storage, bandwidth, and the operational time to keep it healthy.

Considerations

  • Node providers are not liable for any damages or losses resulting from traffic or interactions with the nodes.
  • High traffic concentration on certain nodes may lead to service delays.
  • To prevent excessive requests, rate limits may be applied on a per-node basis and are subject to change without prior notice.

Public JSON-RPC Endpoints

Below is a list of network domains offered by XPHERE’s public node providers.

The namespace column in the tables below is what each endpoint reports for rpc_modules. You can reproduce it against any endpoint:

curl -s -X POST <ENDPOINT> \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"rpc_modules","params":[],"id":1}'

Mainnet Public JSON-RPC Endpoints — Chain ID 20250217 (0x134fe69)

Please note that these endpoints are provided to the community for testing and development purposes. As uptime and stability cannot be guaranteed, they should not be used for commercial purposes.

HTTPS

Service ProviderEndpointsNamespaces (rpc_modules)Type
XPHERE Foundationhttps://rpc.x-phere.com (load balanced, use this)
https://en-hkg.x-phere.com
https://en-bkk.x-phere.com
eth, net, rpc, xpFull
Ankrhttps://rpc.ankr.com/xphere_mainneteth, net, rpc, xp, plus admin, debug, personal, txpool, web3 advertised but partly disabled — see the caveats belowFull

WebSocket

Service ProviderEndpointsNamespaces (rpc_modules)Type
XPHERE Foundationwss://rpc.x-phere.com/ws (load balanced, use this)
wss://en-hkg.x-phere.com/ws
wss://en-bkk.x-phere.com/ws
eth, net, rpc, xpFull

Testnet Public JSON-RPC Endpoints — Chain ID 1998991 (0x1e808f)

The Testnet native token is XPT, not XP. Fund an address from the Faucet and read the result on xpt.tamsa.io.

HTTPS

Service ProviderEndpointsNamespaces (rpc_modules)Type
XPHERE Foundationhttps://testnet.x-phere.cometh, net, rpc, xp, debugFull
Ankrhttps://rpc.ankr.com/xphere_testneteth, net, rpc, xp, plus admin, debug, personal, txpool, web3 advertised but partly disabled — see the caveats belowFull

WebSocket

Service ProviderEndpointsNamespaces (rpc_modules)Type
XPHERE Foundationwss://testnet.x-phere.com/ws/eth, net, rpc, web3Full
Two Testnet WebSocket differences from Mainnet
  • Trailing slash. wss://testnet.x-phere.com/ws answers 301 Moved Permanently to /ws/. Clients that do not follow redirects during the handshake must use /ws/. Mainnet upgrades at /ws directly.
  • No xp namespace over WebSocket. The Testnet WebSocket endpoint reports eth, net, rpc, web3, and xp_blockNumber there returns -32601. Use https://testnet.x-phere.com over HTTPS for xp_* calls. eth_subscribe works on both networks' WebSocket endpoints.

RPC Service Providers

Below is a list of XPHERE's Public Node Providers.

ProviderMainnetTestnetNotes
XPHERE Foundationhttps://rpc.x-phere.com, https://en-hkg.x-phere.com, https://en-bkk.x-phere.comhttps://testnet.x-phere.comOperated by the Foundation, rate-limited
Ankrhttps://rpc.ankr.com/xphere_mainnethttps://rpc.ankr.com/xphere_testnetGlobal infrastructure provider; XPHERE is listed in Ankr's public chain directory. Ankr also operates a Union validator slot on XPHERE.

Ankr

XPHERE is available in Ankr's public RPC directory alongside 80+ other networks, with both Mainnet and Testnet endpoints served from Ankr's global infrastructure — no signup or API key required to start.

What it gives youDetail
Both environmentsxphere_mainnet (Chain ID 20250217, native XP) and xphere_testnet (Chain ID 1998991, native XPT) — eth_chainId returns 0x134fe69 and 0x1e808f respectively
Geographic reachRequests are served from Ankr's global edge network rather than a single region
Standard EVM surfaceThe methods dApps rely on — eth_call, eth_getLogs, eth_gasPrice, eth_getBlockByNumber, eth_sendRawTransaction — work as on any EVM chain
The xp_* namespaceAvailable on both Ankr endpoints — xp_blockNumber returns a height on xphere_mainnet and xphere_testnet alike
A second opinionAn independently operated endpoint to fail over to when a Foundation endpoint is unreachable

Ankr also operates a Union validator slot on XPHERE, staking 35,000,000 XP and taking its turn proposing Main Chain blocks (see Union Members).

What to know before relying on it
  • rpc_modules on Ankr advertises admin, debug, personal, txpool, and web3, but the methods behind them are gated on the public tier. eth_newFilter and personal_listAccounts both return -32075 Method disabled on xphere_testnet. If your indexer needs filters or debug_*, use a Foundation endpoint or run your own node.
  • Historical state queries against very old blocks are not served (this applies to the Foundation's public endpoints as well). Recent state, and full block/transaction/log history, are available.
  • Ankr applies its own rate limits to the public tier, independent of the Foundation's.

Community providers who would like their public endpoint referenced here can contact the Foundation at Contact@X-phere.com.

Running Your Own RPC

For production workloads (dApps with > 1k DAU, indexers, bots), run a dedicated Endpoint Node. Public endpoints are best-effort.

See Also