Alle Chains

Optimism

LiveEVMhttpswss

Optimism ist auf TheRPC unter dem einheitlichen Endpunkt optimism.therpc.io/<YOUR_KEY> verfügbar. Dasselbe JSON-RPC-Schema wie deine bestehende Integration — einfach den Host austauschen.

Jetzt einen Call ausprobieren

Live-Anfrage über den TheRPC-Docs-Proxy. Kein API-Key für diese Demo erforderlich.

curl https://optimism.therpc.io/YOUR_API_KEY \
-X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Netzwerke

NetzwerkChain-IDExplorerEndpunkt
Mainnet0xaoptimistic.etherscan.iooptimism.therpc.io
wallet_addEthereumChain
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0xa',
chainName: 'Optimism',
rpcUrls: ['https://optimism.therpc.io/<YOUR_KEY>'],
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
blockExplorerUrls: ['https://optimistic.etherscan.io'],
}],
});