Skip to main content
Version: 2.0.0

JSON-RPC-Endpoint

JSON-RPC endpoints refers to the network location where a program could transfer its RPC requests to access server data. Once you connect a decentralized application to an RPC endpoint, you can access the functionalities of different operations, which could enable real-time usage of blockchain data. SRW Chain provides several RPC endpoints for connectinto both its Minent and Testnet. In this section, we list the JSON-RPC endpoints that can be used for connecting to SRW Chain.

RPC Endpoints for SRW Chain

The rate limit of SRW endpoint on Testnet and Mainnet is 10K/5min.

eth_getLogs is disabled on below Mainnet endpoints。 If you need to pull logs frequently, we recommend using WebSockets to push new logs to you when they are available.

SRW Mainnet(ChainID 0x779,1913 in Decimal)

SRW Testnet (ChainID 0x77a, 1914 in decimal)

Starting HTTP JSON-RPC

You can start the HTTP JSON-RPC with the --http flag

# mainnet
geth attach https://rpc.simplechain.com

# testnet
geth attach https://testnet-rpc.simplechain.com

JSON-RPC API List

SRW (simplechain2.0) is EVM-compatible and strives to be as compatible as possible with the Go-Ethereum API

Geth(Go-Ethereum) API

SRW is nearly fully compatible with the Geth APIs. Any exceptions or incompatibilities are explicitly listed. If you're looking for detailed usage of a specific API, you will most likely find the answer in the following link:

Geth JSON-RPC API documentation.