RPC Commands - reddcoin-project/reddcoin GitHub Wiki
The Reddcoin Identity System (ReddID) is a comprehensive digital identity framework built on the Reddcoin blockchain. It provides a hierarchical structure for digital identities, social connections, and reputation metrics. This documentation covers the RPC (Remote Procedure Call) commands available for interacting with various components of the ReddID system.
The ReddID system consists of several interconnected components:
- Namespaces - Top-level domains within the ReddID system (e.g., "redd", "crypto")
- User IDs - Individual identifiers within namespaces (e.g., "alice.redd", "bob.crypto")
- Profiles - User information and social connections associated with identities
- Reputation - Metrics tracking user trustworthiness and activity
All these components are accessed through an auction-based system, which ensures fair distribution of valuable digital identities while preventing squatting and providing economic incentives for the network.
The RPC commands are organized into four main categories:
Commands for managing namespaces, including:
- Creating and participating in namespace auctions
- Retrieving namespace information
- Configuring namespace parameters
- Transferring and renewing namespaces
Commands for managing user IDs within namespaces, including:
- Creating and participating in user ID auctions
- Retrieving user ID information
- Transferring and renewing user IDs
Commands for managing social connections between users, including:
- Creating, updating, and removing connections
- Retrieving connection information
Commands for managing user reputation, including:
- Retrieving reputation information and history
- Calculating and updating reputation metrics
RPC commands can be used in two primary ways:
Using the Reddcoin command-line client:
reddcoin-cli <command> [parameters]
Example:
reddcoin-cli getnamespacelist
Using HTTP requests to the Reddcoin daemon:
curl --user rpcuser:rpcpassword --data-binary '{"jsonrpc":"1.0","id":"curltest","method":"<command>","params":[<parameters>]}' -H 'content-type:text/plain;' http://127.0.0.1:45443/
Example:
curl --user rpcuser:rpcpassword --data-binary '{"jsonrpc":"1.0","id":"curltest","method":"getnamespacelist","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:45443/
If you're new to the ReddID system, here are some recommended commands to start with:
-
getnamespacelist
- View all available namespaces -
getnamespaceauctionlist
- See ongoing namespace auctions -
getuserauctionlist
- See ongoing user ID auctions -
getuserreputation
- Check a user's reputation
For more detailed information on each command, refer to the specific category documentation linked above.