Interacting with the Casper JSON-RPC API
Users looking to interact with the JSON-RPC API of a Casper network have several options, depending on their needs and the level of interaction required.
Using a Casper SDK
These SDKs offer a means to build decentralized applications by interacting with the JSON-RPC API through your programming language of choice.
Building a Casper SDK
Most programming languages that compile to WebAssembly (Wasm) are compatible with Casper. If there is not currently an SDK for your preferred programming language, you are free to build your own Casper SDK Standard compliant SDK.
The standard outlines necessary available endpoints and their included types, both for fully-featured SDKs and those of a more narrow scope. Guidance for Casper SDK developers can be found here.
Interacting Directly with the JSON-RPC
For advanced users that wish to interact directly with the JSON-RPC API, they are free to do so using various tools like Postman.
The Casper JSON-RPC API is fully compatible with the JSON-RPC 2.0 Specification.
Casper nodes provide the RPC schema on port
8888, followed by
To see an example, navigate to http://126.96.36.199:8888/rpc-schema in your browser.
The Casper client subcommand
list-rpcs provides all currently supported RPCs. Here is an example of running the Casper client to list RPCs:
casper-client list-rpcs -n http://188.8.131.52:7777