#Add Network Endpoints

This index guide contains network details for the OKB Chain Testnet and OKB Chain Mainnet and lists their associated RPC and node endpoints.

In order to view the flow of funds in your accounts, on the OKB Chain, you will need to configure OKB Chain testnet and mainnet URLs in your wallet. You can add OKB Chain Network manually by inputing the following info into Add a network under Settings. For detailed guide, check out How to add a custom network RPC

Mainnet network info will be updated after OKB Chain is live on Mainnet.

#OKB Chain Testnet

OKB Chain Testnet replicates the OKB Chain Mainnet and is used for testing. Users can request for testnet tokens from the faucet, which are without any actual value, unlike value-bearing assets such as OKB. This enables network maintainers or developers to test settings and trial implementations.

PropertiesNetwork Details
Network NameOKB Chain Testnet
Parent ChainGoërli
Chain ID195(okbchaintest-195)
Gas TokenOKB
WebSocket Endpointwss://okbtestws.okbchain.org:8443
Rest APIhttps://okbtestrpc.okbchain.org/v1
Block Explorerhttps://www.oklink.com/cn/okbc-test

#RPC API Methods

Developers can utilize network endpoints to interact with on-chain data and send various transaction types to the network. The APIs adhere to a JSON-RPC standard, which is a lightweight, stateless remote procedure call (RPC) protocol frequently utilized when interacting with a blockchain network.

GET STARTED WITH RPC CALLS Start by accessing the comprehensive API documentation for standard JSON-RPC calls. If you wish to initiate API requests without any preliminary configuration, troubleshoot unsuccessful requests, or test new methods on the OKB Chain network, try out the Composer App.

When interacting with the OKB Chain, a user has the option to either run their own node or use one of the public endpoints offered by infrastructure and API service providers to connect to the network. If you require real-time updates from the chain, Dagger is the ideal solution. This platform allows your dApps and backend system to receive blockchain events in real-time through a socket or websocket.

#Infrastructure Providers

Public RPCs may have traffic or rate limitations based on usage. You can register for a dedicated free RPC URL at the following: