- Building Blockchain Projects
- Narayan Prusty
- 95字
- 2021-07-02 23:45:16
JSON-RPC and JavaScript console
Geth provides JSON-RPC APIs for other applications to communicate with it. Geth serves JSON-RPC APIs using HTTP, WebSocket, and other protocols. The APIs provided by JSON-RPC are pided into these categories: admin, debug, eth, miner, net, personal, shh, txpool, and web3. You can find more information about it these https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console.
Geth also provides an interactive JavaScript console to interact with it programmatically using JavaScript APIs. This interactive console uses JSON-RPC over IPC to communicate with geth. We will learn more about the JSON-RPC and the JavaScript APIs in later chapters.