Using RPC

# Using RPC

Turkchain supports Ethereum-compatible JSON-RPC methods.

Curl Example

curl https://rpc.turkchain1919.com \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'
This request returns the current network gas price.

Supported RPC Methods

Commonly used methods:

  • eth_blockNumber

  • eth_getBalance

  • eth_getTransactionByHash

  • eth_sendRawTransaction

  • eth_call

  • eth_getLogs

Last updated