๐๏ธ What is JSON-RPC?
JSON-RPC is a lightweight, remote procedure call (RPC) protocol that uses JSON (JavaScript Object Notation) to encode messages. It allows applications to execute methods on remote systems as if they were local, with the key advantage being its simplicity and minimal overhead.
๐๏ธ How JSON-RPC Works?
JSON-RPC operates in a straightforward request-response model, allowing developers to call methods on remote servers with minimal configuration. The client sends a JSON-encoded request to a server, which processes the request and returns a JSON-encoded response.
๐๏ธ JSON-RPC in Blockchain
JSON-RPC is the backbone of communication for many blockchain networks, especially those that are Ethereum-compatible. It allows developers to interact with blockchain nodes, retrieve on-chain data, and send transactions. The decentralized nature of blockchain makes JSON-RPC an ideal fit due to its efficiency, statelessness, and lightweight structure.
๐๏ธ Standard vs Extended RPC
When interacting with blockchain networks, RPC (Remote Procedure Call) methods are essential for querying data, submitting transactions, and interacting with smart contracts. There are two categories of RPC methods supported by Moralis: Standard RPC Methods and Extended RPC Methods.